New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use AREPL, getting "no active text editor open" in VScode #240
Comments
Thanks for reporting the issue! That's very weird. What version of vscode are you using? The "no active text editor open" should only appear when you call arepl.currentAREPLSession without any document open. It should never appear when calling newAREPLSession - maybe you called the first command, then the second, but the "no active text editor message" popped up late? My suspicion is that that message is unrelated and the actual error is something else. I'm guessing it's a mac-specific error. Can you go to help -> toggle developer tools, reproduce the problem, and then send me logs in the console please? |
I just tried reproducing the problem in my ubuntu VM and arepl worked fine :/ |
(Sorry for the late reply)
|
(please correct me if this isn't the best way to send logs) |
interesting..... here's the relevant error:
This is a issue with the https://github.com/extrabacon/python-shell repo. Which I'm a maintainer of, actually, so I still need to fix it 😂 . this.childProcess = spawn(pythonPath, this.command, options);
['stdout', 'stdin', 'stderr'].forEach(function (name) {
self[name] = self.childProcess[name];
self.parser && self[name].setEncoding(options.encoding || 'utf8');
}); The error happens when the encoding is set - one or more of stdout, stdin, or stderr is undefined. |
I'm guessing the issue is because you have a incorrect python path - however, arepl should show you the error and the fact that is it just exiting silently is my fault. Next update will have a change to show the error. |
what value do you have for arepl.pythonPath and python.pythonPath in your vscode settings? |
After I corrected contradictory "python.path" definitions in overall settings.json and workspace settings.json, the problem is solved. |
yeah - that's because path needs to be capitalized, like so: arepl.pythonPath |
Even with "arepl.pythonPath" correctly capitalized I get green squiggles and "unknown configuration setting"... |
Green squiggles should only appear if you don't have arepl installed. I honestly have no idea why that would happen :/ |
Just installed AREPL extension but can't get it to work.
Whenever I try to start AREPL (with any AREPL command), a new pane containing the base AREPL window (with instructions) opens, but my code never get's previewed on that panel.
I get a message ""no active text editor open" in VScode".
Any ideas?
Below is the extension manager developer logs:
[2019-04-13 15:44:46.361] [exthost] [info] extension host started [2019-04-13 15:44:46.471] [exthost] [info] ExtensionService#_doActivateExtension mechatroner.rainbow-csv {"startup":false,"activationEvent":"onLanguage:plaintext"} [2019-04-13 15:44:46.471] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/mechatroner.rainbow-csv-1.0.0/extension [2019-04-13 15:44:46.505] [exthost] [info] ExtensionService#_doActivateExtension vscode.python {"startup":false,"activationEvent":"onLanguage:python"} [2019-04-13 15:44:46.505] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/python/out/pythonMain [2019-04-13 15:44:46.515] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"activationEvent":"onLanguage:python"} [2019-04-13 15:44:46.515] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/ms-python.python-2019.3.6558/out/client/extension [2019-04-13 15:44:46.833] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.833] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/debug-auto-launch/dist/extension [2019-04-13 15:44:46.837] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.837] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/emmet/dist/extension [2019-04-13 15:44:46.844] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.844] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main [2019-04-13 15:44:46.880] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.880] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/merge-conflict/dist/extension [2019-04-13 15:44:46.907] [exthost] [info] ExtensionService#_doActivateExtension alefragnani.Bookmarks {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.907] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/alefragnani.bookmarks-10.4.3/dist/extension [2019-04-13 15:44:46.916] [exthost] [info] ExtensionService#_doActivateExtension christian-kohler.path-intellisense {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.916] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/christian-kohler.path-intellisense-1.4.2/out/src/extension [2019-04-13 15:44:46.942] [exthost] [info] ExtensionService#_doActivateExtension CoenraadS.bracket-pair-colorizer-2 {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:46.942] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/coenraads.bracket-pair-colorizer-2-0.0.28/out/src/extension [2019-04-13 15:44:47.013] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:47.014] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/dbaeumer.vscode-eslint-1.8.2/client/out/extension [2019-04-13 15:44:47.034] [exthost] [info] ExtensionService#_doActivateExtension esbenp.prettier-vscode {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:47.034] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/esbenp.prettier-vscode-1.8.1/out/src/extension [2019-04-13 15:44:47.303] [exthost] [info] ExtensionService#_doActivateExtension KnisterPeter.vscode-github {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:47.303] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/knisterpeter.vscode-github-0.30.2/out/src/main [2019-04-13 15:44:47.813] [exthost] [info] ExtensionService#_doActivateExtension ritwickdey.LiveServer {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:47.813] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/ritwickdey.liveserver-5.5.1/out/src/extension [2019-04-13 15:44:48.789] [exthost] [info] ExtensionService#_doActivateExtension vscode-icons-team.vscode-icons {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:48.789] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/vscode-icons-team.vscode-icons-8.5.0/out/src/ [2019-04-13 15:44:48.895] [exthost] [info] ExtensionService#_doActivateExtension wayou.vscode-todo-highlight {"startup":true,"activationEvent":"*"} [2019-04-13 15:44:48.895] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/wayou.vscode-todo-highlight-1.0.4/src/extension [2019-04-13 15:44:48.898] [exthost] [info] eager extensions activated [2019-04-13 15:46:48.380] [exthost] [info] ExtensionService#_doActivateExtension almenon.arepl {"startup":false,"activationEvent":"onCommand:extension.newAREPLSession"} [2019-04-13 15:46:48.380] [exthost] [info] ExtensionService#loadCommonJSModule /Users/mac/.vscode/extensions/almenon.arepl-1.0.13/out/src/extension
The text was updated successfully, but these errors were encountered: