vscode and arepl version
See original GitHub issue*Won’t evaluate code unless I rollback to AREPL 1.0.7. Upon opening the AREPL window, I can see the “Start typing or make a change…”, but it does not ever actually evaluate the code. Pressing Ctrl+Enter gives a warning:
Running the contributed command: ‘extension.executeAREPLBlock’ failed.
My version of vscode: Version: 1.34.0 Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758 Date: 2019-05-15T21:55:35.507Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Linux x64 4.18.0-15-generic
workbench.main.js:238 [Extension Host] Activating extension almenon.arepl
failed: Cannot read property ‘uri’ of undefined
workbench.main.js:238 [Extension Host] Here is the error stack: TypeError: Cannot read property ‘uri’ of undefined
at Function.getCurrentWorkspaceFolder (/home/m3thr1l/.vscode/extensions/almenon.arepl-1.0.14/out/src/vscodeUtilities.js:65:57)
at PreviewManager.getPythonPath (/home/m3thr1l/.vscode/extensions/almenon.arepl-1.0.14/out/src/PreviewManager.js:117:93)
at activate (/home/m3thr1l/.vscode/extensions/almenon.arepl-1.0.14/out/src/extension.js:34:58)
at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:731:936)
at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:731:625)
at define._doActivateExtension.Promise.all.then.e (/usr/share/code/resources/app/out/vs/workbench/service
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (13 by maintainers)
Top GitHub Comments
You have several shortcuts for arepl. AREPL has the following shortcuts for everyone by default:
https://i.imgur.com/GOt1zLA.png
You can fix the issue by changing the
executeAREPLBlock
shortcut to a different keybinding.Because pressing enter requires the cursor to be at the end of the line in order to not break the syntax but ctrl +Enter can be pressed for creating in new line despite the cursor being anywhere in the previous line which is a really comfortable shortcut.
And about changing the shortcut for Ctrl + enter to something else, I’ve already been using the same shortcut which I am comfortable with to easily move to the next line so it would be really difficult for me to change that habit and I was hoping as the developer you can bring some updates or changes to fix this issue as I like the concept of your extension.