I am using the following setup
- macOS v10.14 (Mojave)
- Python 3.7.1
- Visual Studio Code 1.30
- Pylint 2.2.2
- Django 2.1.4
I want to use linting to make my life a bit easier in Visual Studio Code. However, for every import I have states «unresolved import». Even on default Django imports (i.e. from django.db import models).
I presume it is because it is not seeing the virtual environment Python files.
Everything works just fine, but it’s starting to get annoying.
The interpreter choices I have are all system versions of Python. It does not seem to see my virtual environment Python at all (it is not in the same directory as my workspace, so that part makes sense).
If I set up the python.PythonPath in the settings.json file, it just ignores it and does not list my virtual environment path as an option. I also tried setting it up in my global Python settings, but it also does not show up.
Is there a quick fix to get it working?
asked Dec 27, 2018 at 4:27
6
The accepted answer won’t fix the error when importing own modules.
Use the following setting in your workspace settings .vscode/settings.json
:
"python.autoComplete.extraPaths": ["./path-to-your-code"],
Reference: Troubleshooting, Unresolved import warnings
answered Aug 27, 2019 at 7:32
Shinebayar GShinebayar G
4,4844 gold badges18 silver badges28 bronze badges
15
In your workspace settings, you can set your Python path like this:
{
"python.defaultInterpreterPath": "/path/to/your/venv/bin/python",
}
bragboy
34.7k30 gold badges113 silver badges171 bronze badges
answered Dec 27, 2018 at 6:21
ruddraruddra
50.2k7 gold badges76 silver badges100 bronze badges
12
Alternative way: use the command interface!
Cmd/Ctrl + Shift + P → Python: Select Interpreter → choose the one with the packages you look for:
answered Jun 5, 2019 at 16:47
tedted
13.2k9 gold badges61 silver badges107 bronze badges
8
This issue has already been opened on GitHub:
Python unresolved import issue #3840
There are two very useful answers, by MagnuesBrzenk and SpenHouet.
The best solution for now is to create a .env file in your project root folder. Then add a PYTHONPATH to it like this:
PYTHONPATH=YOUR/MODULES/PATH
And in your settings.json add:
"python.envFile": ".env"
answered Mar 12, 2019 at 20:27
Tomasz ChudzikTomasz Chudzik
1,8171 gold badge14 silver badges20 bronze badges
6
answered May 27, 2019 at 11:13
Ali HesariAli Hesari
1,8034 gold badges25 silver badges50 bronze badges
2
None of the solutions worked except this one. Replacing «Pylance» or «Microsoft» in the settings.json solved mine.
"python.languageServer": "Jedi"
answered Aug 21, 2020 at 13:18
hexrhexr
4415 silver badges6 bronze badges
1
You need to select the interpreter associated with the virtual environment.
Click here (at the bottom status bar):
And just select the virtual environment you are working with. Done.
Sometimes, even with the interpreter selected, it won’t work. Just repeat the process again and it should solve it.
answered May 6, 2020 at 12:11
Evandro PomattiEvandro Pomatti
12.8k15 gold badges94 silver badges159 bronze badges
3
If you have this code in your settings.json
file, delete it:
{
"python.jediEnabled": false
}
answered Mar 11, 2019 at 12:04
spssps
2292 silver badges3 bronze badges
4
If you are more visual like myself, you can use the Visual Studio Code configurations in menu File → Preferences → Settings (Ctrl + ,). Go to Extensions → Python.
In the section Analysis: Disabled, add the suppression of the following message: unresolved-import
:
answered Mar 9, 2020 at 5:40
DavidDavid
3213 silver badges4 bronze badges
2
I wonder how many solutions this problem have (or have not), I tried most of the above, nothing worked, the only solution that worked is to set the python language server to Jedi, instead of Microsoft in the settings.json file:
"python.languageServer": "Jedi"
answered Jul 22, 2020 at 16:23
Georges DGeorges D
3513 silver badges11 bronze badges
None of the previous answers worked for me. Adding both of the lines below to my settings.json file did, however.
"python.analysis.disabled": [
"unresolved-import"
],
"python.linting.pylintArgs": ["--load-plugin","pylint_protobuf"]
The first line really just hides the linting error. Certainly not a permanent solution, but de-clutters the screen.
This answer gave me the second line: VS Code PyLint Error E0602 (undefined variable) with ProtoBuf compiled Python Structure
Maybe someone who understands Python more than me can explain that one more.
answered Aug 30, 2019 at 20:02
1
Okay, so 2 years down the line, I have ran into this annoying problem. All I can seen here are some really complicated workarounds. Here are easy to follow steps for anyone else who might just run into this later on:
- at the bottom of VS Code where you see the Python version listed, just click there
- Select Interpreter windows is going to appear
- click on the first option that says «Select Interpreter Path» and navigate to the folder path which has your Virtual Environment
That’s all you need to do and avoid tampering with those settings in VS Code which might get very complicated if not handled with caution.
CaptainBli
4,0914 gold badges39 silver badges58 bronze badges
answered Aug 21, 2021 at 15:12
Surveyor JrSurveyor Jr
3362 silver badges11 bronze badges
4
My solution
This solution is only for the current project.
-
In the project root, create folder
.vscode
-
Then create the file
.vscode/settings.json
-
In the file
setting.json
, add the line (this is for Python 3){ "python.pythonPath": "/usr/local/bin/python3", }
-
This is the example for Python 2
{ "python.pythonPath": "/usr/local/bin/python", }
-
If you don’t know where your Python installation is located, just run the command
which python
orwhich python3
on the terminal. It will print the Python location. -
This example works for dockerized Python — Django.
answered Sep 22, 2019 at 15:30
RollyRolly
3,1753 gold badges26 silver badges34 bronze badges
0
I was facing the same problem while importing the project-related(non standard) modules.
Detailed explanation of the problem
Directory structure:
Project_dir:
.vscode/settings.json
dir_1
> a
> b
> c
dir_2
> x
> y
> z
What we want:
Project_dir
dir_3
import a
import y
Here «import a» and «import y» fails with following error:
Import "dir_1.a" could not be resolvedPylancereportMissingImports
Import "dir_2.y" could not be resolvedPylancereportMissingImports
What worked for me:
Appending the top directory which contains the modules to be imported.
In above example add the follwoing «Code to append» in «.vscode/settings.json»
Filename:
.vscode/settings.json
Code to append:
"python.analysis.extraPaths": [dir_1, dir_2]
answered Jan 13, 2021 at 3:39
TheLearnerTheLearner
4391 gold badge7 silver badges10 bronze badges
2
The solution from Shinebayar G worked, but this other one is a little bit more elegant:
Copied from Python unresolved import issue #3840:
Given the following example project structure:
- workspaceRootFolder
- .vscode
- … other folders
- codeFolder
What I did to resolve this issue:
- Go into the workspace folder (here workspaceRootFolder) and create a .env file
- In this empty .env file, add the line PYTHONPATH=codeFolder (replace codeFolder with your folder name)
- Add «python.envFile»: «${workspaceFolder}/.env» to the settings.json
- Restart Visual Studio Code
answered Sep 28, 2019 at 9:13
LincolnLincoln
87014 silver badges24 bronze badges
0
To me the problem was related with the project that I was working on. It took me a while to figure it out, so I hope this helps:
Original folder structure:
root/
__init__.py # Empty
folder/
__init__.py # Empty
sub_folder_b/
my_code.py
sub_folder_c/
another_code.py
In another_code.py:
from folder.sub_folder_b import my_code.py
This didn’t trigger the intellisense in Visual Studio Code, but it did execute OK.
On the other hand, adding «root» on the import path, did make the intellisense work, but raised ModuleNotFoundError when executing:
from root.folder.sub_folder_b import my_code.py
The solution was to remove the _init_.py file inside the «folder» directory, leaving only the _init_.py located at /root
.
answered Apr 6, 2020 at 19:49
NicoENicoE
4,2733 gold badges18 silver badges33 bronze badges
This works for me:
Open the command palette (Ctrl + Shift + P) and choose «Python: Select Interpreter».
Doing this, you set the Python interpreter in Visual Studio Code.
answered Sep 20, 2019 at 12:50
2
None of the answers here solved this error for me. Code would run, but I could not jump directly to function definitions. It was only for certain local packages. For one thing, python.jediEnabled
is no longer a valid option. I did two things, but I am not sure the first was necessary:
- Download Pylance extension, change
python.languageServer
to «Pylance» - Add
"python.analysis.extraPaths": [ "path_to/src_file" ]
Apparently the root and src
will be checked for local packages, but others must be added here.
answered Jan 22, 2021 at 22:30
chuck_dchuck_d
1211 silver badge3 bronze badges
2
I am using the following setup: (in Apr 2021)
- macos big sur
- vscode
- Anaconda 3 (for environment)
And I faced this error during starting of the Django.
So, I follow these steps and this error is resolved.
Steps are given in these screenshots:
-
Open settings (workspace)
-
Follow this screenshot to open Python Path
-
Now, click
Edit in settings.json
-
Make path like given in this screenshot
/opt/anaconda3/bin/python
5. Now, save this settings.json file.
6. Restart the vscode
Also, intellisense might not work for some time hold on wait for some time and then restart again then vscode reads file for new path.
David Buck
3,71335 gold badges31 silver badges35 bronze badges
answered Apr 18, 2021 at 13:14
Mayur GuptaMayur Gupta
3032 silver badges14 bronze badges
That happens because Visual Studio Code considers your current folder as the main folder, instead of considering the actual main folder.
The quick way to fix is it provide the interpreter path to the main folder.
Press Command + Shift + P (or Ctrl + Shift + P on most other systems).
Type Python interpreter
Select the path where you installed Python in from the options available.
answered Jun 21, 2020 at 16:50
Changing
Python:Language Server
to ‘Jedi’ worked for me.
It was ‘Windows’ initially.
answered Sep 8, 2020 at 18:43
For me, it worked, if I setup the paths for python, pylint and autopep8 to the local environment paths.
For your workspace add/change this:
"python.pythonPath": "...\your_path\.venv\Scripts\python.exe",
"python.linting.pylintPath": "...\your_path\.venv\Scripts\pylint.exe",
"python.formatting.autopep8Path": "...\your_path\.venv\Scripts\autopep8.exe",
Save and restart VS Code with workspace.
Done!
fcdt
2,3315 gold badges12 silver badges26 bronze badges
answered Oct 11, 2020 at 11:56
1
I have a different solution: my Visual Studio Code instance had picked up the virtualenv stored in .venv
, but it was using the wrong Python binary. It was using .venv/bin/python3.7
; using the switcher in the blue status bar.
I changed it to use .venv/bin/python
and all of my imports were resolved correctly.
I don’t know what Visual Studio Code is doing behind the scenes when I do this, nor do I understand why this was causing my problem, but for me this was a slightly simpler solution than editing my workspace settings.
answered Apr 28, 2019 at 8:34
DawngerponyDawngerpony
3,1992 gold badges34 silver badges31 bronze badges
In case of a Pylint error, install the following
pipenv install pylint-django
Then create a file, .pylintrc, in the root folder and write the following
load-plugins=pylint-django
answered Sep 9, 2019 at 9:47
I have faced this problem in three ways. Although for each of them a solution is available in the answers to this question, I just thought to put it all together.
-
First I got an «Unresolved Import» while importing some modules and I noticed that my installations were happening in global pip instead of the virtual environment.
This issue was because of the Python interpreter. You need to select the interpreter in Visual Studio Code using Shift + Ctrl + P and then type
Select Python Interpreter
. Select your venv interpreter here. -
The second issue was: The above change did not resolve my issue completely. This time it was because of file settings.json. If you don’t have the settings.json file in your project directory, create one and add the following line in that:
{ "python.pythonPath": "apis/bin/python" }
This will basically tell Visual Studio Code to use the Python interpreter that is in your venv.
-
The third issue was while importing a custom Python module or file in another program. For this you need to understand the folder structure. As Python in venv is inside bin, you’ll need to specify the folder of your module (most of the time the application folder). In my case it was
app
,from app.models import setup_db
Verbally, import setup_db from models.py resides in the app folder.
answered Jun 28, 2020 at 8:46
If you are using pipenv
then you need to specify the path to your virtual environment.in settings.json
file.
For example :
{
"python.pythonPath":
"/Users/username/.local/share/virtualenvs/Your-Virual-Env/bin/python"
}
This can help.
answered Jul 31, 2020 at 11:54
DeveshDevesh
92912 silver badges10 bronze badges
If someone happens to be as moronic as me, the following worked.
Old folder structure:
awesome_code.py
__init__.py
src/
__init__.py
stuff1.py
stuff2.py
New structure:
awesome_code.py
src/
__init__.py
stuff1.py
stuff2.py
answered Sep 14, 2020 at 13:49
AstridAstrid
1,8284 gold badges26 silver badges48 bronze badges
How to avoid warning
Please note that this is just skipping the warning not resolving it.
First of all open visual studio code settings in json and add following arguments after "[python]":{}
"python.linting.pylintArgs": ["--rep[![enter image description here][1]][1]orts", "12", "--disable", "I0011"], "python.linting.flake8Args": ["--ignore=E24,W504", "--verbose"] "python.linting.pydocstyleArgs": ["--ignore=D400", "--ignore=D4"]
This has helped me to avoid pylint warnings in VSCode.
answered Dec 6, 2020 at 10:16
2
I have resolved import error by Ctrl + Shift + P.
Type «Preferences settings» and select the option Preferences Open Settings (JSON)
And add the line "python.pythonPath": "/usr/bin/"
So the JSON content should look like:
{
"python.pythonPath": "/usr/bin/"
}
Keep other configuration lines if they are present.
This should import all modules that you have installed using PIP for autocomplete.
answered Sep 25, 2019 at 19:05
AshishAshish
1,2791 gold badge11 silver badges17 bronze badges
@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:
- VS Code (1.30.2-user), with the Python extension (2018.12.1), running the latest Microsoft Python Language Server (0.1.72.0).
- 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
- Unzip this archive:
- 3840_unresolved_import.zip
- Open a Powershell window and navigate to wherever you unzipped the archive to.
- 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
- See that the code works for Python 3.7
python .language-fundamentalscustom-package-importing.py
- Open VS Code for the workspace.
code .
- Observe the errors as reported above.
Logging output (from run on VS Code Insiders with latest developer build + latest LS)
Problems Window
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:devgithubd3r3kktest3840_unresolved_import.venvScriptspython.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:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code InsidersresourcesappoutvsworkbenchnodeextensionHostProcess.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:Usersdekeeler.vscode-insidersextensionsms-azure-devops.azure-pipelines-1.147.1outlogger.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:Usersdekeeler.vscode-insidersextensionsms-azure-devops.azure-pipelines-1.147.1outlogger.js:15:13))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *python.exe (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern **python.exe (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = WorkspaceVirtualEnvWatcherService, Arg 1: Uri:c:devgithubd3r3kktest3840_unresolved_import, Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = InterpreterWatcherBuilder, Arg 1: Uri:c:devgithubd3r3kktest3840_unresolved_import, Return Value: (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3 and args failed (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python2 and args failed (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python and args failed (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»envName»:»3808_dup_sym»,»cachedEntry»:true,»displayName»:»Python 3.7.2 64-bit (‘3808_dup_sym’: conda)»} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {«architecture»:3,»path»:»c:devgithubd3r3kktest3840_unresolved_import.venvScriptspython.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»c:devgithubd3r3kktest3840_unresolved_import.venv»,»fileHash»:»26e4b92839ac0743f87d897fe12ff89cc1d6688fe122c0e31c9caca6752084fd840ea09a722cb36f8a809502636681e09f71f9d12500a2f6717530d9d25eb2d3″,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {«architecture»:3,»path»:»C:Pythonversionspython3.7.1python.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»C:Pythonversionspython3.7.1″,»fileHash»:»edba0164a0155e8310ae37367fd10ee27d04c93e8d06d3292036b0787e666ca9f97aa0ff0e858fce2c3f942308797fd2235fbaca3e3b23f727b8640711833832″,»companyDisplayName»:»Python Software Foundation»,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»envName»:»3808_dup_sym»,»cachedEntry»:true,»displayName»:»Python 3.7.2 64-bit (‘3808_dup_sym’: conda)»} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 0 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {«architecture»:3,»path»:»C:Pythonversionspython3.7.1python.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»C:Pythonversionspython3.7.1″,»fileHash»:»3fa8f0dcf8344b7e3d243ca50af22334616c8c3d2dc26bb235dc1c97227e8f12771ee399457fff54321b14eb2d9935e50ecaa425d8615d7e55c233f658c1f399″,»companyDisplayName»:»Python Software Foundation»,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {«architecture»:3,»path»:»c:devgithubd3r3kktest3840_unresolved_import.venvScriptspython.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»c:devgithubd3r3kktest3840_unresolved_import.venv»,»fileHash»:»fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d»,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *python.exe (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern **python.exe (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = InterpreterLocatorProgressService, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»envName»:»3808_dup_sym»,»cachedEntry»:true,»displayName»:»Python 3.7.2 64-bit (‘3808_dup_sym’: conda)»} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {«architecture»:3,»path»:»c:devgithubd3r3kktest3840_unresolved_import.venvScriptspython.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»c:devgithubd3r3kktest3840_unresolved_import.venv»,»fileHash»:»fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d»,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {«architecture»:3,»path»:»C:Pythonversionspython3.7.1python.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»C:Pythonversionspython3.7.1″,»fileHash»:»3fa8f0dcf8344b7e3d243ca50af22334616c8c3d2dc26bb235dc1c97227e8f12771ee399457fff54321b14eb2d9935e50ecaa425d8615d7e55c233f658c1f399″,»companyDisplayName»:»Python Software Foundation»,»type»:»Unknown»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»envName»:»3808_dup_sym»,»cachedEntry»:true,»displayName»:»Python 3.7.2 64-bit (‘3808_dup_sym’: conda)»} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 1 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»envName»:»3808_dup_sym»,»cachedEntry»:true,»displayName»:»Python 3.7.2 64-bit (‘3808_dup_sym’: conda)»} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:devgithubd3r3kktest3840_unresolved_import (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:devgithubd3r3kktest3840_unresolved_import (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {«architecture»:3,»path»:»C:Pythonversionspython3.7.1python.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»C:Pythonversionspython3.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {«architecture»:3,»path»:»c:devgithubd3r3kktest3840_unresolved_import.venvScriptspython.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»c:devgithubd3r3kktest3840_unresolved_import.venv»,»fileHash»:»fc8b0c88617847dacdd181fd27747bfd4f8c4002de899b0271223b8107499b77b50fdbd98fe0c18417b126423071e2ae9ab683a296504e30df4cb619e9f0c04d»,»type»:»Unknown»,»cachedEntry»:true}, Arg 2: UNABLE TO DETERMINE VALUE, Return Value: false (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = BaseRuleService, Arg 1: {«architecture»:3,»path»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sympython.exe»,»version»:{«raw»:»3.7.2-final»,»major»:3,»minor»:7,»patch»:2,»prerelease»:[«final»],»build»:[],»version»:»3.7.2-final»},»sysPrefix»:»C:Pythonversionsminiconda3_4.5.11envs3808_dup_sym»,»fileHash»:»74f4d0d2e83bddf9fe77f37f8ea91acb0c0b3a6a96d4dd358f7970183d4458f8b46d19d3baba2d9ae633a3170c2917d7aa4dc58a43d3fb99bbc65782d3c2400d»,»companyDisplayName»:»Anaconda, Inc.»,»type»:»Conda»,»envPath»:»C:Pythonversionsminiconda3_4.5.11envs3808_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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Executing next rule from system (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 1 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:devgithubd3r3kktest3840_unresolved_importlanguage-fundamentalscustom-package-importing.py (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 2 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WindowsRegistryService are of count 6 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 4 (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = InterpreterLocatorProgressStatubarHandler, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = LanguageServerManager, , Return Value: undefined (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
3console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
2console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is {«architecture»:3,»path»:»c:devgithubd3r3kktestremote_debugging.venvScriptspython.exe»,»version»:{«raw»:»3.7.1-final»,»major»:3,»minor»:7,»patch»:1,»prerelease»:[«final»],»build»:[],»version»:»3.7.1-final»},»sysPrefix»:»c:devgithubd3r3kktestremote_debugging.venv»,»fileHash»:»104309678bf0b65e8c3754f759c4f53e9d16b337d6b7cc0cd890a0750e61db716a6feb331122f9013f398ac68879a5aa1aecfe8fb636b4b0dc4cc7a2431ce5bc»,»envName»:».venv»,»type»:»Venv»,»cachedEntry»:true} (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:devgithubd3r3kktest3840_unresolved_import (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.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:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.js:4
Terminal.bindMouse @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:715
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:485
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibpublicTerminal.js:59
(anonymous) @ terminalInstance.ts:497
c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.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:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.js:4
Terminal.bindMouse @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:736
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:485
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibpublicTerminal.js:59
(anonymous) @ terminalInstance.ts:497
c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.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:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.js:4
Terminal.bindMouse @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:742
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:485
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibpublicTerminal.js:59
(anonymous) @ terminalInstance.ts:497
c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.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:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibuiLifecycle.js:4
Terminal.bindMouse @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:748
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibTerminal.js:485
Terminal.open @ c:UsersdekeelerAppDataLocalProgramsMicrosoft VS Code Insidersresourcesappnode_modules.asarvscode-xtermlibpublicTerminal.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:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.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:devgithubd3r3kktest3840_unresolved_import (at Logger.logInformation (C:Usersdekeeler.vscode-insidersextensionsvscode-pythonoutclientcommonlogger.js:50:21))
dom.ts:266 [Violation] ‘requestAnimationFrame’ handler took 70ms
dom.ts:266 [Violation] ‘requestAnimationFrame’ handler took 95ms
When using Visual Studio Code as a Python editor,you might encounter the “Unresolved import error” yet the code functions properly and the import is legit.
Here are some solutions that worked for me.
1.Set «python.jediEnabled` is `True` in the settings
- Go to command pallet by pressing CTRL+SHIFT+P
- Type: Configure Language Specific
- Select Python and wait for the settings.json file to open
- Search for “python.jediEnabled“
- Change its value from False to True or comment it by adding a “#” at the start of that line
- Restart VS Code for the changes to take place.
NB:- Jedi is an awesome autocompletion, static analysis and refactoring library for python.Read more here: http://jedi.readthedocs.io
2.Set the Python environment or interpreter for your project
Always check the bottom left panel of VS Code to see what interpreter has been chosen for your project
Python is a computer programming language that is easy to learn and use. It is one of the most popular programming languages out there. In this digital age, where everyone is looking for ways to automate their business, Python is on the rise.
One of the many Python error that confuses beginners is Unresolved Import, which happens when the system cannot detect the Python module. In this article, we will show you a few ways to fix Unresolved Import in VSCode and avoid encountering it in the future.
Also check out: How to install Pyenv in Ubuntu
“Unresolved Import” is an error message produced by VSCode, not Python itself. The message simply means that VSCode cannot detect the correct path for a Python module. The cause of “Unresolved Import” could be one of the following reason:
- VSCode is using the wrong Python path. This is often the case if you’re running your code against a virtual environment. Each environment contains its own binary path that contains different set of package binaries, so a package in one specific virtual environment cannot be found by another and vice versa.
- There might be a missing
.env
file at the root directory of your project that contains additional information about which directory to import modules from. Maybe you were opening VScode in the project’s root directory, however, your module lies in a nested sub directory (usually thesrc
directory). By default, VSCode won’t look for modules in any other directory except it was added to PYTHONPATH environment variable, which can be set at runtime by placing an additional.env
file at the root directory. However, this file is often ignored when people push their projects to public Github repository, as it may contain sensitive information.
Set the correct Python path in VSCode
In order to fix Unresolved Import in VSCode, you have to set python.pythonPath
key in the settings to the correct value. You can quickly open the settings.json
editor by accessing File > Preferences or press Ctrl + , key combination. Alternatively, open Command Palette and find Open Settings (JSON) to open settings.json
. In your workspace settings, you can set your Python path like the following.
{
"python.pythonPath": "/path/to/your/virtualenvironment/bin/python",
}
Code language: JSON / JSON with Comments (json)
Remember to replace /path/to/your/virtualenvironment/bin/python
with the correct value. If you’re in a virtual terminal window, you can run which python
to quickly get the path of the current Python interpreter. Once you’re done, reload VSCode, and the error message will go away.
In recent versions of VSCode, there is an alternative way to quickly set the pythonPath
variable using the command interface.
Press Ctrl + Shift + P keyboard combination, then select Python: Select Interpreter, choose the proper one with the packages you need installed, and the problem will be fixed.
Using .env file
You can also create a .env
file in your project root folder to quickly add the proper path to PYTHONPATH environment variable at runtime. Given the example project structure below:
- my_project
- .vscode
- … other folders
- my_code
What you need to do to fix “Unresolved Import” is following these steps
- Create an
.env
file in the workspace folder (here my_project) - In this newly-created, empty
.env
file, add the linePYTHONPATH=/path/to/module
(replace /path/to/module with the actual module you’re trying to import). In this case, we have to replace/path/to/module
withmy_code
to make Python import module frommy_code
- Then, to make sure that VSCode recognizes the
.env
file, place an additional"python.envFile": "${my_project}/.env"
line to thesettings.json
, similar to how we did in the previous section of this article. - Restart VSCode and verify that the “Unresolved Import” now disappeared.
We hope that the information above is useful to you. If you’re interested in more advanced editing features of VSCode, check out our post on how to enable/disable word wrap in VSCode, How to use LaTeX in VSCode or how to automatically indent your code in Visual Studio Code.
To fix the unresolved import error, set your Python path in your workspace settings. If you work with Visual Studio Code and import any library, you will face this error: “unresolved import”.
{
"python.pythonPath": "/path/to/your/venv/bin/python",
}
Then reload the VSCode, and it will fix that error.
For the Python-specific imports, it resolves the unresolved import issue, but it won’t resolve your modules. When importing your modules, it will return the same error, and to resolve this error, use the following setting in your workspace settings .vscode/settings.json.
"python.autoComplete.extraPaths": ["./path-to-your-code"],
When importing your python modules, which are in the workspace folder, but the main script is not in the root directory of the workspace folder, the imports are unresolved.
There is an alternative way that you can use the command interface.
Type the Cmd / Ctrl + Shift + P → Python: Select Interpreter → choose the one with the packages you are looking for, and that is it.
Using .env file
You can also create a .env file in your project root folder. Then add a PYTHONPATH to it like the following code.
PYTHONPATH = path/to/your/code
And in your settings.json file, add the following code.
Then reload the VSCode, and it will fix that error.
Related posts
Python cannot import name
How to Fix No Such File Or Directory error
How to Fix ValueError: math domain error