Validate project does not validate variables

When validating a project, it (mostly) says my projects are fine. However when I run them, I sometimes run into "variables" do not exist. Now I know that you can define a variable at runtime, but people hardly use that feature.

What I would like to see is that it would give me a warning when a variable does not exist in a specific scope. Then it's up to me to know (and check) if it's a variable defined dynamically or not. Maybe a feature with "I do not use dynamic variables" would be great, then you can treat them as errors.

Hi Geert Van Horrik,

The action “Define Variable” is currently deprecated and its use should be avoided and moved away from.

Hi Geert

We looked at doing this a while back… but validating variable references means parsing every string property of every action. That would take a long time on many projects.

Hi Vincent,

 I have also requested this feature in the Wish List forum.

Even if the validation took 5 minutes, it would still be better than a build failing after running for an hour. The 5 minutes pales in comparison to the lost man hours for restarting a build.

Thanks!

Dave