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
Tasks fail to run on networked locations #48351
Comments
@dbaeumer The task still failed, though that caused the terminal to popup, where it didn't before. I tried setting The terminal is blank. |
@Tyriar I just looked, the terminal shows the correct path. I did |
I found the problem. CMD.EXE doesn't support starting with an UNC path as the cwd. I have code to check this but that one doesn't only check for Windows. Need to make this cmd.exe specific. @rbenson I assume you are using PowerShell. Right ? |
To verify you need to have a workspace on a UNC drive. You can share some folder of your Windows machine and then use it using UNC path \localhost\sharedFolder. @bpasero may be you can verify since you know how that trick works. |
@dbaeumer No - I am using bash. I made a workspaces directory in the root of my Documents directory (moved from C:\Users\Name.vscode\workspace to Please reopen |
I fixed it yesterday so you need to either test this with insiders from today or wait until we ship the next stable. As said it didn't work with PowerShell either since the old code checked for Windows not for Windows & cmd.exe. Regarding bash: task and bash are not well supported under Windows. Major problem here is that VS Code assume that when running under Windows |
Thanks for that. I don't haves the privs to enable insders, so I'll keep a look out for the patch. |
Does this fix the scenario or just add a warning? I see the new warning when using cmd and running the vscode build task without cwd customized on the task. In other cases, I just see a terminal error message.
cmd
Also, lots of errors from task detection. |
UNC paths aren't supported under @roblourens for the first case could you open a terminal ? |
Need to move the issue. |
@alexr00 something to investigate again. |
I ran this task and it worked (echoed "testing'):
When I tried it with cmd.exe as the shell I saw the error about using UNC drives with cmd.exe. It doesn't look like there's a bug here now 😊 |
@alexr00 thanks for trying to reproduce. |
My workplace maps the Documents folder to a networked location, so it's automatically backed up. So it looks like
C:\Users\Username\documents
it is really\\domain\server\username\documents
. My tasks.json is below. If I run my task in a networked directory (ex\\domain\server\username\documents\md_test
), I get a "Failed to create terminal for task Convert to markdown" error. If I make the same directory structure in my user folder, C:\Users\username, or my desktop, the task runs fine.OS: Win 10 Enterprise 64 bit
VSC: 1.2.2
The text was updated successfully, but these errors were encountered: