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

Unexpected error when created Blank Django Web Project. #6081

Closed
linette-zyy opened this issue Apr 8, 2020 · 2 comments
Closed

Unexpected error when created Blank Django Web Project. #6081

linette-zyy opened this issue Apr 8, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@linette-zyy
Copy link

Build information
image

Steps to Reproduce

  1. In VS, select File > New > Project, search for "Django", and select the Blank Django Web Project template.
  2. Enter the Name and location and click OK

Expected behavior
The Django project has been created successfully without any error.

**Actual behavior **
NotImplementedException has been encountered.
image

ActivityLog
ActivityLog.zip

@linette-zyy linette-zyy changed the title Unexpected error when created Django project. Unexpected error when created Blank Django Web Project. Apr 8, 2020
@bschnurr bschnurr self-assigned this Apr 8, 2020
@huguesv
Copy link
Contributor

huguesv commented Apr 8, 2020

It's the django template editor that is broken. This happens when you open one of the template files:

image

@huguesv
Copy link
Contributor

huguesv commented Apr 8, 2020


  | System.NotImplementedException: The method or operation is not implemented.   at 
Microsoft.WebTools.Languages.Html.Editor.ContainedLanguage.Host.HtmlContainedLanguageHost.SetContainedCommandTarget(ITextView textView, Object containedCommandTargetObject)   at 
Microsoft.PythonTools.Django.Intellisense.TemplateTextViewConnectionListener.OnTextViewConnected(ITextView textView, ITextBuffer textBuffer)   at 
Microsoft.WebTools.Languages.Shared.Editor.Controller.TextViewConnectionListener.SubjectBuffersConnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection`1 subjectBuffers)   at 
Microsoft.PythonTools.Django.Intellisense.TemplateTextViewConnectionListener.Microsoft.VisualStudio.Text.Editor.ITextViewConnectionListener.SubjectBuffersConnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection`1 subjectBuffers)   at 
Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.NonWpfListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection`1 subjectBuffers)   at 
Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.<>c__DisplayClass7_3.<.ctor>b__3()   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) --- End of stack trace from previous location where exception was thrown ---    at 
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
-- | --

@huguesv huguesv added this to the April 2020 milestone Apr 8, 2020
bschnurr added a commit to bschnurr/PTVS that referenced this issue Apr 8, 2020
…alStudio.Web.HTML.dll removing support for SetContainedCommandTarget

microsoft#6081
bschnurr added a commit that referenced this issue Apr 9, 2020
…alStudio.Web.HTML.dll removing support for SetContainedCommandTarget (#6085)

#6081
@bschnurr bschnurr closed this as completed Apr 9, 2020
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

3 participants