solargraph icon indicating copy to clipboard operation
solargraph copied to clipboard

`solargraph typecheck --level=strong` fails for global variables

Open jcouball opened this issue 1 year ago • 0 comments

Is there any magic to get this to work? I am sure I am missing something simple.

If I have a directory that only contains example.rb whose contents are:

require 'English'

`true`

$?.success?

$CHILD_STATUS.success?

When I run:

solargraph typecheck --level=strong

I receive the following errors:

/Users/me/test/example.rb:5 - Unresolved call to $?
/Users/me/test/example.rb:7 - Unresolved call to $CHILD_STATUS
2 problems found.

Expected Result: no errors

I am running on Ruby 3.2.2, solargraph 0.49.0, on a Mac

jcouball avatar May 16 '23 23:05 jcouball