-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Requires with :refer :all
cause unresolved symbols and unused namespace errors
#30
Comments
Hi @chris. I'm not familiar with Joker so I don't know if there is a workaround for that. If you use |
Yep, Joker can't resolve the symbols when using |
Thanks @pedrorgirardi , ya per what I mentioned in there, it wasn't a problem if I directly refer the used functions, etc. so, not a big deal, but just wanted to mention it. I guess this is really a Joker issue instead of Calva. I can file it with them. |
Thanks for letting us know, @chris. We maybe should add some note in the Calva README about it. Opening this issue again and we can close it when we have either added a note or decided against it. |
IMO it is joker issue and should be discuss in joker issues github, not here. Unless we consider to change joker to something else. I guess not. It is clearly said Calva use Joker to check it. Besides of that we can have paragraph in readme: Known dependency issuesJoker
But it would be a little redundancy with Joker issues. It can make sense only on early stage of Calva. |
You could add something to the README to state that linter errors are from Joker, but really this was my fault for filing it here - I should have realized it was in Joker and looked there first. Other people may run into this too, and it's always a challenge when you have dependencies, so I think it's also fine to just know that if something like this comes up, it can be redirected to the dependency (Joker, etc.). |
I'm finding that if I use
:refer :all
in a namespace require, that Calva shows me some unexpected errors around unresolved symbols and unused namespace. For example, if I have:Then assuming I have some tests defined, I will get the following errors:
If I change my requires to use
:as
, or to list the referred items (e.g.[clojure.test :refer [deftest is testing use-fixtures]]
), then the errors go away. I'm relatively new to Clojure, but these tests run fine, so it seems like a Calva parsing issue?My environment:
The text was updated successfully, but these errors were encountered: