Skip to content

IDL Problem Code 100 with alias potential-undefined-var

Want to disable me? Check out the configuration guide to learn more.

Execution Error

This is a fatal error that prevents IDL from compiling or running code

This problem is the same as undefined-var, but is reduced in severity because of a common block being present.

Here is a reproduce case using a foreach loop on a variable that is not defined, but could be in a common block:

idl
common, my_block
foreach val, var do print, val
;            ^^^ potentially undefined variable

To fix, check for typos and try again:

idl
var = [1,2,3,4]
foreach val, var do print, val
;            ^^^ OK!

Licensed under MIT.