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

defn inside a with-test cannot be resolved #2063

Closed
holyjak opened this issue Oct 4, 2018 · 6 comments
Closed

defn inside a with-test cannot be resolved #2063

holyjak opened this issue Oct 4, 2018 · 6 comments

Comments

@holyjak
Copy link

holyjak commented Oct 4, 2018

If I have

(clojure.test/with-test
  (defn parse-command [] ...)
  ...)

then 1. autocompletion of (pars won't propose anything and 2. when I call (parse-command ..) from the code, it is highlighted and reports

parse-command cannot be resolved

Expected behavior: IntelliJ should see the defn and not report the function as not resolved; autocompletion should work.

Cursive 1.8

Thank you!

@cursive-ide
Copy link
Owner

cursive-ide commented Oct 4, 2018

You should hopefully be able to fix this using the Resolve as... feature for clojure.test/with-test, see here. The doc is slightly out of date, there's now a Specify... option which will allow you to resolve as any other macro or function. If you resolve this as clojure.core/do this should hopefully work.

@holyjak
Copy link
Author

holyjak commented Oct 5, 2018

Hi Colin, thanks a lot! Unfortunately. do does not seem to be supported:

telia-devbot____work_telia-devbot__-_t_core

@holyjak
Copy link
Author

holyjak commented Oct 16, 2018

Any update? Thank you!

@holyjak
Copy link
Author

holyjak commented Nov 12, 2018

Hi @cursive-ide , as mentioned above, I am not able to apply your advice. Do I do something wrong? Thanks!

@cursive-ide
Copy link
Owner

Hi @holyjak, I've filed #2081 for the underlying issue. I'll try to fix this for the next build, and then you should be able to do this.

@cursive-ide
Copy link
Owner

Closing this as #2081 is now fixed and released.

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

2 participants