nx-dotnet: [BUG] Current folder with spaces does not watch
Describe the bug On my local computer, the project I’m working on includes spaces on the folder, trying to run ‘nx serve api’ bugs out with the message:
watch : The project file ‘C:\Users\user\Documents\Projects\Team Workload\apps\api\C:\Users\user\Documents\Projects\Team’ does not exist…
I tried to solve the problem locally and the solution is easy, on DotNetClient.run just convert the cmd variable to an array of parameters:
let cmd = watch ? [`watch`, `--project`, project, `run`] : [`run`, `--project`, project];
Do the proper changes to accumulate the function parameter ‘parameters’. And to print the message on the console just do a .join(' ')
To Reproduce Steps to reproduce the behavior:
- run ‘nx serve api’
Expected behavior The project API should be served as described in the documentation.
Environment:
- OS: used Windows but probably any OS
- Version: 1.8.0
- DotnetClient
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (18 by maintainers)
I can confirm this fixed the bug for us. Hella quick turnaround guys, keep it up !!!
CC @asinino I pushed some updates to your branch and went ahead and merged it. Going to cut a release soon to fix since its pretty urgent bug. Everything looks fine testing locally, and E2E passed.