question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for WSL - Selected default editor not found

See original GitHub issue

Describe 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:

  1. Install Ubuntu for Windows, Node, npm, Amplify, and Amplify CLI on Ubuntu distro. Install Sublime for Windows.
  2. amplify init your app, select Sublime Text as your editor.
  3. amplify add api and select Yes when asked to edit schema
  4. See error

Expected behavior Editor launched with file opened.

Screenshots image image

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:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
adampwrightcommented, May 25, 2020

I encounter the same problem using git bash inside vscode

Same issue. Not in WSL, standard Windows with Git Bash inside VS Code

2reactions
estyhcommented, Mar 30, 2020

I encounter the same problem using git bash inside vscode

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows Subsystem for Linux | Microsoft Learn
File a new issue. If you have found a problem with WSL and there does not appear to be an existing issue, you...
Read more >
Developing in WSL - Visual Studio Code
Install Visual Studio Code on the Windows side (not in WSL). ... Press F1, select WSL: New WSL Window for the default distro...
Read more >
How can I set "vi" as my default editor in UNIX?
You should add it to your shell's configuration file. For Bash, this is ~/.bashrc or ~/.bash_profile . You should also set $VISUAL ,...
Read more >
How do I change the default text editor? - Ask Ubuntu
Here is what worked in my case: Right click on a text file. Choose "Properties" (not "Open With...") Click on the "Open With"...
Read more >
WSL | IntelliJ IDEA Documentation - JetBrains
Note that IntelliJ IDEA does not support legacy WSL, which you may ... for Linux 2 (WSL2), which is available in Windows 10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found