Skip to content
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

CSharpVirtualCharService throwing various asserts #29451

Closed
jasonmalinowski opened this issue Aug 23, 2018 · 9 comments
Closed

CSharpVirtualCharService throwing various asserts #29451

jasonmalinowski opened this issue Aug 23, 2018 · 9 comments
Assignees
Milestone

Comments

@jasonmalinowski
Copy link
Member

jasonmalinowski commented Aug 23, 2018

Steps to Reproduce:

  1. Create a new C# console project.
  2. Type #line 1 "A\B"

Expected Behavior: No asserts

Actual Behavior: Asserts

@jasonmalinowski
Copy link
Member Author

FYI to @CyrusNajmabadi been seeing a bunch of asserts here. Entirely unable to figure out a consistent repro though...

@jasonmalinowski
Copy link
Member Author

Ah, worked out one scenario. Bug updated. 😄

@CyrusNajmabadi
Copy link
Member

oh wacky. looking now!

@CyrusNajmabadi
Copy link
Member

Hrmm. @jasonmalinowski @sharwell I'm having trouble debugging roslyn. I upgraded to 15.9p1 today. I have the latest roslyn, which i built fully. But when i try to debug i get this:

part "Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.SemanticClassificationTaggerProvider". ---> System.MissingMethodException: Method not found: 'Void Microsoft.CodeAnalysis.Editor.Tagging.AsynchronousViewTaggerProvider`1..ctor(Microsoft.CodeAnalysis.Shared.TestHooks.IAsynchronousOperationListener, Microsoft.CodeAnalysis.Editor.IForegroundNotificationService)'.
   at Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.AbstractAsyncClassificationTaggerProvider..ctor(TaskHandler taskHandler, IForegroundNotificationService notificationService, IAsynchronousOperationListenerProvider asyncListenerProvider, JoinableTaskContext joinableTaskContext)
   at Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.SemanticClassificationTaggerProvider..ctor(TaskHandler taskHandler, IForegroundNotificationService notificationService, ISemanticChangeNotificationService semanticChangeNotificationService, TypeScriptSemanticClassificationMap classificationMap, FileContentTypeService fileContentTypeService, IAsynchronousOperationListenerProvider asyncListenerProvider, JoinableTaskContext joinableTaskContext)

Note that that's typescript dying. Is it possible we changed AsynchronousViewTaggerProvider in a way that breaks them?

@CyrusNajmabadi
Copy link
Member

I think this is caused by this PR: #28781

It added IThreadingContext to this type that is shared with TypeScript unfortunately :(

@jasonmalinowski
Copy link
Member Author

Yes, @JieCarolHu is already addressing that with the TypeScript team as we speak. That issue should only be constrained to TypeScript scenarios though.

@CyrusNajmabadi
Copy link
Member

Odd. I'm getting it even just opening a c# console app. That said, i'm removing TS/JS support from my VS since i don't really need it :)

@CyrusNajmabadi
Copy link
Member

Ok. So i've now learned something new about C#. You can have strings inside a pp-directive. And those strings do not have escape chars in them... wow.

@CyrusNajmabadi
Copy link
Member

Ah. I get why that is. These are intended to be filepaths. And it would have been really annoying to have to escape everything. Weird :)

@jinujoseph jinujoseph added Bug Area-IDE 4 - In Review A fix for the issue is submitted for review. labels Aug 23, 2018
@jinujoseph jinujoseph added this to the 16.0 milestone Aug 23, 2018
@gafter gafter removed 4 - In Review A fix for the issue is submitted for review. labels Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants