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

Extension uses the wrong location to store Python stubs #263

Open
DeflateAwning opened this issue Nov 20, 2024 · 0 comments
Open

Extension uses the wrong location to store Python stubs #263

DeflateAwning opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DeflateAwning
Copy link

DeflateAwning commented Nov 20, 2024

This extension, on Linux, stores the stubs cache in ~/.micropico-stubs/included. This is breaking the standard API of how a VS Code extension is supposed to cache tools, downloads, stubs, etc.

This extension should use the location given by the storagePath or the ExtensionContext.globalStoragePath variable in the VS Code API. These paths resolve to something like ~/.config/Code.

Why is this important?

  • When the extension is removed, the files still linger.
  • Uninstalling and reinstalling the extension can't reset a corrupted stubs path.
  • I don't want more files in my home directory.
  • APIs and best practices should be adhered to.
  • Potential permissions/multi-user/multi-installation issues.
  • Optimal cross-platform compatibility.

References

@DeflateAwning DeflateAwning added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant