terminal: Context Menu -> Open in Windows Terminal -> "The server threw an exception"
Note:
- Right Clicking on a folder and then opening the terminal works.
- Going inside the folder, then right clicking on empty space, and then opening the terminal gives error.
- I believe this was a known issue with older windows versions, that is why it was disabled earlier, but i think i saw a PR that implemented the functionality differently for older windows, but it is still not working for me
- I restarted explorer.exe, still gives the error. Maybe restarting the computer will make it work? I will try later and update the issue if it works. EDIT: Nope, still not fixed.


Environment
Windows build number: Microsoft Windows [Version 10.0.18363.1256]
Windows Terminal version: Windows Terminal Preview v1.6.10272.0
Any other software?: Not applicable
Steps to reproduce
Context Menu -> Open in Windows Terminal -> “The server threw an exception”
Expected behavior
It should work
Actual behavior
It doesn’t
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 47
- Comments: 34 (15 by maintainers)
Commits related to this issue
- Fix crash in explorer background context menu logic (#8977) Fix a bug brought in with PR: #8638 see, #8936 #8638 * [x] Closes #8936 * [x] CLA signed * [x] Tests passed With the hel... — committed to microsoft/terminal by hereafter 3 years ago
- Fix crash in explorer background context menu logic (#8977) Fix a bug brought in with PR: #8638 see, #8936 #8638 * [x] Closes #8936 * [x] CLA signed * [x] Tests passed With the help from @nc-x, th... — committed to microsoft/terminal by hereafter 3 years ago
- Fix crash in explorer background context menu logic (#8977) Fix a bug brought in with PR: #8638 see, #8936 #8638 * [x] Closes #8936 * [x] CLA signed * [x] Tests passed With the help from @nc-x, th... — committed to microsoft/terminal by hereafter 3 years ago
Right now, we’ve committed the fix to
main. We’re working on a couple other hot bugs right now, and should have a servicing release out later this week. Thanks for the patience!Same issue for me, still not working 😟
This is due to be released in a bugfix update to 1.6 this week.
THANK YOU VERY MUCH
that would be good enough for now I am making a pr to the mess I left
If it’s not too much trouble, we might be able to figure this out by building from source and throwing breakpoints at the top of
OpenTerminalHere::_GetPathFromExplorer, in...src\cascadia\ShellExtension\OpenTerminalHere.cpp. Since this only repros when right clicking in the empty space in explorer, then I’m pretty sure it’s due to the code in that function./cc @hereafter, because they might have some ideas what’s going on here (#8638)
Well then this should probably be serviced to 1.5 too. That’s what we get for sneaking features into the stable builds.
Maybe a point worth noting - When I use context menu as the OP has shared, it gives me an error but if I right-click on the folder itself and choose
Open in Windows Terminal, it does work.hi @zadjii-msft! just wanted to check in to see if this fix was released? I see that the issue is assigned to the v1.7 milestone- should I check back on February 28th?
Thanks, it works perfectly.
I have also set up teamviewer, so in case any debugging is still required, please let me know.
@nc-x
could you please take the code here
https://github.com/hereafter/terminal/blob/dev/hereafter/context-menu-patch/src/cascadia/ShellExtension/OpenTerminalHere.cpp
to see if it works for you now