failwyn / WebCompiler

Visual Studio extension for compiling LESS and Sass files
Other
77 stars 16 forks source link

The 'WebCompilerInitPackage" package did not load correctly. #62

Closed TJSpilman closed 1 year ago

TJSpilman commented 1 year ago

Installed product versions

Description

After updating to the latest version of Web Compiler 2022+ i get an error "The 'WebCompilerInitPackage" package did not load correctly. "when starting Visual Studio 2022.

When trying to compile I get another error: "There is an error in the compilerconfig.json" and a few seconds later VS2022 crashes.

Log from my VS:

SetSite failed for package [WebCompilerInitPackage]Source: 'WebCompilerVsix' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Threading, Version=17.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at WebCompilerVsix.WebCompilerInitPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. &#x

lomla commented 1 year ago

Hello, I got the same issue.

lockeStewart commented 1 year ago

Same issue here

Meijer-A commented 1 year ago

Hi same here. I just got the error

TJSpilman commented 1 year ago

Fixed issue by updating VS2022 to 17.4.2!

failwyn commented 1 year ago

I'm building a new release right now with the Microsoft.VisualStudio.* nuget packages downgraded to the lowest 17 version; previously the vsix was built using the pre release versions and I wanted to upgrade those, I just didn't realize that would make Visual Studio 2022 version 17.4 required; sorry for the bad release.

failwyn commented 1 year ago

1.14.9.2 is now available to fix this.

// sorry again

mucahitbugday commented 1 year ago

Is there an error in the javascript compiler?

visual sutudio version: 17.4.2 Package version: 1.14.9.2

failwyn commented 1 year ago

@mucahitbugday Not that I know of; if you are having an issue compiling something, just open a new issue and provide as many details as possible and I will look into it.