Skip to content

CLI not working on Linux #1649

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

Open
BenjaminBrienen opened this issue May 2, 2025 · 0 comments
Open

CLI not working on Linux #1649

BenjaminBrienen opened this issue May 2, 2025 · 0 comments

Comments

@BenjaminBrienen
Copy link
Contributor

BenjaminBrienen commented May 2, 2025

 techn0@IO  ~/source/AzureDevOps.WikiPdfExport   pr  dotnet clean

Build succeeded in 0,5s
 techn0@IO  ~/source/AzureDevOps.WikiPdfExport   pr ±  dotnet restore
Restore complete (0,4s)

Build succeeded in 0,4s
 techn0@IO  ~/source/AzureDevOps.WikiPdfExport   pr ±  dotnet build
Restore complete (0,6s)
  AzureDevOps.WikiPDFExport succeeded (2,2s) → AzureDevOps.WikiPDFExport/bin/Debug/net9.0/AzureDevOps.WikiPDFExport.dll
  AzureDevOps.WikiPDFExport.Test succeeded (0,6s) → AzureDevOps.WikiPDFExport.Test/bin/Debug/net9.0/AzureDevOps.WikiPDFExport.Test.dll

Build succeeded in 3,5s
 techn0@IO  ~/source/AzureDevOps.WikiPdfExport   pr ±  roslynator analyze
Loading solution '/home/techn0/source/AzureDevOps.WikiPdfExport/AzureDevOps.WikiPdfExport.sln'...
Analyze solution '/home/techn0/source/AzureDevOps.WikiPdfExport/AzureDevOps.WikiPdfExport.sln'
Analyze 'AzureDevOps.WikiPDFExport' 1/2
System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Composition.AttributedModel, Version=9.0.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
)
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Composition.AttributedModel, Version=9.0.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

File name: 'System.Composition.AttributedModel, Version=9.0.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit)
   at Roslynator.AnalyzerAssembly.Load(Assembly analyzerAssembly, Boolean loadAnalyzers, Boolean loadFixers, String language) in /_/src/Workspaces.Core/AnalyzerAssembly.cs:line 129
   at Roslynator.AnalyzerLoader.GetAnalyzersAndFixers(Project project, Boolean loadFixers) in /_/src/Workspaces.Core/AnalyzerLoader.cs:line 112
   at Roslynator.AnalyzerLoader.GetAnalyzers(Project project) in /_/src/Workspaces.Core/AnalyzerLoader.cs:line 55
   at Roslynator.Diagnostics.CodeAnalyzer.AnalyzeProjectCoreAsync(Project project, CancellationToken cancellationToken) in /_/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs:line 124
   at Roslynator.Diagnostics.CodeAnalyzer.AnalyzeSolutionAsync(Solution solution, Func`2 predicate, CancellationToken cancellationToken) in /_/src/Workspaces.Core/Diagnostics/CodeAnalyzer.cs:line 71
   at Roslynator.CommandLine.AnalyzeCommand.ExecuteAsync(ProjectOrSolution projectOrSolution, CancellationToken cancellationToken) in /_/src/CommandLine/Commands/AnalyzeCommand.cs:line 80
   at Roslynator.CommandLine.MSBuildWorkspaceCommand`1.ExecuteAsync(String path, MSBuildWorkspace workspace, CancellationToken cancellationToken) in /_/src/CommandLine/Commands/MSBuildWorkspaceCommand.cs:line 164
   at Roslynator.CommandLine.MSBuildWorkspaceCommand`1.ExecuteAsync(IEnumerable`1 paths, String msbuildPath, IEnumerable`1 properties) in /_/src/CommandLine/Commands/MSBuildWorkspaceCommand.cs:line 89
   at Roslynator.CommandLine.Program.AnalyzeAsync(AnalyzeCommandLineOptions options) in /_/src/CommandLine/Program.cs:line 343
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Roslynator.CommandLine.Program.<>c.<Main>b__0_3(MSBuildCommandLineOptions options) in /_/src/CommandLine/Program.cs:line 175
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 notParsedFunc)
   at Roslynator.CommandLine.Program.Main(String[] args) in /_/src/CommandLine/Program.cs:line 169
 ✘ techn0@IO  ~/source/AzureDevOps.WikiPdfExport   pr ±  dotnet --list-sdks
9.0.203 [/home/techn0/.dotnet/sdk]

This is with a fresh install of dotnet using ./dotnet-install.sh --channel 9.0.

Maybe related to #1060 ?

Pop!_OS 22.04

Maybe reproduce it for yourself on this? BenjaminBrienen/AzureDevOps.WikiPDFExport#2
It is working in CI but not on my local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant