Skip to content

Conversation

@brychcy
Copy link
Contributor

@brychcy brychcy commented Sep 1, 2023

This reverts part of commit 50521fb.

Fixes vscode#2565 and the problems related to DataFrames reported in comments to vscode#1576

This reverts part of commit 50521fb that was intended as optimization.
@brychcy
Copy link
Contributor Author

brychcy commented Sep 1, 2023

Note: After fixing this, I had to delete ~/Library/'Application Support'/Code/User/globalStorage/julialang.language-julia/ (begin o macOS) and restart. Using ">Julia: Re-Index Language Server Cache" was not enough.

@brychcy
Copy link
Contributor Author

brychcy commented Sep 1, 2023

Example code for reproduction: Setup a fresh project, just add "DataFrames". Add a file with the following code:

using DataFrames

x = DataFrame(a=[1, 2])
y = nrow(x)
print(y)

Remove the cache directory mentioned in the previous comment and restart vscode.

A "Possible method call error" error is reported for "nrow". Cmd-Clicking on "nrow" doesn't show a definition.

Now repeat with the patch applied. The errors disappears and, cmd-clicking shows the definitions in DataFrames.

Copy link
Member

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

It's a bit unfortunate that we write cache files in one go now, which means that one package failing to load means that you'll never get any info. I'll merge this and do some thinking on how to improve that situation later.

@pfitzseb pfitzseb merged commit 4c2d614 into julia-vscode:master Sep 4, 2023
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

Successfully merging this pull request may close these issues.

Linter misses sort method definition in DataFrames

2 participants