madskristensen / CssTools

A Visual Studio extension
Other
21 stars 5 forks source link

Exception on Visual Studio 2017 4.7.02556 start #13

Closed BrotherErryn closed 6 years ago

BrotherErryn commented 6 years ago

Installed product versions

Description

Error when starting Visual Studio as of most recent VS update. Warning about ActivityLog.xml. One error in the log:

System.NullReferenceException: Object reference not set to an instance of an object. at CssTools.CssExtensions.GetDeclarations(RuleBlock rule) in C:\projects\csstools\src\ExtensionMethods\CssExtensions.cs:line 45 at CssTools.VendorClassifier.UpdateDeclarationCache(ParseItem item) in C:\projects\csstools\src\Classify\VendorClassifier.cs:line 116 at CssTools.VendorClassifier..ctor(IClassificationTypeRegistryService registry, ITextBuffer buffer) in C:\projects\csstools\src\Classify\VendorClassifier.cs:line 59 at CssTools.VendorClassifierProvider.<>cDisplayClass4_0.b0() in C:\projects\csstools\src\Classify\VendorClassifier.cs:line 37 at Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator) at CssTools.VendorClassifierProvider.GetClassifier(ITextBuffer textBuffer) in C:\projects\csstools\src\Classify\VendorClassifier.cs:line 37 at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTaggerProvider.<>cDisplayClass12_0`1.b0(IClassifierProvider provider) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InvokeEligibleFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable1 lazyFactories, Func2 getter, IContentType dataContentType, IContentTypeRegistryService contentTypeRegistryService, Object errorSource)

Steps to recreate

  1. Launch VS 4.7.02556 with this plugin installed

Current behavior

Error message, but so far it seems to at least be partially working anyway.

Expected behavior

No error message?

BrotherErryn commented 6 years ago

Didn't catch the other bug, closing this as a dupe.