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

Jsonnet + VSCODE + autocomple #10

Closed
Asgoret opened this issue Sep 11, 2020 · 2 comments
Closed

Jsonnet + VSCODE + autocomple #10

Asgoret opened this issue Sep 11, 2020 · 2 comments

Comments

@Asgoret
Copy link

Asgoret commented Sep 11, 2020

Hi to all.

Can somebody help with autocomplete in vscode? I install all plugins (and autocomplete works in kubernetes-prometheus folder) but I can't import new library with autocomplete

@Asgoret
Copy link
Author

Asgoret commented Sep 11, 2020

Ok...Little investigation. I think the autocomplete problem lies somebody near imports in the library. For example:

local d = (import 'doc-util/main.libsonnet'),

And error:

Can't find path 'doc-util/main.libsonnet'. If the file is not in the current directory, it may be necessary to add it to the 'jsonnet.libPaths'. If you are in vscode, you can press 'cmd/ctrl-,' and add the path this library is located at to the 'jsonnet.libPaths' array

But I don't have doc-util installed at all)

@Duologic
Copy link
Member

This is a support issue, not really part of this project.

Feel free to reach out to the Tanka community via GitHub Discussions or in #tanka on Grafana Slack.

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