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

Missing metadata for import after adding new import #10

Closed
kazai777 opened this issue Jan 13, 2025 · 3 comments · Fixed by #11
Closed

Missing metadata for import after adding new import #10

kazai777 opened this issue Jan 13, 2025 · 3 comments · Fixed by #11

Comments

@kazai777
Copy link

There's a problem with adding imports, when you add a new import, for example gno.land/r/demo/profile or any other import like strings, std or others you get this error:

could not import gno.land/r/demo/profile (missing metadata for import of “gno.land/r/demo/profile”) compiler(BrokenImport)

Screenshot 2025-01-13 at 17 28 17

And this error only disappears by doing a Reload Window.

I'm getting this error when using gnopls with the vscode-gno extension already on the marketplace and also with the extension I'm currently developing vscode-gno.

@n0izn0iz
Copy link
Contributor

Can confirm I have the same, but I'm not sure how to proceed, the vscode extension does not seem to call into the language server when the import is added. I thought it was a problem from the vscode extension at some point but since you also have it in yours maybe it comes from gnopls.

cc @gfanton do you have the same problem with your editor? (don't remember if it's vim or emacs)

@kazai777
Copy link
Author

While searching I came across an old issue of gopls that talks about this problem, but it dates back to 2019.

@gfanton
Copy link
Member

gfanton commented Jan 14, 2025

@n0izn0iz @kazai777 I have the exact same problem with emacs.

@n0izn0iz n0izn0iz changed the title Missing metadata for import Missing metadata for import after adding new import Jan 15, 2025
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 a pull request may close this issue.

3 participants