-
Notifications
You must be signed in to change notification settings - Fork 154
Throw a warning prompt if "Open in Editor" fails. #203
Comments
I'm looking into this and from what I see, Because of this, we can't know for sure if there is a problem with I'm not sure how often does that happen but from the discussion in #171, I can see that it does happen. Is that something we should be considering? |
Hi @shockry!
Yeah, I think this is what I was imagining. Check for EDITOR (or, do whatever |
Great! I still have a question though, Rest of the work is just checking for environment variables. The question is, detecting running editors is a pretty complex piece of logic that we would have to maintain if we're doing it in pre-checks, so should we copy that behavior over as well, or just settle for env. variable checks (while making sure they're in the PATH)? |
Sorry @shockry! Missed this question. Ah I see. This is surprisingly tricky then! It's really a shame that I wonder if it'd be worth opening a PR on That would really be the best case, since as you say, we wouldn't have to maintain our own fork, as new editors are released. If that fails, I think we can just copy Let us know! Sorry again for the delay in our response =( |
No worries, the first response was super fast though ^^ I have just opened an issue there so let's see how that goes. If you have suggestions on the formatting of the issue, tell me and I'll go edit it. |
We're in progress of inheriting the |
Woohoo! Thanks @Timer :D |
After a fresh Windows installation I'm getting the following output if I'm trying to open editor (Guppy v0.3.0). So it's only visible in development console. If one instance of VS code is running the project is opening correctly. Adding |
Is your feature request related to a problem? Please describe.
In #171, I added a couple new options to the Application Menu:
The latter, "Open in Editor", is supposed to open the current project in VS Code, or Sublime Text, or Atom, whatever.
It relies on the existence of an "EDITOR" environment variable that should be present after you've installed an editor, but may not be.
Right now, if no EDITOR is found, it just silently fails.
Describe the solution you'd like
We should pop a warning prompt, something like:
Additional context
We should use
dialog.showMessageBox
from Electron, to use system prompts. We should also write up some quick documentation to explain how to fix this issue (and how PATH works more broadly)This is a great first issue for new contributors! Especially for folks who are already a little familiar with PATH.
The text was updated successfully, but these errors were encountered: