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

Editor or Editor Extension #1415

Closed
xiongshi08 opened this issue Jul 9, 2016 · 4 comments
Closed

Editor or Editor Extension #1415

xiongshi08 opened this issue Jul 9, 2016 · 4 comments
Labels
Milestone

Comments

@xiongshi08
Copy link

2016/07/09 05:35:03.254
Error
Editor or Editor Extension
System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Microsoft.PythonTools.Extensions.GetAnalyzer(ITextBuffer buffer, IServiceProvider serviceProvider) 在 Microsoft.PythonTools.PythonClassifier..ctor(PythonClassifierProvider provider, ITextBuffer buffer) 在 Microsoft.PythonTools.PythonClassifierProvider.GetClassifier(ITextBuffer buffer) 在 Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTaggerProvider.<>c__DisplayClass12_01.&lt;CreateTagger&gt;b__0(IClassifierProvider provider)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InvokeEligibleFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable1 lazyFactories, Func2 getter, IContentType dataContentType, IContentTypeRegistryService contentTypeRegistryService, Object errorSource)</description> </entry> <entry> <record>470</record> <time>2016/07/09 05:35:03.285</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.NullReferenceException: &#x672A;&#x5C06;&#x5BF9;&#x8C61;&#x5F15;&#x7528;&#x8BBE;&#x7F6E;&#x5230;&#x5BF9;&#x8C61;&#x7684;&#x5B9E;&#x4F8B;&#x3002;&#x000D;&#x000A; &#x5728; Microsoft.PythonTools.OutliningTaggerProvider.OutliningTagger..ctor(PythonToolsService pyService, ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.PythonTools.OutliningTaggerProvider.CreateTagger[T](ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator1.GatherTaggers(ITextBuffer textBuffer)


471
2016/07/09 05:35:03.332
Error
Editor or Editor Extension
System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Microsoft.PythonTools.Extensions.GetAnalyzer(ITextBuffer buffer, IServiceProvider serviceProvider) 在 Microsoft.PythonTools.Extensions.GetAnalyzer(ITextView textView, IServiceProvider serviceProvider) 在 Microsoft.PythonTools.Intellisense.IntellisenseControllerProvider.TryCreateIntellisenseController(ITextView textView, IList1 subjectBuffers)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseManagerConnectionListener.&lt;&gt;c__DisplayClass8_1.&lt;SubjectBuffersConnected&gt;b__1(IIntellisenseControllerProvider provider)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy2 provider, Func2 getter)</description> </entry> <entry> <record>472</record> <time>2016/07/09 05:35:04.676</time> <type>Information</type> <source>VisualStudio</source> <description>PERF: Shell start. 10240 ms</description> </entry> <entry> <record>473</record> <time>2016/07/09 05:35:04.973</time> <type>Information</type> <source>VSPackage</source> <description>Should automatically check for an update</description> </entry> <entry> <record>474</record> <time>2016/07/09 05:35:04.973</time> <type>Information</type> <source>VSPackage</source> <description>Next update check in &apos;83796382&apos; ms </description> </entry> <entry> <record>475</record> <time>2016/07/09 05:35:04.989</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.NullReferenceException: &#x672A;&#x5C06;&#x5BF9;&#x8C61;&#x5F15;&#x7528;&#x8BBE;&#x7F6E;&#x5230;&#x5BF9;&#x8C61;&#x7684;&#x5B9E;&#x4F8B;&#x3002;&#x000D;&#x000A; &#x5728; Microsoft.PythonTools.Extensions.GetAnalyzer(ITextBuffer buffer, IServiceProvider serviceProvider)&#x000D;&#x000A; &#x5728; Microsoft.PythonTools.PythonClassifier..ctor(PythonClassifierProvider provider, ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.PythonTools.PythonClassifierProvider.GetClassifier(ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTaggerProvider.&lt;&gt;c__DisplayClass12_01.<CreateTagger>b__0(IClassifierProvider provider) 在 Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InvokeEligibleFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable1 lazyFactories, Func2 getter, IContentType dataContentType, IContentTypeRegistryService contentTypeRegistryService, Object errorSource)

@xiongshi08
Copy link
Author

This error will occur as long as you open the project that did not close the PYTHON file.

@zooba zooba modified the milestone: 2.2.5 Jul 14, 2016
@zooba
Copy link
Member

zooba commented Jul 18, 2016

Like #1411, this is also because we're now loading our package later and so our service is not available this early.

zooba added a commit to zooba/PTVS that referenced this issue Jul 18, 2016
@xiongshi08
Copy link
Author

Trouble to release the new version, I do not compile the environment, thank you!

@zooba
Copy link
Member

zooba commented Jul 28, 2016

The fix has been merged and will be released as part of our next update.

@zooba zooba closed this as completed Jul 28, 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

2 participants