Skip to content

Skipping analyzing error #43

@rwols

Description

@rwols

I never got this right in sublime text:

Screenshot from 2020-04-12 18-19-58

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions