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
Arbitrary undefined constant
#27
Comments
Sorry for the delay of response. I had a business trip last week. Let me ensure: are you using syntastic? |
@rhysd no problem. Yes I'm using it. |
I fixed this in 888bc4a. Could you confirm the latest? |
@rhysd thanks, I'll take a look |
@marceloboeira ping |
@rhysd sorry, I was busy with some work stuff this week. I just checked here and the problem remains. |
Sorry, I didn't intend to hurry you up 💦 Thank you for the confirmation. Hmm... I'll check it with your reported file structure again. |
@rhysd no worries. |
I have a similar problem, but it's "already defined constant". Even just a single file with a constant triggers it for me. Up to date on vim-crystal and syntastic http://showterm.io/2c722b79bd5e92090d327 edit: to add that I see "already defined constant" |
I'm seeing this issue today in a Lucky database config file I just brought up. Using Crystal for the first time. I'm following this tutorial: However when I open up config/database.cr I see an error from ALE on the first line. See screenshot ... thanks :) ps. vim 8.1.2292, using ALE asynchronous checker. Maybe I'll switch back to Syntastic.. |
Example file structure:
my_lib.cr
my_lib/a/b.cr
my_lib/a.cr
When editing the
a.cr
file, the plugin generates ansyntax
error:undefined constant MyLib::A::B
Since probably the plugin is trying to compile/check the syntax only on this specific file, it is not able to find the reference to the class.
If I require
my_lib/a/b.cr
everything works well. Yet, onmy_lib.cr
all the files are required.But the weirdest of all, is that this error does not occur on the
initialize
method reference toMyLib::A::B
.The text was updated successfully, but these errors were encountered: