You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated from 0.17.4 to 0.18.3 and run into issue. I have services and handlers which have ILanguageServer type of constructor arguments. But now I get error at start-up:
code: Error.UnableToResolveFromRegisteredServices;
message: Unable to resolve Resolution root ......TextDocumentSyncHandler
from container without scope
with Rules with................
I suspect it is the dependency injection thing. Breakpoints at constructors were not reached. I did some searching in the git log to find what changed, but I'm bit lost here. How could I fix it?
Maybe I was doing it some ugly way before and that way is shut now?
If so then I don't know how to call PublishDiagnosticsExtensions.PublishDiagnostics without having ILanguageServer reference available.
Way to reproduce: open SampleServer project, modify TextDocumentHandler constructor:
publicTextDocumentHandler(ILogger<TextDocumentHandler> logger,Foo foo,ILanguageServerConfiguration configuration,ILanguageServer server)// Addition{server.Window.LogInfo("Hello");// Not reached_logger=logger;_configuration=configuration;foo.SayFoo();}
Exception thrown in netstandard2.0\Dryloc\container.cs function It:
DryIoc.ContainerException: 'code: Error.UnableToResolveFromRegisteredServices;
message: Unable to resolve Resolution root TextDocumentHandler
from container without scope
with Rules with {TrackingDisposableTransients, ResolveIEnumerableAsLazyEnumerable, UseDynamicRegistrationsAsFallbackOnly, SelectLastRegisteredFactory} and without {ThrowOnRegisteringDisposableTransient, VariantGenericTypesInResolvedCollection}
with DefaultReuse=Scoped {Lifespan=100}
with FactorySelector=SelectLastRegisteredFactory
with Made={FactoryMethod=ConstructorWithResolvableArgumentsIncludingNonPublic}
with normal and dynamic registrations:
(DefaultDynamicKey(0), {FactoryID=151, ImplType=TextDocumentHandler, Reuse=TransientReuse, HasCondition})'
The text was updated successfully, but these errors were encountered:
I updated from 0.17.4 to 0.18.3 and run into issue. I have services and handlers which have ILanguageServer type of constructor arguments. But now I get error at start-up:
I suspect it is the dependency injection thing. Breakpoints at constructors were not reached. I did some searching in the git log to find what changed, but I'm bit lost here. How could I fix it?
Maybe I was doing it some ugly way before and that way is shut now?
If so then I don't know how to call PublishDiagnosticsExtensions.PublishDiagnostics without having ILanguageServer reference available.
Way to reproduce: open SampleServer project, modify TextDocumentHandler constructor:
Exception thrown in netstandard2.0\Dryloc\container.cs function It:
The text was updated successfully, but these errors were encountered: