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

System.MissingMethodException in Django #1014

Closed
aewhatley opened this issue Dec 4, 2015 · 5 comments
Closed

System.MissingMethodException in Django #1014

aewhatley opened this issue Dec 4, 2015 · 5 comments
Labels

Comments

@aewhatley
Copy link

I got the following error message after opening up a Django project after upgrading to Visual Studio 2015 Upgrade 1:

System.MissingMethodException: Method not found: 'Microsoft.VisualStudio.Text.Editor.ITextView Microsoft.Html.Editor.Document.HtmlEditorDocument.get_PrimaryView()'. at Microsoft.PythonTools.Django.TemplateParsing.TemplateClassifier.GetClassificationSpans(SnapshotSpan span) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__5.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__38.MoveNext()

@zooba
Copy link
Member

zooba commented Dec 4, 2015

Thanks for this. It appears someone made a breaking change they shouldn't have in an update. I'm investigating now, but I'm not aware of any workaround just yet.

@zooba
Copy link
Member

zooba commented Dec 5, 2015

The change is in the HTML editor - they removed that property late during Update 1 and we didn't notice in time.

Currently discussing with that team whether they'll fix their public API or maybe we'll do another PTVS release to fix this. Still no workaround, but it should only affect syntax highlighting.

@GaelGirodon
Copy link

Same problem here, I can't use Django Template Editing on Visual Studio 2015 Update 1 with PTVS 2.2. When I try to open some html file in a Django Project, multiple exceptions are thrown (same as @aewhatley 's one) and I can't get syntax highlighting and Intellisense in templates. The issue seems to be only linked to templates. Please, let us know when you'll have a workaround! Thanks.

@mhogg
Copy link

mhogg commented Feb 2, 2016

Any progress on this? I am getting the same error message

@zooba
Copy link
Member

zooba commented Feb 3, 2016

It's fixed in our latest dev builds, and will be in our next release.

@zooba zooba closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants