ashmind / mirrorsharp

MirrorSharp is a code editor <textarea> built on Roslyn and CodeMirror
BSD 2-Clause "Simplified" License
220 stars 39 forks source link

Latest roslyn analyzers (version 4.10) give an exception #224

Closed Sicos1977 closed 1 week ago

Sicos1977 commented 4 months ago

Exception information: Exception type: ReflectionTypeLoadException Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeAssembly.get_DefinedTypes() at System.Linq.Enumerable.d172.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable`1 types, AttributedModelProvider attributeContext) at System.Composition.Hosting.ContainerConfiguration.CreateContainer() at MirrorSharp.Internal.Roslyn.RoslynLanguageBase..ctor(String name, String featuresAssemblyName, String workspacesAssemblyName, IRoslynLanguageOptions options) at MirrorSharp.MirrorSharpOptions.<.ctor>b3_0() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value() at MirrorSharp.Internal.LanguageManager.GetLanguage(String name) at MirrorSharp.Internal.MiddlewareBase.StartWorkSession() at MirrorSharp.Internal.MiddlewareBase.d10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MirrorSharp.Owin.Internal.Middleware.<b2_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Host.SystemWeb.OwinCallContext.d79.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.WebSocketPipeline.d9.MoveNext()

Sicos1977 commented 2 months ago

Same issue with the 4.11 version... could you please make an updated nuget package?

Sicos1977 commented 2 weeks ago

?????

Sicos1977 commented 2 weeks ago

As long as there is no new nuget package and you want to use Roslyn 4.10 or 4.11 --> https://github.com/Sicos1977/mirrorsharp

You need to compile it yourself.

ashmind commented 1 week ago

Thanks for reporting (and the PR) -- fixed in 3.0.10 (just published)