Title: unresolved imports · Issue #1085 · microsoft/python-language-server · GitHub
Open Graph Title: unresolved imports · Issue #1085 · microsoft/python-language-server
X Title: unresolved imports · Issue #1085 · microsoft/python-language-server
Description: Albert Szostkiewicz (@tmdag) commented on Thu May 02 2019 Everything was just working fine. I wanted to give it a try to suggested 'Visual Studio IntelliCode 1.1.5'. I've installed it and got some popup that I didn't read carefully, that...
Open Graph Description: Albert Szostkiewicz (@tmdag) commented on Thu May 02 2019 Everything was just working fine. I wanted to give it a try to suggested 'Visual Studio IntelliCode 1.1.5'. I've installed it and got some ...
X Description: Albert Szostkiewicz (@tmdag) commented on Thu May 02 2019 Everything was just working fine. I wanted to give it a try to suggested 'Visual Studio IntelliCode 1.1.5'. I've installed it a...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1085
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unresolved imports","articleBody":"@tmdag commented on [Thu May 02 2019](https://github.com/microsoft/vscode-python/issues/5544)\n\nEverything was just working fine. I wanted to give it a try to suggested 'Visual Studio IntelliCode 1.1.5'. I've installed it and got some popup that I didn't read carefully, that it has to connect to Microsoft server or something, I clicked OK.\r\nFrom this moment my existing python and pyqt projects are screaming with errors 'unresolved import' for local files like QtUI or anything else for that matter. Uninstalling or disabling IntelliCode did not help.\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.33.1\r\n- Extension version (available under the Extensions sidebar): 2019.4.2 (30 April 2019)\r\n- OS and version: 5.0.7-200.fc29.x86_64\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7.3\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A\r\n- Relevant/affected Python packages and their versions: Visual Studio IntelliCode 1.1.5\r\n\r\n\r\n\r\n\n\n---\n\n@karrtikr commented on [Thu May 02 2019](https://github.com/microsoft/vscode-python/issues/5544#issuecomment-488953393)\n\nPlease provide answer to the following questions,\r\n\r\n- Please inform if you are using Language server or jedi, i.e check the value of `python.jediEnabled` in `settings.json`, if any such setting.\r\nClicking OK enables Language server (`python.jediEnabled: false`), which might be your problem. To rectify that just change it to `true` or remove that setting.\r\n\r\n- Output for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n- Output from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)\n\n---\n\n@tmdag commented on [Fri May 03 2019](https://github.com/microsoft/vscode-python/issues/5544#issuecomment-489128582)\n\nEnabling python.Jedi fixed the issue. That also brought back the popup\r\n\r\n\r\n\r\n\r\n## settings.json\r\n\"python.jediEnabled\": false,\r\n\r\n## Output\r\n```\r\nStarting Microsoft Python language server.\r\n[Info - 7:51:57 AM] GetCurrentSearchPaths /usr/bin/python3 \r\n[Info - 7:51:57 AM] Python search paths:\r\n[Info - 7:51:57 AM] /usr/lib64/python3.7\r\n[Info - 7:51:57 AM] /usr/lib64/python3.7/lib-dynload\r\n[Info - 7:51:57 AM] /usr/local/lib64/python3.7/site-packages\r\n[Info - 7:51:57 AM] /usr/local/lib/python3.7/site-packages\r\n[Info - 7:51:57 AM] /usr/lib64/python3.7/site-packages\r\n[Info - 7:51:57 AM] /usr/lib/python3.7/site-packages\r\n[Info - 7:51:57 AM] Configuration search paths:\r\n[Info - 7:51:59 AM] Microsoft Python Language Server version 0.2.66.0\r\n[Info - 7:51:59 AM] Initializing for /usr/bin/python3\r\n```\r\n\r\n\r\n## Errors in Developer Tools\r\n```\r\nconsole.ts:134 [Extension Host] Python Extension: Failed to discover if linter pylint is available, Class name = f, Arg 1: {\"configService\":{\"serviceContainer\":{\"container\":{\"options\":{\"autoBindInjectable\":false,\"defaultScope\":\"Transient\"},\"guid\":\"97b73b07-0c24-218d-41a4-266530363ffe\",\"_bindingDictionary\":{\"_map\":{}},\"_snapshots\":[],\"_middleware\":null,\"parent\":null,\"_metadataReader\":{}}},\"workspaceService\":{}},\"_product\":3,\"_id\":\"pylint\",\"_configFileNames\":[\".pylintrc\",\"pylintrc\"],\"workspaceService\":{}}, Arg 2: \u003cUri:extension-output-#3>, Return Value: undefined TypeError: Cannot read property 'uri' of undefined\r\n\tat f.isLinterAvailable (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:678059)\r\n\tat f.module.exports.o.value (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:1:17815)\r\n\tat f.promptIfLinterAvailable (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:677148)\r\n\tat S.enableUnconfiguredLinters (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:682168)\r\n\tat S.getActiveLinters (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:680590)\r\n\tat S.isLintingEnabled (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:680390)\r\n\tat w.shouldLintDocument (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:696472)\r\n\tat w.lintDocument (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:694573)\r\n\tat module.exports.t.LinterProvider.onDocumentOpened (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:704064)\r\n\tat Array.module.exports.t.LinterProvider.constructor.documents.onDidOpenTextDocument.e (/home/myuser/.vscode/extensions/ms-python.python-2019.4.12954/out/client/extension.js:83:703191)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:728)\r\n\tat define.constructor._toDispose._documentsAndEditors.onDidAddDocuments.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:517:782)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:708)\r\n\tat u.$acceptDocumentsAndEditorsDelta (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:521:981)\r\n\tat d._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:622:11)\r\n\tat d._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:621:716)\r\n\tat d._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:620:394)\r\n\tat d._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:619:141)\r\n\tat define.constructor._protocol.onMessage.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:617:400)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:708)\r\n\tat e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:40:460)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:708)\r\n\tat a (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:172:467)\r\n\tat e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:172:513)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:708)\r\n\tat y._receiveMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:181:276)\r\n\tat define.constructor._socketDisposables.push._socketReader.onMessage.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:178:415)\r\n\tat u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:44:708)\r\n\tat f.acceptChunk (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:175:35)\r\n\tat define.constructor._register._socket.onData.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:174:410)\r\n\tat Socket.t (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:182:689)\r\n\tat Socket.emit (events.js:182:13)\r\n\tat addChunk (_stream_readable.js:279:12)\r\n\tat readableAddChunk (_stream_readable.js:264:11)\r\n\tat Socket.Readable.push (_stream_readable.js:219:10)\r\n\tat Pipe.onread (net.js:636:20)\r\n```\r\n\r\n`console.ts:134 [Extension Host] Python Extension: Python Extension (Error in Failed to check if file needs to be fixed, method:doesFileNeedToBeFixed): Error: ENOENT: no such file or directory, open '/home/myuser/dev/mycode/.vscode/settings.json'`\n\n---\n\n@Ronkiro commented on [Fri May 03 2019](https://github.com/microsoft/vscode-python/issues/5544#issuecomment-489175681)\n\nAn addition.\r\n\r\nI also had the same problem (Windows 10 Enterprise), fully reinstalling VSCode (Uninstalling and removing the folders from APPDATA, user, etc) solved the issue. Had a lot of problems with language server too, they all seem solved after that.\r\n\r\nMaybe it's a config problem, or something related to PATH.\n\n---\n\n@karrtikr commented on [Tue May 14 2019](https://github.com/microsoft/vscode-python/issues/5544#issuecomment-492437243)\n\nClosing as the issue seems to be solved. Please open up a fresh issue if the problem re-occurs.\n\n---\n\n@tmdag commented on [Tue May 14 2019](https://github.com/microsoft/vscode-python/issues/5544#issuecomment-492462127)\n\n@karrtikr,well not really, unless \"Microsoft Python language server\" is NOT meant to be used ??\r\n\r\nIf that is the case, can I get rid of that annoying popup that asks me to turn int back on ?\r\n\r\ndon't see really any solution, only work around which i don't think it is a solution at all :(\n\n","author":{"url":"https://github.com/karrtikr","@type":"Person","name":"karrtikr"},"datePublished":"2019-05-15T05:50:03Z","url":"https://github.com/microsoft/python-language-server/issues/1085"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0e29fd1b-287d-6f62-31a6-7df51b786b3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD2C:2224A5:6FC884:97852A:6AFE6864 |
| html-safe-nonce | c70342d4db6ac7c06e6ded57f7d451285b262dbb433ade93e534327c71b54f84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDJDOjIyMjRBNTo2RkM4ODQ6OTc4NTJBOjZBRkU2ODY0IiwidmlzaXRvcl9pZCI6IjY2NjkzODYxMzQyNjg1Njk3MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e6b0f33f6c248a71e214bfad1a9eec2799c4d7f46d9814fb1ce580f8b09b617 |
| hovercard-subject-tag | issue:444248234 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1085/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48ffc0c34f1137a112f299115c3aca31a48755ed565e5361c1f4186ae496eb8f/microsoft/python-language-server/issues/1085 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48ffc0c34f1137a112f299115c3aca31a48755ed565e5361c1f4186ae496eb8f/microsoft/python-language-server/issues/1085 |
| og:image:alt | Albert Szostkiewicz (@tmdag) commented on Thu May 02 2019 Everything was just working fine. I wanted to give it a try to suggested 'Visual Studio IntelliCode 1.1.5'. I've installed it and got some ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karrtikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width