Spawning tasks in Windows #12575
-
I find tasks to be a very useful feature since it allows me for example to launch a Unfortunately one such task I have created does not work in Windows while it works fine on MacOS. The problem seems to be the arguments passed to the shell command. It looks to me like they are only suitable for MacOS and maybe Linux systems. I have added a condition there to change these arguments (using -C insted of -i -c) if the SHELL envrionment variable contains "powershell". It works for my local build of Zed. I would like to contribute it if it can help advance the Windows edition, but I thought to start this discussion before trying to introduce a pull request, since I do not know if the team is interested in such improvements at the moment, or if they are already planning to handle this issue in a way that is more generic than my two if/then snippets. 😄 Any feedback would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I use newest build of Zed in Windows11, the problem hasn't been fixed yet. |
Beta Was this translation helpful? Give feedback.
-
I use Zed Dev 0.160.0 and no matter what i define in tasks.json it runs everything with "powershell -C" thus none of the tasks work, not even the example task. This would be better as an issue i think. |
Beta Was this translation helpful? Give feedback.
-
Actually I have just cloned the latest version of the source code and built it locally. It would appear that they have already fixed the issue!!! 😃 If powershell does not work in the current built release I am sure it will work soon, in an upcoming one. |
Beta Was this translation helpful? Give feedback.
Actually I have just cloned the latest version of the source code and built it locally. It would appear that they have already fixed the issue!!! 😃 If powershell does not work in the current built release I am sure it will work soon, in an upcoming one.