Closed Kuo-Chun-Ting closed 1 year ago
hmm. very strange.
What happens when you open a new folder and add a new file? Same behaviour?
I recommend you switch your diagnosticMode to openFilesOnly for better performance.
"python.analysis.diagnosticMode": "openFilesOnly"
@bschnurr I have tried several folders. Same behavior. Any idea?
It might be that the pylance extension didn't install correctly. If you open 'Help | Toggle Developer Tools', there might be errors or warnings on the console tab.
@rchiodo Thanks for the recommendation. After uninstalling the Python extension and opening the Toggle Developer Tools, I see the following errors The text content is below if you need to copy them.
WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.remote-repositories' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
workbench.desktop.main.js:620 INFO [perf] Render performance baseline is 35ms
index.html:262 Found unexpected service worker controller. Found: undefined. Expected: service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=
2DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/704ed70d4fd1c6bd6342c436f1ede30d1cff4710/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout
Are they the root cause?
@rchiodo @bschnurr Additionally, I'm not sure if this information works for you which is below
When I only install the Python extension(auto including Pylance), I can't see the "Go To Definition" item after right-clicking, So in this case, nothing will happen either by pressing F12 or selecting the "Go To Definition" in the "Go" menu above.
After I install the Python Extension Pack, I can see the "Go To Definition" after right-clicking but the function not working. I will always see "No Definition Found" either by pressing F12 or selecting the "Go To Definition" in the "Go" menu above.
FYI
The console errors don't indicate any problems. It just seems like Pylance is disabled. You don't get it in the output tab and a simple goto definition doesn't work.
The other thing to check is to look at the list of processes running. Looks like you're on a mac, so this might help: https://apple.stackexchange.com/questions/220127/how-to-show-all-running-processes-on-macos-os-x
One of the processes should be something like so: (this is on my machine, a windows machine):
VS code should be running the pylance server.bundle.js file somewhere. If it isn't, then something must be disabling it or it doesn't exist for some reason on disk.
You might also check the install location for the pylance extension. https://code.visualstudio.com/docs/editor/extension-marketplace#_where-are-extensions-installed
On my machine the folder with pylance has a 'dist' folder that contains the following:
@rchiodo
LillarduoMBP329:~ lillard$ ps aux | grep Code
lillard 50600 132.1 4.4 71937208 730060 ?? R 4:52PM 197:52.52 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --inspect-port=0 --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 37361 15.7 0.4 74495192 61748 ?? S 1:10PM 296:45.10 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --inspect-port=0 --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 9680 1.2 0.2 34370824 38248 ?? S Sat01AM 25:30.70 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (GPU).app/Contents/MacOS/Code Helper (GPU) --type=gpu-process --user-data-dir=/Users/lillard/Library/Application Support/Code --gpu-preferences=UAAAAAAAAAAgAAAIAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgFAAAAAAAAKAUAAAAAAAC4AQAANgAAALABAAAAAAAAuAEAAAAAAADAAQAAAAAAAMgBAAAAAAAA0AEAAAAAAADYAQAAAAAAAOABAAAAAAAA6AEAAAAAAADwAQAAAAAAAPgBAAAAAAAAAAIAAAAAAAAIAgAAAAAAABACAAAAAAAAGAIAAAAAAAAgAgAAAAAAACgCAAAAAAAAMAIAAAAAAAA4AgAAAAAAAEACAAAAAAAASAIAAAAAAABQAgAAAAAAAFgCAAAAAAAAYAIAAAAAAABoAgAAAAAAAHACAAAAAAAAeAIAAAAAAACAAgAAAAAAAIgCAAAAAAAAkAIAAAAAAACYAgAAAAAAAKACAAAAAAAAqAIAAAAAAACwAgAAAAAAALgCAAAAAAAAwAIAAAAAAADIAgAAAAAAANACAAAAAAAA2AIAAAAAAADgAgAAAAAAAOgCAAAAAAAA8AIAAAAAAAD4AgAAAAAAAAADAAAAAAAACAMAAAAAAAAQAwAAAAAAABgDAAAAAAAAIAMAAAAAAAAoAwAAAAAAADADAAAAAAAAOAMAAAAAAABAAwAAAAAAAEgDAAAAAAAAUAMAAAAAAABYAwAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAACAAAAEAAAAAAAAAAAAAAABwAAABAAAAAAAAAAAAAAAAgAAAAQAAAAAAAAAAAAAAAJAAAAEAAAAAAAAAAAAAAACwAAABAAAAAAAAAAAAAAAAwAAAAQAAAAAAAAAAAAAAAOAAAAEAAAAAAAAAAAAAAADwAAABAAAAAAAAAAAQAAAAAAAAAQAAAAAAAAAAEAAAACAAAAEAAAAAAAAAABAAAABwAAABAAAAAAAAAAAQAAAAgAAAAQAAAAAAAAAAEAAAAJAAAAEAAAAAAAAAABAAAACwAAABAAAAAAAAAAAQAAAAwAAAAQAAAAAAAAAAEAAAAOAAAAEAAAAAAAAAABAAAADwAAABAAAAAAAAAABAAAAAAAAAAQAAAAAAAAAAQAAAACAAAAEAAAAAAAAAAEAAAABwAAABAAAAAAAAAABAAAAAgAAAAQAAAAAAAAAAQAAAAJAAAAEAAAAAAAAAAEAAAACwAAABAAAAAAAAAABAAAAAwAAAAQAAAAAAAAAAQAAAAOAAAAEAAAAAAAAAAEAAAADwAAABAAAAAAAAAABwAAAAAAAAAQAAAAAAAAAAcAAAACAAAAEAAAAAAAAAAHAAAABwAAABAAAAAAAAAABwAAAAgAAAAQAAAAAAAAAAcAAAAJAAAAEAAAAAAAAAAHAAAACwAAABAAAAAAAAAABwAAAAwAAAAQAAAAAAAAAAcAAAAOAAAAEAAAAAAAAAAHAAAADwAAABAAAAAAAAAACAAAAAAAAAAQAAAAAAAAAAgAAAACAAAAEAAAAAAAAAAIAAAABwAAABAAAAAAAAAACAAAAAgAAAAQAAAAAAAAAAgAAAAJAAAAEAAAAAAAAAAIAAAACwAAABAAAAAAAAAACAAAAAwAAAAQAAAAAAAAAAgAAAAOAAAAEAAAAAAAAAAIAAAADwAAABAAAAAAAAAACgAAAAAAAAAQAAAAAAAAAAoAAAACAAAAEAAAAAAAAAAKAAAABwAAABAAAAAAAAAACgAAAAgAAAAQAAAAAAAAAAoAAAAJAAAAEAAAAAAAAAAKAAAACwAAABAAAAAAAAAACgAAAAwAAAAQAAAAAAAAAAoAAAAOAAAAEAAAAAAAAAAKAAAADwAAAAgAAAAAAAAACAAAAAAAAAA= --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess --seatbelt-client=40
lillard 50413 1.1 1.1 86733516 183448 ?? S 4:48PM 3:06.55 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) --type=renderer --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --app-path=/Applications/Visual Studio Code.app/Contents/Resources/app --no-sandbox --no-zygote --enable-blink-features=HighlightAPI --lang=en-US --num-raster-threads=4 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --renderer-client-id=98 --launch-time-ticks=150064501730 --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess --vscode-window-config=vscode:6348908f-390a-4c5a-91cb-74cf47d91f46
lillard 50815 0.0 0.0 33662496 652 s004 Ss+ 4:54PM 0:00.38 /bin/bash --init-file /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
lillard 50715 0.0 0.1 71836576 19936 ?? S 4:52PM 0:00.27 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/lillard/Library/Caches/typescript/5.0 --enableTelemetry --typesMapLocation /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation
lillard 50708 0.0 0.2 82365820 26424 ?? S 4:52PM 0:04.32 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/lillard/.vscode/extensions/visualstudioexptteam.intellicode-api-usage-examples-0.2.7/dist/server/server.js --node-ipc --clientProcessId=50600
lillard 50707 0.0 0.1 71888176 24396 ?? S 4:52PM 0:10.56 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/vscode-typescript501/c10b79bd3065b5412253/tscancellation-51d9439c6ae64748611f.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/lillard/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.30,/Users/lillard/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.30 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc
lillard 50706 0.0 0.1 71845960 23940 ?? S 4:52PM 0:01.96 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/vscode-typescript501/c10b79bd3065b5412253/tscancellation-0b5c8a68cf770ed512b9.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/lillard/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.30,/Users/lillard/.vscode/extensions/visualstudioexptteam.vscodeintellicode-1.2.30 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc
lillard 50676 0.0 0.1 71843636 24216 ?? S 4:52PM 0:00.61 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=50600
lillard 50599 0.0 0.2 71909456 26168 ?? S 4:52PM 0:00.77 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 48579 0.0 0.2 82374044 29316 ?? S 4:28PM 0:01.69 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/lillard/.vscode/extensions/visualstudioexptteam.intellicode-api-usage-examples-0.2.7/dist/server/server.js --node-ipc --clientProcessId=48566
lillard 48566 0.0 0.2 71941064 32532 ?? S 4:28PM 95:12.30 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --inspect-port=0 --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 48565 0.0 0.1 71909472 25132 ?? S 4:28PM 0:00.75 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 47653 0.0 0.2 82374096 29268 ?? S 4:16PM 0:01.66 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/lillard/.vscode/extensions/visualstudioexptteam.intellicode-api-usage-examples-0.2.7/dist/server/server.js --node-ipc --clientProcessId=37361
lillard 93308 0.0 0.0 33662496 616 s001 Ss+ Mon12AM 0:00.85 /bin/bash --init-file /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
lillard 91014 0.0 1.2 86771992 195556 ?? S Sun11PM 21:59.64 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) --type=renderer --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --app-path=/Applications/Visual Studio Code.app/Contents/Resources/app --no-sandbox --no-zygote --enable-blink-features=HighlightAPI --lang=en-US --num-raster-threads=4 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --renderer-client-id=52 --launch-time-ticks=91590487404 --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess --vscode-window-config=vscode:bdc19120-c95c-42de-93df-cb6ee4786913
lillard 9732 0.0 0.2 71895916 25848 ?? S Sat01AM 2:50.30 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork --type=ptyHost --logsPath /Users/lillard/Library/Application Support/Code/logs/20230429T010124
lillard 9727 0.0 0.4 71914224 65396 ?? S Sat01AM 3:14.39 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=node.mojom.NodeService --lang=en-US --service-sandbox-type=none --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess
lillard 9682 0.0 0.1 33962888 17664 ?? S Sat01AM 0:11.71 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --user-data-dir=/Users/lillard/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,r,6855387264475343241,9541480404907002996,131072 --disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess --seatbelt-client=39
lillard 9679 0.0 0.0 33775576 6528 ?? S Sat01AM 0:01.79 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Helpers/chrome_crashpad_handler --no-rate-limit --monitor-self-annotation=ptype=crashpad-handler --database=/Users/lillard/Library/Application Support/Code/Crashpad --url=appcenter://code?aid=860d6632-f65b-490b-85a8-3e72944f7774&uid=f37b5ac6-2f82-4adc-abf3-0bca4a1f3498&iid=f37b5ac6-2f82-4adc-abf3-0bca4a1f3498&sid=f37b5ac6-2f82-4adc-abf3-0bca4a1f3498 --annotation=IsOfficialBuild=1 --annotation=_companyName=Microsoft --annotation=_productName=VSCode --annotation=_version=1.77.3 --annotation=exe=Electron --annotation=plat=OS X --annotation=prod=Electron --annotation=ver=19.1.11 --handshake-fd=27
lillard 9675 0.0 0.8 72459724 126384 ?? S Sat01AM 7:25.34 /Applications/Visual Studio Code.app/Contents/MacOS/Electron
root 247 0.0 0.0 33728268 2572 ?? Ss Fri11PM 0:01.02 /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper
lillard 59982 0.0 0.0 34121332 652 s002 S+ 1:03AM 0:00.00 grep Code
LillarduoMBP329:~ lillard$ ps aux | grep pylance
lillard 60057 0.0 0.0 34121332 656 s002 S+ 1:04AM 0:00.00 grep pylance
The process isn't starting but it's installed correctly. My guess is you have a setting disabling it somewhere.
What does this say (Command: Open User Settings):
If it's modified somewhere else it should say something there.
I have provided the User settings and the workspace settings above.
For this option, I also have tried Default and Jedi, not working at all.
There are two tabs User
and Workspace
for settings. please check both.
Your 'python' output log doesn't show anything for starting a server too. There should be a line like so:
Starting Pylance language server
Maybe the python extension is hung?
Does this command change any output in the Python
output tab?
If the python extension was hung, there would likely be a process using a core of the CPU and or the bottom of VS code would be show something as busy.
No more logs in the Python output but the prompted error message below.
Experiment 'pythonPromptNewFormatterExtcf' is active
Experiment 'pythonPromptNewToolsExt' is active
> conda info --json
> ./venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/interpreterInfo.py
[ERROR 2023-4-3 2:0:51.18]: Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
> ./venv/bin/python ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/interpreterInfo.py
> ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python -I ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/interpreterInfo.py
> ~/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python -I ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/interpreterInfo.py
> ~/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python -I ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/interpreterInfo.py
Python interpreter path: ./venv/bin/python
> . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.6.1/pythonFiles/printEnvVariables.py
shell: bash
Actually, I also have tried this command before
I think this means the Python extension is failing to start correctly. I'll transfer this to the python extension.
Got it, thank you!
@rchiodo Do I need to do something? or just waiting here for another one to respond me?
@Kuo-Chun-Ting somebody from the python extension should respond when they have the time.
Hi @Kuo-Chun-Ting , please provide the workspace settings as well. Also, note Python 2.7 is no longer supported, try using Python 3.7+ if you can.
Otherwise If you need to work with Python 2.7, you will have to pin to 2022.2.* version of the extension, which was the last version that had the debugger (debugpy) with support for python 2.7, and was tested with 2.7
. Thank you for your understanding!
@karrtikr The first post I did is using python3.9 and I also provided the workspace settings.json there, please take a look, thank you!
@Kuo-Chun-Ting Make sure you have the latest python extension 2023.8.0, and try the following: Set the log level to trace for the python extension
and reload window. This should provide a more detailed log.
you should see some of these in the logs before pylance starts:
I am suspecting something is failing before it even gets to that point.
@karthiknadig Thanks for the good suggestion, However, I can't see any log related to pylance
Below is the full python extension
logs
2023-05-10 13:37:04.762 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-05-10 13:37:04.762 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-05-10 13:37:04.762 [info] Test server listening.
2023-05-10 13:37:04.762 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2023-05-10 13:37:04.968 [info] > conda info --json
2023-05-10 13:37:04.974 [info] > ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:37:04.991 [info] > ~/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:37:05.150 [info] > ~/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:37:05.152 [info] Python interpreter path: ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:37:10.230 [info] > . ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/printEnvVariables.py
2023-05-10 13:37:10.230 [info] shell: bash
2023-05-10 13:38:44.445 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-05-10 13:38:44.445 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-05-10 13:38:44.445 [debug] Getting roots
2023-05-10 13:38:44.445 [debug] Getting roots
2023-05-10 13:38:44.445 [debug] Found roots
2023-05-10 13:38:44.445 [debug] Start watching file for changes /Users/lillard/.conda/environments.txt
2023-05-10 13:38:44.445 [debug] Start watching: /Users/lillard/.conda with pattern environments.txt using VSCode API
2023-05-10 13:38:44.445 [debug] Found roots
2023-05-10 13:38:44.445 [debug] Start watching root /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting for globs ["python","*/python","*/bin/python"]
2023-05-10 13:38:44.445 [debug] Start watching: /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting with pattern python using VSCode API
2023-05-10 13:38:44.445 [debug] Start watching: /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting with pattern */python using VSCode API
2023-05-10 13:38:44.445 [debug] Start watching: /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting with pattern */bin/python using VSCode API
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Waiting for test server to start...
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Searching for conda.
2023-05-10 13:38:44.445 [debug] Probing conda binary: conda
2023-05-10 13:38:44.445 [debug] VS Code was not launched from the command line, not selecting activated interpreter
2023-05-10 13:38:44.445 [debug] No cached env found for /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:44.445 [info] Test server listening.
2023-05-10 13:38:44.445 [debug] Test server started.
2023-05-10 13:38:44.445 [debug] Testing: Setting up watcher for /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting
2023-05-10 13:38:44.445 [debug] Finished searching for custom virtual envs
2023-05-10 13:38:44.445 [debug] Couldn't locate the state binary.
2023-05-10 13:38:44.445 [debug] Searching for workspace virtual envs in: /Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting
2023-05-10 13:38:44.445 [debug] Finished searching for poetry envs
2023-05-10 13:38:44.445 [debug] Searching for global virtual envs in: /Users/lillard/.local/share/virtualenvs
2023-05-10 13:38:44.445 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [added] /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python3
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python3.9
2023-05-10 13:38:44.445 [debug] Finished searching for workspace virtual envs
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [added] /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python3
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python3.9
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/Users/lillard/Lilee/projects/bugatti/apps/bugatti-service/event_setting"-Arg-Separator-undefined
2023-05-10 13:38:44.445 [debug] Dump environment variables {
"PYTHONPATH": "./src:$PYTHONPATH:",
"SSL_CERT_FILE": "/usr/local/etc/openssl@1.1/cert.pem",
"COMMAND_MODE": "unix2003",
"GVM_PATH_BACKUP": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"GVM_ROOT": "/Users/lillard/.gvm",
"GVM_VERSION": "1.0.22",
"HOME": "/Users/lillard",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LOGNAME": "lillard",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.vi9tiuwzNp/Listeners",
"TMPDIR": "/var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/",
"USER": "lillard",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/lillard/Library/Application Support/Code/CachedData/252e5463d60e63238250799aef7375787f68b4ee",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/lillard/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_PID": "42909",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.84785766.84785772",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1",
"VSCODE_L10N_BUNDLE_LOCATION": "",
"PATH": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin"
}
2023-05-10 13:38:44.445 [info] > conda info --json
2023-05-10 13:38:44.445 [debug] Failed to spawn conda binary conda [Error: spawn conda ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
errno: -2,
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
2023-05-10 13:38:44.445 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python add
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [added] /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python3
2023-05-10 13:38:44.445 [debug] Global Virtual Environment: [skipped] /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python3.7
2023-05-10 13:38:44.446 [debug] Couldn't locate the conda binary.
2023-05-10 13:38:44.446 [debug] Couldn't locate the conda binary.
2023-05-10 13:38:44.532 [debug] Dump environment variables {
"PYTHONPATH": "./src:$PYTHONPATH:",
"SSL_CERT_FILE": "/usr/local/etc/openssl@1.1/cert.pem",
"COMMAND_MODE": "unix2003",
"GVM_PATH_BACKUP": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"GVM_ROOT": "/Users/lillard/.gvm",
"GVM_VERSION": "1.0.22",
"HOME": "/Users/lillard",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LOGNAME": "lillard",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.vi9tiuwzNp/Listeners",
"TMPDIR": "/var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/",
"USER": "lillard",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/lillard/Library/Application Support/Code/CachedData/252e5463d60e63238250799aef7375787f68b4ee",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/lillard/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_PID": "42909",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.84785766.84785772",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1",
"VSCODE_L10N_BUNDLE_LOCATION": "",
"PATH": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin"
}
2023-05-10 13:38:44.533 [info] > ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:38:44.533 [debug] Shell Exec: /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py with options: {
"timeout": 15000,
"encoding": "utf8",
"env": {
"PYTHONPATH": "./src:$PYTHONPATH:",
"SSL_CERT_FILE": "/usr/local/etc/openssl@1.1/cert.pem",
"COMMAND_MODE": "unix2003",
"GVM_PATH_BACKUP": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"GVM_ROOT": "/Users/lillard/.gvm",
"GVM_VERSION": "1.0.22",
"HOME": "/Users/lillard",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LOGNAME": "lillard",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.vi9tiuwzNp/Listeners",
"TMPDIR": "/var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/",
"USER": "lillard",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/lillard/Library/Application Support/Code/CachedData/252e5463d60e63238250799aef7375787f68b4ee",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/lillard/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_PID": "42909",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.84785766.84785772",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1",
"VSCODE_L10N_BUNDLE_LOCATION": "",
"PATH": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8"
}
}
2023-05-10 13:38:44.578 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python add
2023-05-10 13:38:44.579 [info] > ~/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:38:44.579 [debug] Shell Exec: /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py with options: {
"timeout": 15000,
"encoding": "utf8",
"env": {
"PYTHONPATH": "./src:$PYTHONPATH:",
"SSL_CERT_FILE": "/usr/local/etc/openssl@1.1/cert.pem",
"COMMAND_MODE": "unix2003",
"GVM_PATH_BACKUP": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"GVM_ROOT": "/Users/lillard/.gvm",
"GVM_VERSION": "1.0.22",
"HOME": "/Users/lillard",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LOGNAME": "lillard",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.vi9tiuwzNp/Listeners",
"TMPDIR": "/var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/",
"USER": "lillard",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/lillard/Library/Application Support/Code/CachedData/252e5463d60e63238250799aef7375787f68b4ee",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/lillard/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_PID": "42909",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.84785766.84785772",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1",
"VSCODE_L10N_BUNDLE_LOCATION": "",
"PATH": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8"
}
}
2023-05-10 13:38:44.579 [debug] Finished searching for global virtual envs
2023-05-10 13:38:44.585 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python add
2023-05-10 13:38:44.668 [debug] Found interpreter for >> /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py <<: {"versionInfo":[3,9,5,"final",0],"sysPrefix":"/Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK","sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]","is64Bit":true}
2023-05-10 13:38:44.668 [info] > ~/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python -I ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py
2023-05-10 13:38:44.669 [debug] Shell Exec: /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py with options: {
"timeout": 15000,
"encoding": "utf8",
"env": {
"PYTHONPATH": "./src:$PYTHONPATH:",
"SSL_CERT_FILE": "/usr/local/etc/openssl@1.1/cert.pem",
"COMMAND_MODE": "unix2003",
"GVM_PATH_BACKUP": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"GVM_ROOT": "/Users/lillard/.gvm",
"GVM_VERSION": "1.0.22",
"HOME": "/Users/lillard",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LOGNAME": "lillard",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.vi9tiuwzNp/Listeners",
"TMPDIR": "/var/folders/5t/60zp_j115mbcb05zt8w_7v700000gn/T/",
"USER": "lillard",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/lillard/Library/Application Support/Code/CachedData/252e5463d60e63238250799aef7375787f68b4ee",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/lillard/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-tw\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_PID": "42909",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.84785766.84785772",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1",
"VSCODE_L10N_BUNDLE_LOCATION": "",
"PATH": "/Users/lillard/.gvm/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin",
"PYTHONUNBUFFERED": "1",
"PYTHONIOENCODING": "utf-8"
}
}
2023-05-10 13:38:44.669 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/practice_in_2022-WqINlCuK/bin/python update
2023-05-10 13:38:44.670 [debug] Found interpreter for >> /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py <<: {"versionInfo":[3,9,5,"final",0],"sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]","is64Bit":true}
2023-05-10 13:38:44.670 [debug] Environment resolver resolved /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python for {"name":"event_setting-12S3pxxF","location":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","kind":"virt-pipenv","executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"","ctime":1682661903934,"mtime":1682661903934},"display":"Python 3.9.5 ('event_setting-12S3pxxF')","version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0}},"arch":1,"distro":{"org":""},"source":[],"type":"Virtual","id":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","detailedDisplayName":"Python 3.9.5 ('event_setting-12S3pxxF': pipenv)"} to {"arch":3,"executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","mtime":-1,"ctime":-1},"version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]"}}
2023-05-10 13:38:44.670 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python update
2023-05-10 13:38:44.670 [debug] Resolved /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python to {"name":"event_setting-12S3pxxF","location":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","kind":"virt-pipenv","executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","ctime":1682661903934,"mtime":1682661903934},"display":"Python 3.9.5 ('event_setting-12S3pxxF')","version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","detailedDisplayName":"Python 3.9.5 ('event_setting-12S3pxxF': pipenv)"}
2023-05-10 13:38:44.670 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python update
2023-05-10 13:38:44.670 [debug] Flushing env to cache /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:44.671 [info] Python interpreter path: ~/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:44.672 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-05-10 13:38:44.672 [debug] Found cached env for /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:44.672 [debug] Resolved /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python from cache: {"name":"event_setting-12S3pxxF","location":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","kind":"virt-pipenv","executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","ctime":1682661903934,"mtime":1682661903934},"display":"Python 3.9.5 ('event_setting-12S3pxxF')","version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","detailedDisplayName":"Python 3.9.5 ('event_setting-12S3pxxF': pipenv)"}
2023-05-10 13:38:44.808 [debug] Found interpreter for >> /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python -I /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/get_output_via_markers.py /Users/lillard/.vscode/extensions/ms-python.python-2023.8.0/pythonFiles/interpreterInfo.py <<: {"versionInfo":[3,7,9,"final",0],"sysPrefix":"/Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG","sysVersion":"3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) \n[Clang 6.0 (clang-600.0.57)]","is64Bit":true}
2023-05-10 13:38:44.808 [debug] Python API env change detected /Users/lillard/.local/share/virtualenvs/video_downloader-GHe3XpYG/bin/python update
2023-05-10 13:38:45.102 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-05-10 13:38:45.103 [debug] Found cached env for /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:45.103 [debug] Resolved /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python from cache: {"name":"event_setting-12S3pxxF","location":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","kind":"virt-pipenv","executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","ctime":1682661903934,"mtime":1682661903934},"display":"Python 3.9.5 ('event_setting-12S3pxxF')","version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","detailedDisplayName":"Python 3.9.5 ('event_setting-12S3pxxF': pipenv)"}
2023-05-10 13:38:45.103 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-05-10 13:38:45.104 [debug] Found cached env for /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python
2023-05-10 13:38:45.104 [debug] Resolved /Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python from cache: {"name":"event_setting-12S3pxxF","location":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","kind":"virt-pipenv","executable":{"filename":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","sysPrefix":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF","ctime":1682661903934,"mtime":1682661903934},"display":"Python 3.9.5 ('event_setting-12S3pxxF')","version":{"major":3,"minor":9,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.9.5 (v3.9.5:0a7dcbdb13, May 3 2021, 13:17:02) \n[Clang 6.0 (clang-600.0.57)]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/Users/lillard/.local/share/virtualenvs/event_setting-12S3pxxF/bin/python","detailedDisplayName":"Python 3.9.5 ('event_setting-12S3pxxF': pipenv)"}
@Kuo-Chun-Ting I have been searching for possible reasons that this can be failing, I can't seem to find any that stand out. One option you can try is to do a clean install of python extension (i.e., without jupyter extension).
See if that loads as expected.
@karthiknadig I have two questions. (1) After I uninstall all extensions in my VSCode
I can still see those files in the extension directory, is that normal? (2) I even have tried removing all extension files manually in the extension directory and then re-install the Python and Pylance extensions but still not working!
This time I tried the same way again, still not working as well. My steps is below
@karthiknadig I just uninstall my VSCode and remove all the related data by
rm -rf ~/.vscode
rm -rf ~/Library/Application\ Support/Code
After reinstalling the latest version of VSCode for intel and Python and Pylance, the same issue is there. That's really weird.
I looked at several possibilities for this failure, i cannot see how this is not running. The best next step I can think for this is Extension Bisect
. I am suspecting there might be some kind of interference.
A possibility I can think of is prototype
corruption. Since all extensions run in the same extension host, there is a chance that one extension can impact another. A log time ago, we had a string prototype change that we had that impacted another unrelated extension.
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
Happy Coding!
Environment data
Code Snippet
Repro Steps
Expected behavior
Actual behavior
Logs
VSCode settings
Even I set both the user and workspace settings to an empty Json
{}
The Python language server won't start up too.User settings
Workspace settings.json