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

Can't go neither to clojure nor java definition #460

Closed
hasrthur opened this issue Nov 8, 2019 · 3 comments
Closed

Can't go neither to clojure nor java definition #460

hasrthur opened this issue Nov 8, 2019 · 3 comments

Comments

@hasrthur
Copy link

hasrthur commented Nov 8, 2019

Steps to reproduce

  1. create new project lein new app test-calva
  2. open it in vs code
  3. start repl
  4. Open core.clj file
  5. Place cursor at println and Go to definition (either with shortcut or from mouse contextual menu). It successfully goes to appropriate function.
  6. Move cursor a couple of lines forward and place it on binding and Go to definition (either with shortcut or from mouse contextual menu). It issues error No defintion found for 'binding'
  7. Go back to file core.clj
  8. Add line (.toUpperCase "asd")
  9. Place cursor on toUpperCase and Go to definition (either with shortcut or from mouse contextual menu). It issues error No defintion found for 'toUpperCase'

My env:

macOs X 10.15 Mojave
VSCode October 2019 (version 1.40)
Calva 2.0.58

openjdk version "13" 2019-09-17
OpenJDK Runtime Environment Zulu13.27+9-CA (build 13+33)
OpenJDK 64-Bit Server VM Zulu13.27+9-CA (build 13+33, mixed mode, sharing)

Java is installed with asdf

@cfehse
Copy link
Contributor

cfehse commented Nov 8, 2019

@arthurborisow @PEZ The ability to get hover/definition in jar files was merged yesterday to the dev branch. Unfortunately I could not yet figure out how to get those information generally for Java methods other the static methods because the repl does not return any information in this cases.

@hasrthur
Copy link
Author

hasrthur commented Nov 8, 2019

@cfehse oh, that's nice, thank you very much - will be waiting for the next release

@bpringe
Copy link
Member

bpringe commented May 12, 2020

Closing due to staleness. Go to definition works for Clojure. Implementing for Java would be another issue / feature request.

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

3 participants