microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
915 stars 133 forks source link

Python unresolved import issue #887

Closed DonJayamanne closed 5 years ago

DonJayamanne commented 5 years ago

@felixchr commented on Wed Jan 02 2019

Issue Type: Bug

I have python script which imports some libraries from subdirectories like this:

from easylog import EasyLog
from lib.fclib.misc import *
from lib.fclib.datelib import timestamp

with this directory hierachy:

  myscript.py
  lib
  |-__init__.py
  |-fclib
      |-__init__.py
      |-misc.py
      |-datelib.py

But VSCODE shows warnings like "unresolved import 'lib.fclib.misc' Python(unresolved-import)". And the functions in the libs have so many warnings about the codes.

Extension version: 2018.12.1 VS Code version: Code 1.30.1 (dea8705087adb1b5e5ae1d9123278e178656186a, 2018-12-18T18:12:07.165Z) OS version: Windows_NT x64 10.0.16299

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (4 x 2594)| |GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Memory (System)|7.88GB (1.36GB free)| |Process Argv|| |Screen Reader|no| |VM|67%|

@chidgey commented on Tue Jan 08 2019

Maybe this screen helps, I've been playing with module imports in Python 3.7.2 and get various problems in the IDE, perhaps someone can suggest what's going wrong? All the imports are valid and execute as expected at runtime.

image

The warnings and errors I see in VSCode are:

image

System info: Version: 1.30.1 (user setup) Commit: dea8705087adb1b5e5ae1d9123278e178656186a Date: 2018-12-18T18:12:07.165Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 OS: Windows_NT x64 10.0.17134

Extension Info: Name: Python Id: ms-python.python Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more. Version: 2018.12.1 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Hopefully that's of some use!


@dkavraal commented on Wed Jan 09 2019

The thumb ups may be confusing. I am having the same issue for the last two updates. When I > reload window that fixes.


@nyanev commented on Wed Jan 09 2019

I have he same problem. It's really annoying. @dkavraal > reload window fix it until i try to autocomplete something or try to go to the definition


@jiashengguo commented on Sun Jan 13 2019

The same error happens for me. But if manually run the command "Running lint", it shows no error.


@d3r3kk commented on Mon Jan 14 2019

@felixchr, I cannot reproduce this on the latest version of the extension with either Jedi or the Microsoft Python Language Server (0.1.75.0) using Python 3.7.

Where is the error "unresolved import 'lib.fclib.misc' Python(unresolved-import)" coming from? If you could please include more detail from the output windows perhaps I can track down where the problem is.

What version of Python is being used? Is there a repo I can sync to and reproduce with? Are you using the Jedi server or the Microsoft Python Language Server?


@felixchr commented on Mon Jan 14 2019

@d3r3kk So far I don't have a repo for you. I'll generate one to reproduce it. chidgey's picture provided more detail about it. It is the same issue with me.

My environment is: Windows 10.0.16299 Python 2.7.15 VSCode: 1.30.1 Pylint: 1.9.3 Microsoft Python extension 2018.12.1 Microsoft Python Language Server (0.1.72.0)


@panosangelopoulos commented on Tue Jan 15 2019

I faced exactly the same error, using Python 3.7.2 and docker.

My environment : MacOSX 10.14.2 (18C54) Python 3.7.2 VSCode: 1.30.2 Microsoft Python extension: 2018.12.1


@d3r3kk commented on Tue Jan 15 2019

@felixchr and @panosangelopoulos could you update to the latest stable Microsoft Python Language Server and see if it still repros for you?


@felixchr commented on Tue Jan 15 2019

I updated my environment to: VSCode: 1.30.2 Microsoft Pythong Language server 0.1.75.0 Pylint: 1.9.4 So far everything looks good. The error is not showing anymore. The code hint and definition-follow link works good. Thank you! @d3r3kk


@chidgey commented on Wed Jan 16 2019

I'm still seeing the same issues, oddly, I have the same VSCode and Language server as felixchr, however a newer version of pylint (all details below).

I did also follow the language server steps, thanks @d3r3kk

It might be worth noting my pylint results differ from what I see in VSCode, perhaps I've got a setting astray, judge for yourselves - it seems I see more warnings in VSCode.

image

vs

image

I did get rid of all but the error by enabling Jedi at one point, then switched back.

Configuration details are:

PyLint pylint 2.2.2

Python Language Server Microsoft Python Language Server version 0.1.75.0 *This is also configured to Auto Update under settings.

System info: Version: 1.30.2 (user setup) Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8 Date: 2019-01-07T22:54:13.295Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 OS: Windows_NT x64 10.0.17134

Extension Info: Name: Python Id: ms-python.python Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more. Version: 2018.12.1 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python


@jtyoung commented on Wed Jan 16 2019

The above solutions did not fix it for me.

VSCode: 1.30.2 Microsoft Python Language server 0.1.75.0

I'm using flake8 3.6.0 instead of PyLint, but I did try PyLint after reading this issue and it still happened. This only started happening in the last few weeks, with no settings changed on my end during that time.


@d3r3kk commented on Thu Jan 17 2019

@chidgey I see your problem as well, and I think I've created a minimum set of files to repro your case.

I can reproduce this with:

  1. VS Code (1.30.2-user), with the Python extension (2018.12.1), running the latest Microsoft Python Language Server (0.1.72.0).
  2. VS Code Insiders (1.31.0-insider), with the latest developer build of the Python extension (2019.1.0-alpha), running the latest Language Server (0.1.78.0).

Repro

  1. Unzip this archive:
  2. Open a Powershell window and navigate to wherever you unzipped the archive to.
  3. Create a virtual env for the folder and activate it.
    • py -3.7 -m venv .venv
    • .venv/Scripts/Activate.ps1
    • python -m pip install -U pip
    • python -m pip install -r requirements.txt
  4. See that the code works for Python 3.7
    • python .\language-fundamentals\custom-package-importing.py
  5. Open VS Code for the workspace.
    • code .
  6. Observe the errors as reported above.

Logging output (from run on VS Code Insiders with latest developer build + latest LS)

Problems Window

image

Output::Python Window

Starting Microsoft Python language server.
##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Microsoft Python Language Server version 0.1.78.0
Initializing for c:\dev\github\d3r3kk\test\3840_unresolved_import\.venv\Scripts\python.exe

Developer Tools Window

Click for detailed log...

``` keybindingsRegistry.ts:206 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: e {type: 1, ctrlKey: true, shiftKey: false, altKey: true, metaKey: false, …} for editor.action.autoFix e._assertNoCtrlAlt @ keybindingsRegistry.ts:206 e._registerDefaultKeybinding @ keybindingsRegistry.ts:216 e.registerKeybindingRule @ keybindingsRegistry.ts:135 e.registerCommandAndKeybindingRule @ keybindingsRegistry.ts:173 e.register @ editorExtensions.ts:88 t.register @ editorExtensions.ts:213 e.registerEditorAction @ editorExtensions.ts:339 t.registerEditorAction @ editorExtensions.ts:289 (anonymous) @ codeActionContributions.ts:15 t._invokeFactory @ loader.js:970 t.complete @ loader.js:980 s._onModuleComplete @ loader.js:1580 s._resolve @ loader.js:1542 s.defineModule @ loader.js:1206 r @ loader.js:1630 f @ loader.js:804 (anonymous) @ codeActionCommands.ts:362 (anonymous) @ fake:1 t._loadAndEvalScript @ loader.js:807 (anonymous) @ loader.js:788 readFileAfterClose @ fs.js:440 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t.createTabsScrollbar @ tabsTitleControl.ts:132 t.create @ tabsTitleControl.ts:107 t @ titleControl.ts:86 t @ tabsTitleControl.ts:86 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createTitleAreaControl @ editorGroupView.ts:394 t.create @ editorGroupView.ts:190 t @ editorGroupView.ts:142 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createFromSerialized @ editorGroupView.ts:58 t.doCreateGroupView @ editorPart.ts:504 fromJSON @ editorPart.ts:882 t.deserializeNode @ grid.ts:453 t.deserializeNode @ grid.ts:446 t.deserialize @ grid.ts:482 t.doCreateGridControlWithState @ editorPart.ts:876 t.doCreateGridControlWithPreviousState @ editorPart.ts:838 t.doCreateGridControl @ editorPart.ts:810 t.createContentArea @ editorPart.ts:787 t.create @ part.ts:53 t.createEditorPart @ workbench.ts:1066 t.renderWorkbench @ workbench.ts:1022 t.startup @ workbench.ts:280 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 e @ breadcrumbsWidget.ts:90 e @ breadcrumbsControl.ts:173 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createBreadcrumbsControl @ titleControl.ts:111 t.create @ tabsTitleControl.ts:125 t @ titleControl.ts:86 t @ tabsTitleControl.ts:86 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createTitleAreaControl @ editorGroupView.ts:394 t.create @ editorGroupView.ts:190 t @ editorGroupView.ts:142 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createFromSerialized @ editorGroupView.ts:58 t.doCreateGroupView @ editorPart.ts:504 fromJSON @ editorPart.ts:882 t.deserializeNode @ grid.ts:453 t.deserializeNode @ grid.ts:446 t.deserialize @ grid.ts:482 t.doCreateGridControlWithState @ editorPart.ts:876 t.doCreateGridControlWithPreviousState @ editorPart.ts:838 t.doCreateGridControl @ editorPart.ts:810 t.createContentArea @ editorPart.ts:787 t.create @ part.ts:53 t.createEditorPart @ workbench.ts:1066 t.renderWorkbench @ workbench.ts:1022 t.startup @ workbench.ts:280 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 e @ listView.ts:223 e @ listWidget.ts:1095 n @ listService.ts:236 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.renderBody @ openEditorsView.ts:214 e.render @ panelview.ts:188 t.render @ panelViewlet.ts:112 o @ viewsViewlet.ts:199 t.onDidAddViews @ viewsViewlet.ts:190 t.create @ viewsViewlet.ts:85 t.create @ explorerViewlet.ts:175 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 n.doOpenViewlet @ sidebarPart.ts:224 n.openViewlet @ sidebarPart.ts:180 t.restoreParts @ workbench.ts:743 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 Object.defineProperty.get._event._event @ event.ts:493 i @ event.ts:56 e @ listWidget.ts:495 e @ listWidget.ts:1128 n @ listService.ts:236 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.renderBody @ openEditorsView.ts:214 e.render @ panelview.ts:188 t.render @ panelViewlet.ts:112 o @ viewsViewlet.ts:199 t.onDidAddViews @ viewsViewlet.ts:190 t.create @ viewsViewlet.ts:85 t.create @ explorerViewlet.ts:175 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 n.doOpenViewlet @ sidebarPart.ts:224 n.openViewlet @ sidebarPart.ts:180 t.restoreParts @ workbench.ts:743 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 e @ listView.ts:223 e @ listWidget.ts:1095 e @ abstractTree.ts:324 t @ objectTree.ts:27 e @ asyncDataTree.ts:291 n @ listService.ts:1054 t.createTree @ explorerView.ts:255 t.renderBody @ explorerView.ts:154 e.render @ panelview.ts:188 t.render @ panelViewlet.ts:112 o @ viewsViewlet.ts:199 t.onDidAddViews @ viewsViewlet.ts:190 t.create @ viewsViewlet.ts:85 t.create @ explorerViewlet.ts:175 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 n.doOpenViewlet @ sidebarPart.ts:224 n.openViewlet @ sidebarPart.ts:180 t.restoreParts @ workbench.ts:743 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 Object.defineProperty.get._event._event @ event.ts:493 i @ event.ts:56 e @ listWidget.ts:495 e @ listWidget.ts:1128 e @ abstractTree.ts:324 t @ objectTree.ts:27 e @ asyncDataTree.ts:291 n @ listService.ts:1054 t.createTree @ explorerView.ts:255 t.renderBody @ explorerView.ts:154 e.render @ panelview.ts:188 t.render @ panelViewlet.ts:112 o @ viewsViewlet.ts:199 t.onDidAddViews @ viewsViewlet.ts:190 t.create @ viewsViewlet.ts:85 t.create @ explorerViewlet.ts:175 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 n.doOpenViewlet @ sidebarPart.ts:224 n.openViewlet @ sidebarPart.ts:180 t.restoreParts @ workbench.ts:743 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ treeView.ts:511 e @ treeImpl.ts:97 n @ listService.ts:387 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.renderBody @ outlinePanel.ts:360 e.render @ panelview.ts:188 t.render @ panelViewlet.ts:112 o @ viewsViewlet.ts:199 t.onDidAddViews @ viewsViewlet.ts:190 t.create @ viewsViewlet.ts:85 t.create @ explorerViewlet.ts:175 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 n.doOpenViewlet @ sidebarPart.ts:224 n.openViewlet @ sidebarPart.ts:180 t.restoreParts @ workbench.ts:743 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 e @ listView.ts:223 e @ listWidget.ts:1095 e @ abstractTree.ts:324 t @ objectTree.ts:27 n @ listService.ts:907 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createTree @ markersPanel.ts:310 t.create @ markersPanel.ts:127 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 o.openPanel @ panelPart.ts:211 t.restoreParts @ workbench.ts:755 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 Object.defineProperty.get._event._event @ event.ts:493 i @ event.ts:56 e @ listWidget.ts:495 e @ listWidget.ts:1128 e @ abstractTree.ts:324 t @ objectTree.ts:27 n @ listService.ts:907 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.createTree @ markersPanel.ts:310 t.create @ markersPanel.ts:127 t.showComposite @ compositePart.ts:214 t.doOpenComposite @ compositePart.ts:146 t.openComposite @ compositePart.ts:110 o.openPanel @ panelPart.ts:211 t.restoreParts @ workbench.ts:755 t.startup @ workbench.ts:291 t.createWorkbench @ shell.ts:214 t.renderContents @ shell.ts:184 t.open @ shell.ts:550 (anonymous) @ main.ts:144 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:502 t @ editorScrollbar.ts:54 t.createViewParts @ viewImpl.ts:159 t @ viewImpl.ts:131 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textFileEditor.ts:138 _tickCallback @ internal/process/next_tick.js:68 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t @ mouseHandler.ts:124 t @ pointerHandler.ts:191 e @ pointerHandler.ts:229 t @ viewImpl.ts:135 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textFileEditor.ts:138 _tickCallback @ internal/process/next_tick.js:68 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 t @ hoverWidgets.ts:55 t @ modesContentHover.ts:208 e._createHoverWidget @ hover.ts:209 get @ hover.ts:41 e._onModelDecorationsChanged @ hover.ts:110 (anonymous) @ hover.ts:95 e.fire @ event.ts:562 (anonymous) @ codeEditorWidget.ts:1312 e.fire @ event.ts:562 t.endDeferredEmit @ textModel.ts:2931 o.deltaDecorations @ textModel.ts:1530 t.deltaDecorations @ codeEditorWidget.ts:1038 t._updateBrackets @ bracketMatching.ts:254 (anonymous) @ bracketMatching.ts:105 e.doRun @ async.ts:646 e.onTimeout @ async.ts:640 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 e @ suggestWidget.ts:251 e @ suggestWidget.ts:467 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 (anonymous) @ suggestController.ts:112 w._executor @ async.ts:761 (anonymous) @ async.ts:768 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 e @ listView.ts:223 e @ listWidget.ts:1095 e @ suggestWidget.ts:471 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 (anonymous) @ suggestController.ts:112 w._executor @ async.ts:761 (anonymous) @ async.ts:768 TMSyntax.ts:50 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/dekeeler/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/dekeeler/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.147.1/syntaxes/yaml.tmLanguage.json e.register @ TMSyntax.ts:50 f._handleGrammarExtensionPointUser @ TMSyntax.ts:354 (anonymous) @ TMSyntax.ts:193 e._handle @ extensionsRegistry.ts:149 e.acceptUsers @ extensionsRegistry.ts:135 t._handleExtensionPoint @ extensionService.ts:682 t._handleExtensionPoints @ extensionService.ts:536 (anonymous) @ extensionService.ts:522 (anonymous) @ errors.ts:184 i.__generator.a.label @ errors.ts:184 s @ errors.ts:184 Promise.then (async) c @ errors.ts:184 s @ errors.ts:184 Promise.then (async) c @ errors.ts:184 n @ errors.ts:184 n @ errors.ts:184 t._scanAndHandleExtensions @ extensionService.ts:515 (anonymous) @ extensionService.ts:286 requestIdleCallback (async) t.runWhenIdle @ async.ts:730 (anonymous) @ extensionService.ts:283 Promise.then (async) t._startDelayed @ extensionService.ts:281 t @ extensionService.ts:106 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.initServiceCollection @ shell.ts:485 t.renderContents @ shell.ts:174 t.open @ shell.ts:550 (anonymous) @ main.ts:144 Promise.then (async) (anonymous) @ main.ts:126 Promise.then (async) (anonymous) @ main.ts:122 Promise.then (async) (anonymous) @ main.ts:113 j @ main.ts:83 (anonymous) @ workbench.js:30 Promise.then (async) bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26 exports.load.e @ bootstrap-window.js:122 t._invokeFactory @ loader.js:970 t.complete @ loader.js:980 s._onModuleComplete @ loader.js:1580 s._onModuleComplete @ loader.js:1592 s._resolve @ loader.js:1542 s.defineModule @ loader.js:1206 r @ loader.js:1630 f @ loader.js:804 (anonymous) @ gettingStarted.contribution.ts:18 (anonymous) @ fake:1 t._loadAndEvalScript @ loader.js:807 (anonymous) @ loader.js:788 readFileAfterClose @ fs.js:440 TMSyntax.ts:50 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///c%3A/Users/dekeeler/.vscode-insiders/extensions/ms-azure-devops.azure-pipelines-1.147.1/syntaxes/yaml.tmLanguage.json. New grammar file: file:///c%3A/Users/dekeeler/.vscode-insiders/extensions/redhat.vscode-yaml-0.2.1/syntaxes/yaml.tmLanguage.json e.register @ TMSyntax.ts:50 f._handleGrammarExtensionPointUser @ TMSyntax.ts:354 (anonymous) @ TMSyntax.ts:193 e._handle @ extensionsRegistry.ts:149 e.acceptUsers @ extensionsRegistry.ts:135 t._handleExtensionPoint @ extensionService.ts:682 t._handleExtensionPoints @ extensionService.ts:536 (anonymous) @ extensionService.ts:522 (anonymous) @ errors.ts:184 i.__generator.a.label @ errors.ts:184 s @ errors.ts:184 Promise.then (async) c @ errors.ts:184 s @ errors.ts:184 Promise.then (async) c @ errors.ts:184 n @ errors.ts:184 n @ errors.ts:184 t._scanAndHandleExtensions @ extensionService.ts:515 (anonymous) @ extensionService.ts:286 requestIdleCallback (async) t.runWhenIdle @ async.ts:730 (anonymous) @ extensionService.ts:283 Promise.then (async) t._startDelayed @ extensionService.ts:281 t @ extensionService.ts:106 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 t.initServiceCollection @ shell.ts:485 t.renderContents @ shell.ts:174 t.open @ shell.ts:550 (anonymous) @ main.ts:144 Promise.then (async) (anonymous) @ main.ts:126 Promise.then (async) (anonymous) @ main.ts:122 Promise.then (async) (anonymous) @ main.ts:113 j @ main.ts:83 (anonymous) @ workbench.js:30 Promise.then (async) bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26 exports.load.e @ bootstrap-window.js:122 t._invokeFactory @ loader.js:970 t.complete @ loader.js:980 s._onModuleComplete @ loader.js:1580 s._onModuleComplete @ loader.js:1592 s._resolve @ loader.js:1542 s.defineModule @ loader.js:1206 r @ loader.js:1630 f @ loader.js:804 (anonymous) @ gettingStarted.contribution.ts:18 (anonymous) @ fake:1 t._loadAndEvalScript @ loader.js:807 (anonymous) @ loader.js:788 readFileAfterClose @ fs.js:440 extensionHost.ts:325 [Extension Host] debugger listening on port 48791 extensionHost.ts:231 Extension Host extensionHost.ts:232 Debugger listening on ws://127.0.0.1:48791/995db7ca-db22-4c65-8a97-f4b6fc679883 For help, see: https://nodejs.org/en/docs/inspector console.ts:134 [Extension Host] [UriError]: Scheme is missing: {scheme: "", authority: "", path: "", query: "", fragment: ""} (at c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:106:452) t.log @ console.ts:134 t._logExtensionHostMessage @ extensionHost.ts:447 (anonymous) @ extensionHost.ts:240 emit @ events.js:182 emit @ internal/child_process.js:811 _tickCallback @ internal/process/next_tick.js:63 log.ts:161 INFO no standard startup: not a new window console.ts:134 [Extension Host] (1/17/2019, 11:22:02 PM) [ExtensionActivated] Extension has been activated! (at Object.log (C:\Users\dekeeler\.vscode-insiders\extensions\ms-azure-devops.azure-pipelines-1.147.1\out\logger.js:15:13)) console.ts:134 [Extension Host] (1/17/2019, 11:22:02 PM) Spinning up telemetry client for id azure-pipelines, version 1.147.1 (at Object.log (C:\Users\dekeeler\.vscode-insiders\extensions\ms-azure-devops.azure-pipelines-1.147.1\out\logger.js:15:13)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = WorkspaceVirtualEnvWatcherService, Arg 1: , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = InterpreterWatcherBuilder, Arg 1: , Return Value: (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.7 and args failed (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args failed (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3 and args failed (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python2 and args failed (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python and args failed (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from settings (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv","fileHash":"26e4b92839ac0743f87d897fe12ff89cc1d6688fe122c0e31c9caca6752084fd840ea09a722cb36f8a809502636681e09f71f9d12500a2f6717530d9d25eb2d3","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\versions\\python3.7.1\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\versions\\python3.7.1","fileHash":"edba0164a0155e8310ae37367fd10ee27d04c93e8d06d3292036b0787e666ca9f97aa0ff0e858fce2c3f942308797fd2235fbaca3e3b23f727b8640711833832","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 0 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: true (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) 3console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: UNABLE TO DETERMINE VALUE, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) event.ts:73 [Violation] 'setTimeout' handler took 64ms console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from settings (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Python\\versions\\python3.7.1\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\versions\\python3.7.1","fileHash":"3fa8f0dcf8344b7e3d243ca50af22334616c8c3d2dc26bb235dc1c97227e8f12771ee399457fff54321b14eb2d9935e50ecaa425d8615d7e55c233f658c1f399","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv","fileHash":"fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = InterpreterLocatorProgressService, Arg 1: {}, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = WorkspaceVirtualEnvWatcherService, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = InterpreterWatcherBuilder, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv","fileHash":"fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\versions\\python3.7.1\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\versions\\python3.7.1","fileHash":"3fa8f0dcf8344b7e3d243ca50af22334616c8c3d2dc26bb235dc1c97227e8f12771ee399457fff54321b14eb2d9935e50ecaa425d8615d7e55c233f658c1f399","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 1 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) configuration.ts:124 [Violation] 'setTimeout' handler took 84ms [Violation] Forced reflow while executing JavaScript took 82ms console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\dev\github\d3r3kk\test\3840_unresolved_import (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) 2console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = LanguageServerFolderService, , Return Value: "languageServer.0.1.78" (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\dev\github\d3r3kk\test\3840_unresolved_import (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"C:\\Python\\versions\\python3.7.1\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\versions\\python3.7.1","fileHash":"3fa8f0dcf8344b7e3d243ca50af22334616c8c3d2dc26bb235dc1c97227e8f12771ee399457fff54321b14eb2d9935e50ecaa425d8615d7e55c233f658c1f399","companyDisplayName":"Python Software Foundation","type":"Unknown","cachedEntry":true}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"c:\\dev\\github\\d3r3kk\\test\\3840_unresolved_import\\.venv","fileHash":"fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d","type":"Unknown","cachedEntry":true}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) 3console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {"architecture":3,"path":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","fileHash":"74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\versions\\miniconda3_4.5.11\\envs\\3808_dup_sym","envName":"3808_dup_sym","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('3808_dup_sym': conda)"}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Executing next rule from system (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = BaseRuleService, Arg 1: UNABLE TO DETERMINE VALUE, Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 1 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = LanguageServerFolderService, , Return Value: "languageServer.0.1.78" (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\dev\github\d3r3kk\test\3840_unresolved_import\language-fundamentals\custom-package-importing.py (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 2 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by WindowsRegistryService are of count 6 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: false (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 4 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: true (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = LanguageServerManager, , Return Value: undefined (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) 3console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) 2console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is {"architecture":3,"path":"c:\\dev\\github\\d3r3kk\\test\\remote_debugging\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"c:\\dev\\github\\d3r3kk\\test\\remote_debugging\\.venv","fileHash":"104309678bf0b65e8c3754f759c4f53e9d16b337d6b7cc0cd890a0750e61db716a6feb331122f9013f398ac68879a5aa1aecfe8fb636b4b0dc4cc7a2431ce5bc","envName":".venv","type":"Venv","cachedEntry":true} (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) event.ts:73 [Violation] 'setTimeout' handler took 65ms dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:502 t @ editorScrollbar.ts:54 t.createViewParts @ viewImpl.ts:159 t @ viewImpl.ts:131 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textResourceEditor.ts:79 _tickCallback @ internal/process/next_tick.js:68 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t @ mouseHandler.ts:124 t @ pointerHandler.ts:191 e @ pointerHandler.ts:229 t @ viewImpl.ts:135 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textResourceEditor.ts:79 _tickCallback @ internal/process/next_tick.js:68 console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#4 (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 e @ suggestWidget.ts:251 e @ suggestWidget.ts:467 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 (anonymous) @ suggestController.ts:112 w._executor @ async.ts:761 (anonymous) @ async.ts:768 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 e @ listView.ts:223 e @ listWidget.ts:1095 e @ suggestWidget.ts:471 t.create @ types.ts:165 e._createInstance @ instantiationService.ts:104 e.createInstance @ instantiationService.ts:69 (anonymous) @ suggestController.ts:112 w._executor @ async.ts:761 (anonymous) @ async.ts:768 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 t @ hoverWidgets.ts:55 t @ modesContentHover.ts:208 e._createHoverWidget @ hover.ts:209 get @ hover.ts:41 e._onModelDecorationsChanged @ hover.ts:110 (anonymous) @ hover.ts:95 e.fire @ event.ts:562 (anonymous) @ codeEditorWidget.ts:1312 e.fire @ event.ts:562 t.endDeferredEmit @ textModel.ts:2931 o.deltaDecorations @ textModel.ts:1530 t.deltaDecorations @ codeEditorWidget.ts:1038 e.updateDecorations @ links.ts:278 (anonymous) @ links.ts:252 (anonymous) @ errors.ts:184 i.__generator.a.label @ errors.ts:184 s @ errors.ts:184 console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\dev\github\d3r3kk\test\3840_unresolved_import (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 addDisposableDomListener @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 Terminal.bindMouse @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:715 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:485 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\public\Terminal.js:59 (anonymous) @ terminalInstance.ts:497 c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 addDisposableDomListener @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 Terminal.bindMouse @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:736 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:485 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\public\Terminal.js:59 (anonymous) @ terminalInstance.ts:497 c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 addDisposableDomListener @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 Terminal.bindMouse @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:742 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:485 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\public\Terminal.js:59 (anonymous) @ terminalInstance.ts:497 c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 addDisposableDomListener @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\ui\Lifecycle.js:4 Terminal.bindMouse @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:748 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:485 Terminal.open @ c:\Users\dekeeler\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\vscode-xterm\lib\public\Terminal.js:59 (anonymous) @ terminalInstance.ts:497 terminalInstance.ts:907 [Violation] 'setTimeout' handler took 123ms 3console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 t @ menu.ts:183 render @ contextMenuHandler.ts:82 t.show @ contextview.ts:162 t.showContextView @ contextViewService.ts:36 e.showContextMenu @ contextMenuHandler.ts:62 t.showContextMenu @ contextMenuService.ts:48 t.onContextMenu @ explorerView.ts:374 (anonymous) @ explorerView.ts:337 (anonymous) @ event.ts:56 (anonymous) @ event.ts:56 (anonymous) @ event.ts:89 (anonymous) @ event.ts:56 (anonymous) @ event.ts:74 (anonymous) @ event.ts:56 e.fire @ event.ts:562 r @ event.ts:16 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:486 t @ scrollableElement.ts:512 t @ menu.ts:183 t.showCustomMenu @ menubar.ts:859 set @ menubar.ts:623 t.onMenuTriggered @ menubar.ts:762 (anonymous) @ menubar.ts:241 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t._setListeningToMouseWheel @ scrollableElement.ts:315 t @ scrollableElement.ts:214 t @ scrollableElement.ts:502 t @ editorScrollbar.ts:54 t.createViewParts @ viewImpl.ts:159 t @ viewImpl.ts:131 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textFileEditor.ts:138 _tickCallback @ internal/process/next_tick.js:68 dom.ts:213 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 e @ dom.ts:213 p @ dom.ts:233 t @ mouseHandler.ts:124 t @ pointerHandler.ts:191 e @ pointerHandler.ts:229 t @ viewImpl.ts:135 t._createView @ codeEditorWidget.ts:1458 t._attachModel @ codeEditorWidget.ts:1356 t.setModel @ codeEditorWidget.ts:411 (anonymous) @ textFileEditor.ts:138 _tickCallback @ internal/process/next_tick.js:68 dom.ts:266 [Violation] 'requestAnimationFrame' handler took 70ms console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\dev\github\d3r3kk\test\3840_unresolved_import (at Logger.logInformation (C:\Users\dekeeler\.vscode-insiders\extensions\vscode-python\out\client\common\logger.js:50:21)) dom.ts:266 [Violation] 'requestAnimationFrame' handler took 70ms dom.ts:266 [Violation] 'requestAnimationFrame' handler took 95ms ```


@jtyoung commented on Fri Jan 18 2019

In the meantime, I silenced these messages since they were causing actual linting issues to get lost in the noise by adding this to my settings:

"python.analysis.disabled": [
    "unresolved-import"
]

@ronbaddi004 commented on Sat Jan 19 2019

My USER SETTINGS file had this following settings

{
    // "python.jediEnabled": false,  <== Commented this line and vs code to restart the window.
    "window.zoomLevel": -1,
    "[python]": {

    },
}

this solved the issue. screenshot from 2019-01-19 14-06-58sdf


@litaxc commented on Mon Jan 21 2019

Enabling Jedi in the settings fixed my problem, thanks @ronbaddi004


@XIGUAjuice commented on Wed Jan 30 2019

Enabling Jedi in the settings fixed my problem, thanks @ronbaddi004


@kalop commented on Fri Feb 08 2019

Enabling Jedi in the settings fix the problem, but intelliCode needs Microsoft Python Analysis, and this tool is very nice


@guidomocha commented on Sun Feb 10 2019

I have same issues with imports using vscode! some times import … syntax is recognized but from … import … is not recognized. It seems there is some bugs! Microsoft Python Language Server version 0.1.78.0


@MagnusBrzenk commented on Tue Feb 12 2019

I was getting this problem because I was opening VScode in my project's root dir, but the main code was in a nested SRC dir. VSCode won't look for modules there by default. I fixed the import-resolve issues in VSCode by setting the env variable PYTHONPATH to include the path to SRC in my local .env file, and I got VSCode to recognize that setting by including "python.envFile": "${workspaceRoot}/.env" in my .vscode/settings.json file. This was a useful read.


@XIGUAjuice commented on Tue Feb 12 2019

Does that mean I should modify the settings for each project file like this? @MagnusBrzenk


@Spenhouet commented on Thu Feb 14 2019

What @MagnusBrzenk hinted at also solved it for me.

Given the following example project structure:

What I did to resolve this issue:

  1. Go into the workspace folder (here workspaceRootFolder) and create a .env file
  2. In this empty .env file add the line PYTHONPATH=codeFolder (replace codeFolder with your folder name)
  3. Add "python.envFile": "${workspaceFolder}/.env" to the settings.json
  4. Restart VS code

@marcio0 commented on Thu Feb 21 2019

@Spenhouet fix worked for me. I just don't understand why it was working fine before and suddenly stopped.


@EcurbNosneb commented on Thu Feb 21 2019

It started when I launched VS Code and got prompted "InteliCode Python support requires you to use the Microsoft Python Language Server (preview)." When I naively enabled it the problem started. When I changed Python: Jei Enabled to true, the problem went away but the prompt to use Microsoft's server came back and I clicked "Later". Note to self: ignore random Microsoft "helpful" hints unless you want to help them debug their tools rather than getting your own work done.


@simkimsia commented on Tue Feb 26 2019

@EcurbNosneb comment helped me hugely because the preview caused me other issues as well. Such as the overzealous use-before-definition warning as well which I reported

Thanks 🙏


@gui-leeahni commented on Sat Mar 02 2019

ms intellicode giving subtle hints on its side of the spicy src layout war.


@dipoots commented on Sat Mar 02 2019

What @MagnusBrzenk hinted at also solved it for me.

Given the following example project structure:

* workspaceRootFolder

  * .vscode
  * ... other folders
  * codeFolder

What I did to resolve this issue:

1. Go into the workspace folder (here _workspaceRootFolder_) and create a `.env` file

2. In this empty `.env` file add the line `PYTHONPATH=codeFolder` (replace _codeFolder_ with your folder name)

3. Add `"python.envFile": "${workspaceFolder}/.env"` to the `settings.json`

4. Restart VS code

Thanks @Spenhouet I was trying to read to you to understand more. I am sure your recommendations are clear. But I am new to VS Code and Python, and I am not so young :). How can I creat a .env file without a name. And where is ${workspaceFolder}. Is it where my virtual env is or the project folder.

Apologies for sounding silly and appreciate any help given. Thanks.

In any case, the problem went away overnight but I fear it might come back.


@dtosato commented on Tue Mar 05 2019

I have the same issue working with python virtualenv, and from what I see the problem pops up only on linux-based envs, in fact on windows everything run smoothly. I compared the same version of vscode (1.31.1) and the same python code on the two os (Windows 10/Ubuntu 18.04.2 LTS) and on linux there is no way to fix the issue properly.


@dipoots commented on Tue Mar 05 2019

I somehow managed to solve it by following an earlier post, that is, to create a .env file in the workspace (with the path to the directory) , and then update the json settings. I had to learn what is a workspace and sort of created one.

On Tue, Mar 5, 2019 at 7:01 PM Diego Tosato notifications@github.com wrote:

I have the same issue, and from what I see the problem pops up only on linux-based envs, in fact on windows everything run smoothly. I compared the same version of vscode and the same python code on the two os and on linux there is no way to fix the issue properly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscode-python/issues/3840#issuecomment-469637981, or mute the thread https://github.com/notifications/unsubscribe-auth/AtS7WhkjwDRQOAzzLETrckFHXYSAtCnzks5vTk6SgaJpZM4ZnB0n .

-- Regards, Calvin Lam


@keipaglows commented on Tue Mar 05 2019

It started when I launched VS Code and got prompted "InteliCode Python support requires you to use the Microsoft Python Language Server (preview)." When I naively enabled it the problem started. When I changed Python: Jei Enabled to true, the problem went away but the prompt to use Microsoft's server came back and I clicked "Later". Note to self: ignore random Microsoft "helpful" hints unless you want to help them debug their tools rather than getting your own work done.

That did indeed fixed the issue. I avoided this "helpful" hint for few days, but ultimately accepted it, and the next day imports became unresolved and not clickable. The worst thing is I totally forgot about that message, and that it might have broke imports. Thanks!


@altimmons commented on Tue Mar 26 2019

I have been trying forever to solve this. Disabling pyright instantly solved the problem. (ms-pyright.pyright)


@DonJayamanne commented on Thu Mar 28 2019

Hi everyone this should be fixed in the latest version of the extension when using the language server


@DonJayamanne commented on Thu Mar 28 2019

Closing as the upstream issue had been closed


@hologerry commented on Thu Mar 28 2019

The problem is still there!

Screen Shot 2019-03-29 at 13 11 15 Screen Shot 2019-03-29 at 13 11 22
DonJayamanne commented 5 years ago

Ooops

dmayo77 commented 5 years ago

I'm still seeing the issue in Visual Studio Code Version 1.33.0 with Python 2.7.14 (which is what I have to use in my venv)

DonJayamanne commented 5 years ago

Please could you create another issue with the relevant details.

dmayo77 commented 5 years ago

https://github.com/Microsoft/python-language-server/issues/918

dmayo77 commented 5 years ago

Added details on how to reproduce in https://github.com/Microsoft/python-language-server/issues/918

PawelGorkowski commented 5 years ago

Still getting this error on:

Version: 1.34.0 (user setup) OS: Windows_NT x64 6.1.7601 Python 3.7.3

nazariydolfin commented 5 years ago

I get this error sometimes as well. I am on a Mac, mojave 10.14.5, Python 3.7.3, VSCode - 1.35.1

Threynaud commented 5 years ago

I get the same error. Enabling Jedi as IntelliSense engine fixes the issue but I can't use IntelliCode anymore since it requires the language server..

jakebailey commented 5 years ago

This is a really generic message that can be caused by many, many things. Please file an issue with your setup to be looked at. Be sure to look at the troubleshooting section on unresolved imports as well: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings

Threynaud commented 5 years ago

@jakebailey Thank you for your response. I also get an unresolved imports when I'm loading pip installed package like so:

import bokeh
from bokeh.plotting import figure, show
from bokeh.io import output_notebook

Here the three imports are unresolved even if the code runs correctly. What can I do to fix this? I can't find documentation about this issue.

jakebailey commented 5 years ago

Do you have the correct interpreter selected in the extension? A screenshot of what/where the warning is is helpful.

Again, please file a new issue. This issue is closed and is unrelated.

jakebailey commented 5 years ago

Fixes what? The language server produces this message, so disabling it is going to hide the message, yes. Please, if you have this issue still, file an issue so we can look into it.

pocca2048 commented 5 years ago

I got this message when I used it with Remote - ssh and import libraries such as numpy

siran commented 5 years ago

Fixes what? The language server produces this message, so disabling it is going to hide the message, yes. Please, if you have this issue still, file an issue so we can look into it.

Fixes the annoying fact that the import is not resolved although debugging works. Yet the issue is obviously there for anyone that want to see it (disabling Jedi)

jakebailey commented 5 years ago

Debugging and analysis are two distinct things; debugging is at runtime, analysis runs statically without executing the code.

If you have import issues, we'd appreciate it if you could make a new issue with your setup, and consider: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings

sleighsoft commented 5 years ago

I get the following with Python 3.7.3 and language server grafik

time is a standard python function. Why is it marked as unresolved ?

Version: 1.38.0 (user setup) Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35 Date: 2019-09-03T21:49:13.459Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.18362

Name: Python Id: ms-python.python Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more. Version: 2019.9.34911 Publisher: Microsoft

jakebailey commented 5 years ago

That is #1156, which should be fixed in 0.3.71+. You can try out the beta channel:

"python.analysis.downloadChannel": "beta"
sleighsoft commented 5 years ago

Thank you @jakebailey :)

ghost commented 4 years ago

Deleting those folders did nothing to help with this problem for me.

HozcarAndres commented 4 years ago

Hi, recently we had the problem and resolved it adding this line to setting.json

"python.autoComplete.extraPaths": [ "c:\Users\HozcarAndresLopezRam\.conda\envs\aw3\python.exe" ]

this is the complete file

{ "python.pythonPath": "c:\Users\HozcarAndresLopezRam\.conda\envs\aw3\python.exe", "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.autoComplete.extraPaths": [ "c:\Users\HozcarAndresLopezRam\.conda\envs\aw3\python.exe" ] }

lorenzznerol commented 4 years ago

@HozcarAndres yes, and for any packages that are in other folders. In my case, I found out about that with error: unresolved import 'pydotplus' Python (unresolved-import) where pydotplus was in site-packages.

You can either add this extra path

    //"python.pythonPath": "C:/Users/Admin/Anaconda3/python.exe",
    "python.autoComplete.extraPaths": [
        "C:/Users/Admin/Anaconda3/Lib/site-packages/",
        ... (you can add many paths here in this String array)
        ]

with the pythonPath not needed because it is the known default.

or just take the recursion on the main folder:

{
    [many settings...],
    [last line],
    "python.pythonPath": "C:/Users/Admin/Anaconda3/**"
}

Also addressed in https://stackoverflow.com/questions/57843117/visual-studio-code-unresolved-import/61922669#61922669

alfonsovgs commented 4 years ago

if you are using a virtual env you should to move to workspace configuration and use:

"python.autoComplete.extraPaths": [ "venv\\Lib\\site-packages" ]

all configuration:

{ "python.pythonPath": "venv\\Scripts\\python.exe", "python.autoComplete.extraPaths": [ "venv\\Lib\\site-packages" ] }

alan23273850 commented 4 years ago

Hi everyone! I've found that "python.autoComplete.extraPaths": [ "./**" ] is a very simple solution since the double stars means any sub-folder in Linux!

jakebailey commented 4 years ago

./** means "match every file below . recursively". It does not match just subfolders, and extraPaths does not accept globs anyway so I don't think that will work with the LS (as we treat extraPaths as a list of paths, not patterns).

alan23273850 commented 4 years ago

@jakebailey But it works on my machine! Did you try it first?

jakebailey commented 4 years ago

Without knowing what problem it solves, no. I just know that we do no globbing, so this solution shouldn't be able to work.

This issue is a year old and not a bucket issue for "imports unresolved". We much prefer new issues to track than to comment on old issues that may not be the same problem.

lorenzznerol commented 4 years ago

@jakebailey The issue is old, the solution is not. The solutions here have popped up in the last month only. I guess that @alan23273850 is right. And if he is not, glob is definitely accepted in "python.pythonPath": "C:/Users/Admin/Anaconda3/**" so it might work there instead with the same approach. Your comment does not help in this ongoing issue.

alan23273850 commented 4 years ago

@lorenzznerol Thanks!

myialine commented 4 years ago

I did as @alfonsovgs suggested and it wasn't enough, I was still getting the Python extension complaining about it. What solved the problem was adding another path to the "python.autoComplete.extraPaths" for my project folder as in https://github.com/microsoft/python-language-server/issues/1085#issuecomment-492919382.

image

lorenzznerol commented 4 years ago

@myialine You mean you had to have more than one path put in the python.autoComplete.extraPaths to make it run? And thus you added a dummy path “./appsample” here?

alfonsovgs commented 4 years ago

I did as @alfonsovgs suggested and it wasn't enough, I was still getting the Python extension complaining about it. What solved the problem was adding another path to the "python.autoComplete.extraPaths" for my project folder as in https://github.com/microsoft/python-language-server/issues/1085#issuecomment-492919382.

image

Hi @myialine other change is restart visual studio code. After that the Intellisese will work fine.

myialine commented 4 years ago

@myialine You mean you had to have more than one path put in the python.autoComplete.extraPaths to make it run? And thus you added a dummy path “./appsample” here?

Yes, this is what I did.

I did as @alfonsovgs suggested and it wasn't enough, I was still getting the Python extension complaining about it. What solved the problem was adding another path to the "python.autoComplete.extraPaths" for my project folder as in #1085 (comment). image

Hi @myialine other change is restart visual studio code. After that the Intellisese will work fine.

Restarting did not solve the issue for me :/

alfonsovgs commented 4 years ago

@myialine Are you using virtualenv?

In my case my virtualenv folder is called venv

myialine commented 4 years ago

@myialine Are you using virtualenv?

In my case my virtualenv folder is called venv

Yes and it worked for most imports when I added the site-packages to the extraPaths, but not for all of them. Hence the project path in the list

Jahir790 commented 3 years ago

Para el problema del import en python a mi lo que me generaba el problema era la extensión Pylance. Lo que hice para solucionarlo: En el settings.json buscar y deshabilitar la línea que dice “python.languageServer”: ‘Pylance’" y listo, espero les funcione.

Nota: Para los novatos como yo en VSCODE, para abrir el settings.json, ingresan a la paleta de comandos Ctrl+Shift+P y buscan Open Settings (JSON)

lcontini commented 3 years ago

Hi everyone! I've found that "python.autoComplete.extraPaths": [ "./**" ] is a very simple solution since the double stars means any sub-folder in Linux!

@alan23273850 though this looks more like a workaround than a solution to me, it DID solved the issue. Thanks for the help.