Skip to content
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

dotnet msbuild --getProperty:OutputPath sometimes hangs with no explanation #1349

Open
rmunn opened this issue Jan 7, 2025 · 1 comment
Open
Labels
🧑‍💻 DX Developer experience problem

Comments

@rmunn
Copy link
Contributor

rmunn commented Jan 7, 2025

This may only be happening to me, but it's still a problem I want to track down.

On my Linux computer, I sometimes find that dotnet msbuild --getProperty:OutputPath hangs with no explanation. It seems to happen most often after a reboot. This results in task up not working because the backend/Testing/Taskfile.yml uses that command to set its OUTPUT_PATH environment variable, the root Taskfile includes backend/Testing/Taskfile.yml, and task tries to set all environment variables at startup time before running any tasks. So even though task up in the root directory is never going to use the output of dotnet msbuild --getProperty:OutputPath, it gets run anyway, and when it hangs it prevents task up from completing.

I haven't managed to track down exactly what is making dotnet msbuild --getProperty:OutputPath hang, or what conditions make it stop hanging. And I suspect that this problem is happening only on Linux, otherwise someone else would have mentioned and/or fixed the issue by now. Once I track it down, I'll update this issue and/or create a PR with a fix.

@rmunn rmunn added the 🧑‍💻 DX Developer experience problem label Jan 7, 2025
@hahn-kev
Copy link
Collaborator

hahn-kev commented Jan 8, 2025

we could probably move OUTPUT_PATH to be a var specific to the tasks that depend on it, that should solve the annoyance, not sure why it would hang in the first place though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 DX Developer experience problem
Projects
None yet
Development

No branches or pull requests

2 participants