-
Notifications
You must be signed in to change notification settings - Fork 304
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
Github job fails with Fable for OSX runners #4014
Comments
I am also able to compile it on my Mac locally, not sure what is wrong on Github CI. Does previous version of Fable works? I also noted in the CI log that it says it installed version 9.0.102 of .NET but then it mention 9.0.101, can you please try to force the a specific version of .NET instead of |
Problems don't seems related to your project and seems to happens with previous version of Fable too. I have a similar error on this repo https://github.com/thoth-org/Thoth.Json/actions/runs/12873451418/job/35891008876 where I am using Fable 4.24.0. Seems like there is something wrong in Mac OS CI on Github... |
I reported an issue on Github Images repo as I don't know how to debug this problem. On my repo previous CI run worked fine and now the same version of Fable and .NET fails with the same error as yours. |
@halcwb According to the Github teams using I am trying to check if they can continue to investigate or why |
@MangelMaxime 👍 |
Tremendous shot in the dark but maybe you ran into a problem with project cracking in
I recently added nojaf/vite-plugin-fable@8d9a6ee to avoid the NU1605 warning. It looks like the JSON parsing of the msbuild output doesn't work because of a warning.
Makes me suspect the output there was something like:
Could you try with the build analyzer project cracking? |
This could definitely makes sense indeed, but I wonder why we don't see it when running on others CI or my machine locally. If this is the case, I think adding a
You mean the legacy resolver tool ? Will do. |
CI is green for me when using BuildAlyzer for cracking the project |
After looking at the log from Thoth.Json CI again, I found out that the JSON that we fail to parse comes from (line 82): Fable/src/Fable.Compiler/MSBuildCrackerResolver.fs Lines 75 to 83 in 58d32ae
I tried to reproduce the issue by making Thoth.Json CI run I will give it some more try, and if I am stuck I think I will release a version of Fable with |
They don't seems to use the exact same images as Github CI, which prevent us from reproducing the issue unfortunately. |
Yeah, I think it is a very specific version of the dotnet SDK which gives slightly different nuget restore behavior. In my case F# Core was degraded during restore and that prompt a warning. |
Ok so it seems like the problem is not coming from a MSBuild warning but because of
Looking further it appears that we get
I believe this is because However, The reason why didn't have this issue in the past is probably because people using From here it shows potential trouble I believe:
|
It seems like there is
I am giving it a try in Thoth.Json CI to see if this solves the issue. |
It is running from the user folder:
It won't be possible for to install. |
You are right, I was focused on:
Which don't seems to be used outside of logging, I will update |
Fable 5.0.0-alpha.7 should fix this issue. Github CI is working for me with this version for Thoth.Json. Thanks all for the help, feel free to re-open the issue if needed. |
Build fails using the new Fable compiler but only when running as a github job, with the following stack trace:
See: https://github.com/halcwb/PICEDashboard/actions/runs/12815301082.
But the job on Ubuntu passses! Also on my local macbook pro I have no problem?
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.3068a692
MSBuild version: 17.12.12+1cce77968
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.6
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/9.0.101/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: arm64
Commit: 9d5a6a9aa4
.NET SDKs installed:
6.0.415 [/usr/local/share/dotnet/sdk]
7.0.402 [/usr/local/share/dotnet/sdk]
8.0.100 [/usr/local/share/dotnet/sdk]
9.0.100 [/usr/local/share/dotnet/sdk]
9.0.101 [/usr/local/share/dotnet/sdk]
The text was updated successfully, but these errors were encountered: