Support for WSL - Selected default editor not found
See original GitHub issueDescribe the bug
On Ubuntu for Windows 10 (WSL), after doing amplify init
, I selected Sublime Text as the default editor, which is installed on my Windows filesystem. When trying to update the GraphQL schema through the console – which I believe just launches your selected editor with the relevant file created and opened? – I get the error “Selected default editor not found in your machine.”
I think this must have something to do with Amplify looking for an Ubuntu build of Sublime as opposed to the Windows version.
To Reproduce Steps to reproduce the behavior:
- Install Ubuntu for Windows, Node, npm, Amplify, and Amplify CLI on Ubuntu distro. Install Sublime for Windows.
amplify init
your app, select Sublime Text as your editor.amplify add api
and select Yes when asked to edit schema- See error
Expected behavior Editor launched with file opened.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10, Ubuntu running on Windows Subsystems for Linux
Additional Context The Amplify app is in the Windows filesystem, which can be navigated to via the /mnt/ Linux directory. Most Amplify functionality works with this setup.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Same issue. Not in WSL, standard Windows with Git Bash inside VS Code
I encounter the same problem using git bash inside vscode