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

Latest CSharpier extension fails to load in Visual Studio 2022 #1407

Closed
polewskm opened this issue Dec 18, 2024 · 1 comment · Fixed by #1410
Closed

Latest CSharpier extension fails to load in Visual Studio 2022 #1407

polewskm opened this issue Dec 18, 2024 · 1 comment · Fixed by #1410

Comments

@polewskm
Copy link

Environments

  • IDE Version: Visual Studio Professional 2022 v17.12.3
  • Extension Version: 1.9.0
  • CSharpier Version: 0.30.3
  • Operating System: 22H2 (OS Build 19045.5247)
  • .csharpierrc Settings: None
  • .editorconfig Settings: None

Log Output

  • Log file: C:/Users/marcinp/AppData/Roaming/Microsoft/VisualStudio/17.0_85c1477a/ActivityLog.xml
  • Contents:
SetSite failed for package [CSharpierPackage]Source: 'System' Description: Value cannot be null.
Parameter name: path
System.ArgumentNullException: Value cannot be null.
Parameter name: path
   at System.IO.FileSystemWatcher..ctor(String path, String filter)
   at CSharpier.VisualStudio.CSharpierOptions.<InitializeHotReloadWatcherAsync>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CSharpier.VisualStudio.CSharpierOptions.<CreateAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at CSharpier.VisualStudio.CSharpierOptions.get_Instance()
   at CSharpier.VisualStudio.CustomPathInstaller..ctor(CSharpierPackage package)
   at CSharpier.VisualStudio.CustomPathInstaller.GetInstance(CSharpierPackage package)
   at CSharpier.VisualStudio.CSharpierProcessProvider..ctor(CSharpierPackage package)
   at CSharpier.VisualStudio.CSharpierProcessProvider.GetInstance(CSharpierPackage package)
   at CSharpier.VisualStudio.CSharpierPackage.Dispose(Boolean disposing)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.Close()

Steps to reproduce

  1. Install Visual Studio 2022 Professional
  2. Install CSharpier extension
  3. Start Visual Studio without opening a solution/project
  4. Goto Tools | Options | CSharpier

Expected behavior
No error popup.

Actual behavior
image

@belav
Copy link
Owner

belav commented Dec 20, 2024

I pushed out a fix for this in version 1.9.1 of the extension, thanks for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants