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

Go to definition not working for packages #2339

Open
itsdfish opened this issue Aug 3, 2021 · 10 comments
Open

Go to definition not working for packages #2339

itsdfish opened this issue Aug 3, 2021 · 10 comments

Comments

@itsdfish
Copy link

itsdfish commented Aug 3, 2021

I want to report that the go to definition feature is not working for packages. It does work for base functions and functions defined in the main module. Here is a discourse thread for reference.

Julia 1.6.2
VSCode 1.58.2
Julia Language Support 1.3.27
@famura
Copy link

famura commented May 2, 2022

Same problem over here with

Julia 1.7.2
VSCode 1.66.2
Julia Language Support 1.6.17

on Ubuntu 20.04

@Da-Be-Ru
Copy link

Da-Be-Ru commented Jun 21, 2022

I am experiencing the same problem under

Julia 1.7.3
VSCode 1.68.1
Julia Language Support 1.6.24

The "Go To Definition" feature does not work for anything outside of Base (when clicking, but they do work using the "Go to definition" button provided in the Julia Workspace pane once they are loaded into the REPL session). Some IntelliSense code suggestions do work, though (I am not entirely sure which ones to expect).

I have noticed that the docstring tooltip window prompted when hovering over a function contain appropriate file references, but they point to a non-existent /PLACEHOLDER/ directory which reminded me of this comment.

I have tried the Insiders release, too (1.6.6) on which it worked - but then it broke again after some time. I am thoroughly confused.

@DatName
Copy link

DatName commented Jul 9, 2022

For me, most of the time it works (for local dev packages), but sometimes it does not.
Re-indexing packages does not help.

When I am "inside" my packge (e.g. one of the project files is opened in editor), I can go to function definitions inside that package. But not when I am in Main.

@davidanthoff davidanthoff removed this from the Backlog milestone Oct 15, 2022
@LucasAschenbach
Copy link

LucasAschenbach commented Jan 21, 2023

Has there been progress on this issue? I'm still experiencing the same issue, unfortunately.

Julia 1.8.5
VSCode 1.74.3 (Universal)
Julia Language Support ext 1.38.2

(Hover help doesn't work either in my case)

@robsunch
Copy link

robsunch commented Feb 2, 2023

I am experiencing the same issue with
Julia 1.5.3 VSCode 1.74.3 (system setup) Julia Language Support 1.38.2

@bfpc
Copy link

bfpc commented Mar 13, 2023

Same here. I have a local package, I open the corresponding directory, I am using it but neither "go to definition" nor the "help" appear.
VSCode 1.76.1 (user setup) Julia 1.6.7 Julia Language Support 1.38.2

@LucasAschenbach
Copy link

LucasAschenbach commented Apr 21, 2023

I don't know what changed but go to definition works now on my setup, both in *.jl and *.ipynb files.

Julia version 1.8.5
VSCode version 1.77.3, 704ed70d4fd1c6bd6342c436f1ede30d1cff4710, arm64
Julia Language Support version 1.38.2

Perhaps, version 1.77 of VSCode fixes some issue with this API.

@jaredjeya
Copy link

I'm still experiencing this issue in the latest version of VSCode. I also get no documentation popups for anything that's not a built-in (anything I had to import with "using" or "import", including standard library like LinearAlgebra) which is really frustrating. I suspect these are related issues.

VS Code:

Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 4.18.0-425.13.1.el8_7.x86_64
Sandboxed: No

Julia Language Support:

Name: Julia
Id: julialang.language-julia
Description: Julia Language Support
Version: 1.47.2
Publisher: julialang
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=julialang.language-julia

@Davidbeld
Copy link

Hi, I had the same issue. I first re-installed the Julia language interpreter. After that I followed the tips here https://modernjuliaworkflows.github.io/writing/ . This fixed it, but I didn't check whether it was solved after just re-installing the language interpreter, so not sure which of the two actions solved it. Good luck!

@itsdfish
Copy link
Author

Thanks for reporting the potential fix. Were you able to trace the solution to a specific step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants