-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
#1841 not good enough #7355
Comments
I legitimately wish we could help you get out of this state from the Terminal side, but here's how it plays out.
We can only switch to notepad if the API in step 2 tells us it failed. Anything that succeeds, or looks like success, must contractually be taken to mean that it succeeded. There's a couple different avenues we could take to determine whether something actually launched in response to our ShellExecute, but they fall apart on closer inspection.
It's not a tractable problem. Terminal has to trust, to some extent, the OS APIs that it uses. If an application is successfully launching when we ask to open a JSON file, and then that application is failing silently (or loudly, as the case may be for you!) after telling the OS that it was a great and complete success . . . that's the brakes. Would you mind running |
If there were any way for us to reliably detect that our otherwise apparently successful request to open the JSON file failed ... we would be doing it. 😄 |
Ahh, I see. I was able to reproduce the annoying behavior by just trying to open the settings file with "Visual Studio 2015" which is the bad installer state that I mentioned I'm in. assoc output : .json=VisualStudio.json.14.0 when I set it back from gvim, but I already know the reason I guess. So, I guess there is no Terminal bug here :( As a side note, is there any interest in a GUI for settings ? I absolutely hate GUI apps having json settings (it's kinda excusable for editors like VSCode and Sublime, but not really) . I would be happy to add one as a side project. Should be easy enough in XAML/MVVM to bind a nice view to the settings file ? |
Gonna mark this one resolved/external... but thanks for all the info! |
Environment
Steps to reproduce
I have some sort of phantom association with .json files and a version of Visual Studio (2015) that I no longer actually have. This is a long-standing situation due to some incompetence on my part, but not really relevant.
Anyway, this leads to a situation where I tried to open settings after installing Terminal and it kept beeping with no error message.
According to #1841 it should fire up notepad if ShellExecute() fails, but it does not show me notepad either.
Expected behavior
At least pop-up a message box saying "Couldn't open settings.json, check that you have an editor associated".
Regardless of how I got into this sorry state, lack of user feedback is inexcusable.
Actual behavior
DING ! DING!
The text was updated successfully, but these errors were encountered: