-
Notifications
You must be signed in to change notification settings - Fork 13
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
Is it possible to load libs from .sublime-package files? #182
Comments
It was discussed kind of like LSP-pyright was born. The conclusion at that moment was pyright can't take a zip. I use git submodule for that https://github.com/jfcherng-sublime/ST-my-settings/tree/master/typings |
Huh, I was hoping that "res" in schemes would mean something like that. |
res: is ST thing. |
So, an LSP plugin can't act like a proxy, fetching those things as needed? |
yes, decompress them somewhere on your filesystem auto for you. just no one implements. I am not sure decompress them when every time ST starts is a good idea. Or maybe there is a way to pretend those files exist by sending requests to the server. |
Original discussion #71 |
Would be good to figure out what is the .zip support in pyright about and how it's supposed to work. If it works then we could get away with just copying packages somewhere and renaming to |
Installed LSP-pyright, cloned this repo, opened directory in Sublime Text, saved project, edited project, set
"pyright.dev_environment": "sublime_text"
, opened fileLSP-pyright/plugin.py
. LSP can't find imports from ST packages likefrom LSP.plugin import DottedDict
.I expected
pyright.dev_environment
option to take care of that. Is it possible to pass those modules from inside a package to an LSP without cloning the repo or manually unarchiving the package?The text was updated successfully, but these errors were encountered: