dotnet / dotnet/fsharp

Exceptions aren't handled in UnusedOpens

Open
#4,664 3 comments 0 reactions 0 assignees View on GitHub
Area-LangService-UnusedOpens Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

```
One or more errors occurred. The exception has been reported.
This internal exception should now be caught at an error recovery point on the stack. Original message:
A namespace and a module named 'JetBrains.ReSharper.Plugins.FSharp.Daemon.Stages' both occur in two parts of this assembly)

--- EXCEPTION #1/3 [ReportedError]
ExceptionPath.1 = Root.InnerException.InnerException
ExceptionPath.2 = Root.InnerException.InnerExceptions.#0
ClassName = Microsoft.FSharp.Compiler.ErrorLogger+ReportedError
HResult = COR_E_EXCEPTION=80131500
Source = FSharp.Compiler.Service
StackTraceString = “
at Microsoft.FSharp.Compiler.ErrorLogger.ErrorLoggerExtensions.ErrorLogger.Error[b](ErrorLogger x, Exception exn)
at Microsoft.FSharp.Compiler.ErrorLogger.error[a](Exception exn)
at Microsoft.FSharp.Compiler.Tast.CombineModuleOrNamespaceTypes@5207.Invoke(FSharpList`1 path, range m, ModuleOrNamespaceType mty1, ModuleOrNamespaceType mty2)
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.FSharp.Compiler.Tast.Entity.get_IsNamespace()
at Microsoft.FSharp.Compiler.SourceCodeServices.UnusedOpens.newlyUsedOpenedGroups@108-2.Invoke(FSharpSymbolUse symbolUse)
at Microsoft.FSharp.Collections.ArrayModule.Exists[T](FSharpFunc`2 predicate, T[] array)
at Microsoft.FSharp.Primitives.Basics.List.exists[T](FSharpFunc`2 predicate, FSharpList`1 xs1)
at Microsoft.FSharp.Primitives.Basics.List.filter[T](FSharpFunc`2 predicate, FSharpList`1 l)
at Microsoft.FSharp.Compiler.SourceCodeServices.UnusedOpens.getUsedModules(FSharpSymbolUse[] symbolUses, FSharpList`1 usedModules, OpenStatement openStatement)
at Microsoft.FSharp.Compiler.SourceCodeServices.UnusedOpens.filterOpenStatementsIncremental@137.Invoke(Unit unitVar)
at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@522.Invoke(AsyncParams`1 args)

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.