-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
I never got this right in sublime text:
How do I fix this missing imports error? I'm using pyls-mypy version 0.1.8
My project settings are as follows:
{
"folders":
[
{
"path": "."
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/LSP-eslint"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/metals-sublime"
},
{
"path": "/home/raoul/Documents/Programming/tonic"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/User"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/lsp_utils"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/LSP-json"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/UnitTesting"
},
{
"path": "/home/raoul/.config/sublime-text-3/Packages/LSP-vue"
},
{
"path": "../LSP-css"
},
{
"path": "../LSP-html"
},
{
"path": "../LSP-intelephense"
},
{
"path": "../LSP-typescript"
},
{
"path": "../LSP-elm"
}
],
"settings":
{
"rulers":
[
120
],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"lsp_format_on_save": true,
"LSP":
{
"pyls":
{
"command": ["pyls"],
"scopes": ["source.python"],
"syntaxes": ["Packages/Python/Python.sublime-syntax"],
"languageId": "python",
"env":
{
"PYTHONPATH": "/opt/sublime_text/Lib/python33",
"MYPYPATH": "/opt/sublime_text/Lib/python33"
},
"enabled": true,
}
}
}
}I Also tried this env:
"env":
{
"PYTHONPATH": "/opt/sublime_text/Lib/python33",
"MYPYPATH": "/home/raoul/.config/sublime-text-3/Packages/LSP/plugin"
},
But it doesn't seem to have any effect. I also tried this:
"env":
{
"PYTHONPATH": "/opt/sublime_text/Lib/python33:/home/raoul/.config/sublime-text-3/Packages/LSP/plugin"
},
But to no avail.
Metadata
Metadata
Assignees
Labels
No labels
