Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solargraph typecheck --level=strong fails for global variables #663

Open
jcouball opened this issue May 16, 2023 · 0 comments
Open

solargraph typecheck --level=strong fails for global variables #663

jcouball opened this issue May 16, 2023 · 0 comments

Comments

@jcouball
Copy link

jcouball commented May 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant