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

Extension crashes after changing a solution configuration #49

Open
neversleeping opened this issue Jul 9, 2023 · 1 comment
Open

Extension crashes after changing a solution configuration #49

neversleeping opened this issue Jul 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@neversleeping
Copy link

neversleeping commented Jul 9, 2023

I'm using VS2022. Extension version: 1.8.4. When I'm opening a solution extension crashes with error in ActivityLog:

SetSite failed for package [CompileScorePackage]Source: 'Microsoft.VisualStudio.Text.Data' Description: Specified argument was out of the range of valid values. Parameter name: length System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: length at Microsoft.VisualStudio.Text.Span..ctor(Int32 start, Int32 length) at CompileScore.ScoreGlyphTagger.RefreshTags() at CompileScore.Notify.Invoke() at CompileScore.CompilerData.TryNotifyDataChanged() at CompileScore.CompilerData.OnSolutionSettingsChanged() at CompileScore.CompilerData.OnEditorModeChanged() at CompileScore.Notify.Invoke() at CompileScore.EditorContext.SetMode(EditorMode input) at CompileScore.EditorContext.CheckAlreadyOpenedContext() at CompileScore.CompileScorePackage.<InitializeAsync>d__3.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.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)

At first, I thought that I was due to deleting a platform but crash acts very strangely and now I have no idea why can it be. I'm creating a new empty solution - it works. But when I'm starting to add file or change number of configurations/platforms, it can start crashing.

@neversleeping neversleeping changed the title Extension crashes in solution with 1 platform Extension crashes after changing a solution configuration Jul 9, 2023
@Viladoman
Copy link
Owner

Oh wow! It looks like there is something odd going on with the Visual studio glyph tagger refreshing its tags. I will have a look and see if I can reproduce it myself following the same steps.

Does it crash when adding the new file? or after adding the new file and then closing and starting again Visual Studio?

As a temporary fix, does it still happen if you disable all the in-text helpers from CompileScore?

Tools->Options --> Compile Score -> Display -> Text Highlight ----- Disabled

@Viladoman Viladoman added the bug Something isn't working label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants