-
Notifications
You must be signed in to change notification settings - Fork 67
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
"Unable to resolve symbol: deftest" when using :refer :all
#52
Comments
I need to document this in readme :). No, if you use
I generally prefer first option for There is now a third option (not released yet): #50. It allows you to make Joker aware of any additional declarations (like |
Thanks for the clarification, very much appreciated. |
I appreciate all the discussion here. For the most part, this works as expected. I put this in my .jokerd/linter.cljd:
And I put this in my .joker:
The one caveat I'm trying to get around is the name of every test is now being shown as invalid, because joker is linting deftest as a function, which would expect the first argument (the test name in this case) to be a valid symbol. But joker can't find it because it's a new symbol. Any thoughts? Great work btw... new to the linter, but using it in vscode and loving it. |
Try this:
Pretty hacky, but should work. The linter will basically replace all your |
Ha, awesome. That did work, and it makes sense. Thanks for the help! |
Closing this issue for now as there is nothing actionable here at the moment. I have some ideas on how to make Joker aware of commonly used namespaces (like |
@tjbrandt why not simply |
@candid82 Can you suggest anything for things like |
@agzam it should not complain if you have |
@agzam Thanks for |
What I had to do was: In
|
@didibus Thanks for dropping in on this discussion even though it's been around for a while. The If I do exactly what you suggest in But it now works for me after adding your
There might be a simpler way for some of these, but if I just use Hope this helps someone! (@MicahElliott I know you were looking to a solution for this in the past too.) |
I'm using flycheck-joker in spacemacs and I'm very happy with what it provides.
However, one thing that bothers me quite a lot is that joker reports
deftest
andis
as unresolved symbols.Here's the minimal repro for me:
Here's the screenshot:
I realized that this might be because
deftest
andis
are macros so I tried to add following to ~/.joker (inspired by https://github.com/candid82/joker#reducing-false-positives):No success, however.
Any ideas why that happens?
Is it something that should work out of the box?
The text was updated successfully, but these errors were encountered: