Closed XtroTheArctic closed 3 weeks ago
Github formatted my post in a weird way. I didn't apply any formatting. It was a pure wall of text. FYI.
Is it possible that you updated some Metalama packages, but not all of them, or something like that? Can you share your csproj?
Thanks.
Hello.
There is only one package reference in this project. The source code is here: https://bitbucket.org/XtroTheArctic/atesh.metalama/src/develop/
Gael and Daniel Balas still have access. If you tell me your email address, I can give you access too.
I can access the repo, it seems it's public. But I can't reproduce the issue.
Does the error show up when you build the project? Or does build succeed, but the error only shows in the Visual Studio error window?
Oh yea. That repo is open-source. I forgot.
The error is only in the error window. The build works fine but I didn't trust it because the error clearly says "It will not contribute to the output".
The error shows up as soon as I update the Metalama package.
Can you not repro?
Is there a cache folder I need to clean or something?
The error is only in the error window. The build works fine but I didn't trust it because the error clearly says "It will not contribute to the output".
This problem only happens inside Visual Studio, and since build is mostly independent, it shouldn't be affected. So there's no reason not to trust it.
Can you not repro?
I can't repro, so I'm going to need more information from you, but it's going to be a bit involved, see below.
Is there a cache folder I need to clean or something?
I don't think so. Right now I can't think how that would help.
So, the problem is related to assembly loading in the ServiceHub.RoslynCodeAnalysisService process, which means to get more information you need to do the following:
dotnet-trace
tool by executing dotnet tool install --global dotnet-trace
on the command line.dotnet-trace collect --providers Microsoft-Windows-DotNETRuntime:4 --process-id <pid>
, replace <pid>
by the PID you found in the previous step and let the command run. (Here's more information in case you're curious.)dotnet-trace
by pressing Enter or Ctrl+C..nettrace
file.Thanks.
Thanks.
Based on that trace, it seems we have introduced a compatibility issue with older versions of VS in Metalama 2024.0.13 and 2024.1.19.
What version of VS are you using?
We will be working on a fix, but in the meantime, using Metalama 2024.1.18 or upgrading to VS 17.10 should work around the issue.
Oh, I see. My VS is 17.8.1.
I'll upgrade it and try soon. Thank you.
The error and the warnings are gone with the latest VS version. Thank you.
The bug has been fixed in Metalama 2024.0.16 and 2024.1.22, and will be fixed in the next version of 2024.2 soon.
The error is new after the upgrade. I'm not sure about the warnings. They may have been there before the upgrade but I don't remember seeing them last time I made a change in my project many months ago. I would have reported them if I had seen.
Also, I can't find the location of the Metalama log file so I can't attach it here. Sorry.