AREPL-vscode: AREPL does not use folder-level settings
I’m running vscode on Linux (Ubuntu bionic) and when I installed AREPL extension, it gives this error:
Error in the AREPL extension!
Error running python with command: C:\Python38-32\python.exe -u /home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/node_modules/arepl-backend/python/python_evaluator.py
Error: spawn C:\Python38-32\python.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
Are you sure you have installed python 3 and it is in your PATH?
You can download python here: https://www.python.org/downloads/
it seems as if it searched windows path for python instead of the linux one My python is under: /usr/bin/python3
Log from vscode:
[2020-02-10 12:52:14.348] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/extension
[2020-02-10 12:52:14.806] [exthost] [info] eager extensions activated
[2020-02-10 12:52:15.961] [exthost] [error] Activating extension almenon.arepl failed due to an error:
[2020-02-10 12:52:15.962] [exthost] [error] Error: Command failed: "C:\Python38-32\python.exe" -m site --user-site
/bin/sh: 1: C:\Python38-32\python.exe: not found
at checkExecSyncError (child_process.js:629:11)
at Object.execSync (child_process.js:665:15)
at Object.<anonymous> (electron/js2c/asar.js:744:23)
at Object.execSync (electron/js2c/asar.js:744:23)
at getsitePackagePath (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/registerAreplDump.js:31:28)
at Object.registerAreplDump (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/registerAreplDump.js:11:29)
at activate (/home/koumakpet/.vscode/extensions/almenon.arepl-1.0.20/out/src/extension.js:49:25)
at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:710:141)
at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:709:810)
at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:708:960
at async Promise.all (index 0)
I should mention that I’m dual booting Windows and Ubuntu, if that is important.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (9 by maintainers)
@koumakpet @sephross version 1.0.23 of arepl should now correctly use currently configured interpreter for python extension if arepl.pythonPath is not set - once you update can you test if it is working please?
Well in vscode there are basically 3 files for settings: default settings, global user settings and project specific settings (for every workspace, there can be .vscode directory in which there is file settings.json). In my global user settings I had the wrong path set, but in project specific settings, I had python path set to /usr/bin/python3, which is the correct path, but AREPL seems to take the path from global user settings and ignore the project secific settings.
Oh, now I get it, I synced my settings.json for vscode from windows and I haven’t updated the python path there. I haven’t noticed that. Thanks for your help.