-
Notifications
You must be signed in to change notification settings - Fork 50
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
WebSharper 6.1.7.476: wsfsc hanging with dotnet 9 on linux #1418
Comments
Hey, so after some testing there is an issue on non-windows environments with the Booster process used by the build. To work around this, you can try using |
Hello, thank you for your answer! Adding But seems to introduce new errors when building a solution on linux with dotnet 9 (CI/CD pipeline). Wsfsc.sh returns Error 134 or Error 135 for several projects. The Errors look as follows (project names replaced with "xxx")
Local build on Windows (dotnet 9) still works fine. Could these errors be caused by the workaround? |
@mawifr Can you give some details of these projects? What WebSharper project type they are using and what dependencies are we working with? |
@Jooseppi12 The problem seems to be CI/CD related. Local build with docker image Thank you for your support! |
Closer investigation of the pipeline showed, that the errors only occur during I tried publish in docker with image Next, I took a closer look at project references and removed an unneeded reference to a Utils project. (the only change in a commit) I think publish (with active project reference) worked fine with WebSharper 6.1.7.474 and dotnet 8 on linux. But not sure about that. As BinaryFormatter was deprecated(throwing) from dotnet8 sdk, I cannot test that anymore. As build and publish on windows always worked fine, even before removal of the reference, the problem is maybe related to project references during javascript transpilation on linux? Anyways, I'm satisfied that the pipeline is working again. I was not able to set up a working minimal example yet. I'll get back to you if the problem reoccurs. |
That's quite interesting! I feel like it won't be actually a problem with the javascript transpilation, otherwise you should see that in the dotnet build as well. It would be interesting to check the detailed level logs and see what is passed in to wsfsc, when you have that Utils project in the references and when it's not there. |
dotnet build
when using dotnet 9 with WebSharper 6.1.7.476 on Linux does not work.dotnet build
hangs at following WebSharper Task, never returns:Task "WebSharperTask" /root/.nuget/packages/websharper.fsharp/6.1.7.476/build//../tools/net6.0/linux-x64/wsfsc.sh "@/tmp/tmp9lGRwi.tmp"
Downgrade to WebSharper 6.1.7.474 is no possible workaround due to #1414
Minimal example (adapted websharper template), built with
dotnet build -tl:off -v detailed
https://github.com/mawifr/WsfcHangingMinimalExample
The text was updated successfully, but these errors were encountered: