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

Process cannot access the file "....net8.0\any\server.log" while running multiple extensions. #1324

Closed
belav opened this issue Aug 18, 2024 · 1 comment · Fixed by #1329
Closed
Milestone

Comments

@belav
Copy link
Owner

belav commented Aug 18, 2024

I ran into this while vscode was running and I ran rider, it would probably happen with multiple windows of the same ide as well. It will only affect csharpier server, so disabling that option will allow users to bypass it.

java.lang.NumberFormatException: For input string: "Unhandled exception: System.IO.IOException: The process cannot access the file 'C:\Users\bela\AppData\Local\CSharpier\0.29.0.store\csharpier\0.29.0\csharpier\0.29.0\tools\net8.0\any\server.log' because it is being used by another process."

Need to figure out how to log from multiple instances of the process.

@belav belav added this to the 0.29.1 milestone Aug 18, 2024
@belav belav changed the title Unable to run CSharpier Server with vscode + rider at the same time Process cannot access the file "....net8.0\any\server.log" while running multiple extensions. Aug 18, 2024
@viceice
Copy link

viceice commented Aug 20, 2024

Seeing it too, having multiple vscode and visual studio projects open 🙃

belav added a commit that referenced this issue Aug 22, 2024
… them write to a file based on the port.

closes #1324
@belav belav closed this as completed in 10e0780 Aug 23, 2024
pisolofin pushed a commit to pisolofin/csharpier-editorconfig that referenced this issue Aug 24, 2024
… them write to a file based on the port. (belav#1329)

closes belav#1324

I wish I remembered what led me to this nreco package. Maybe because
serilog seemed overboard and I wanted something super lightweight.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants