question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Large designer files crash converter (within VS) during formatting

See original GitHub issue

Steps to reproduce

  1. convert solution
  2. crash in phase 1 of 2 converting forms

Error message shown

  • Office\COGuiCommon\IdentArtikel\IdentArtikelForm.Designer.vb - conversion started
  • Office\COGuiCommon\Tourenplan\TourenplanForm.Designer.vb - conversion succeeded
  • Office\COGuiCommon\Vertraege\VertragsMaschinenHinzufuegen\VertragsMaschinenHinzufuegenForm.Designer.vb - conversion started

Error while formatting and converting comments: System.InvalidOperationException: Exception of type ‘System.InvalidOperationException’ was thrown.

Error while formatting and converting comments: System.InvalidOperationException: Exception of type ‘System.InvalidOperationException’ was thrown. at System.Runtime.CompilerServices.ConditionalWeakTable2.VerifyIntegrity() at System.Runtime.CompilerServices.ConditionalWeakTable2.TryGetValue(TKey key, TValue& value) at Microsoft.CodeAnalysis.GreenNode.GetAnnotations() at Microsoft.CodeAnalysis.GreenNode.HasAnnotation(SyntaxAnnotation annotation) at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.Analyzer.AnalyzeWhitespacesInTrivia(SyntaxTrivia trivia, AnalysisResult& result) at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.Analyzer.Analyze(SyntaxTriviaList list, AnalysisResult& result) at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.Analyzer.Leading(SyntaxToken token) at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.CreateLeadingTrivia(SyntaxToken token) at Microsoft.CodeAnalysis.Formatting.TokenStream.GetOriginalTriviaData(TokenData token1, TokenData token2) at Microsoft.CodeAnalysis.Formatting.TokenStream.GetColumn(TokenData tokenData, Func3 triviaDataGetter) at Microsoft.CodeAnalysis.Formatting.FormattingContext.AddAnchorIndentationOperation(AnchorIndentationOperation operation) at Roslyn.Utilities.EnumerableExtensions.Do[T](IEnumerable1 source, Action1 action) at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.Format(CancellationToken cancellationToken) at Microsoft.CodeAnalysis.CSharp.Formatting.CSharpSyntaxFormattingService.Format(SyntaxNode node, AnalyzerConfigOptions options, IEnumerable1 formattingRules, SyntaxToken token1, SyntaxToken token2, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Formatting.AbstractSyntaxFormattingService.FormatIndividually(SyntaxNode node, AnalyzerConfigOptions options, IEnumerable1 rules, IList1 spansToFormat, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Formatting.AbstractSyntaxFormattingService.Format(SyntaxNode node, IEnumerable1 spans, Boolean shouldUseFormattingSpanCollapse, AnalyzerConfigOptions options, IEnumerable1 rules, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Formatting.Formatter.GetFormattingResult(SyntaxNode node, IEnumerable1 spans, Workspace workspace, OptionSet options, IEnumerable1 rules, CancellationToken cancellationToken) at ICSharpCode.CodeConverter.Shared.OptionalOperations.Format(SyntaxNode node, Document document) at ICSharpCode.CodeConverter.Shared.OptionalOperations.MapSourceTriviaToTargetHandled[TSource,TTarget](TSource root, TTarget converted, Document document)

Details

  • Product in use: e.g. VS extension
  • Version in use: 8.4.1.0
  • Did you see it working in a previous version, which? no

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
GrahamTheCodercommented, Dec 23, 2021

In #774 I’ve made a change to decrease the amount of boilerplate for events in many common cases. Hopefully this will help mitigate the issue until a fix can be found

1reaction
GrahamTheCodercommented, Oct 22, 2021

For command line, start with dotnet tool install ICSharpCode.CodeConverter.codeconv --global Then the help on it should be enough to go on from there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash when rendering graphs | Substance 3D Designer
This page lists crashes occurring during the graph rendering process in Substance 3D Designer, and offers troubleshooting steps for each.
Read more >
Poor performance when working with large files in Fusion ...
Issue: Users reported that when working in files with many components or complex details in Fusion 360, the software performs sluggishly:.
Read more >
Large Format Illustrations in Photoshop: How High ... - YouTube
When illustrating for large formats in raster based apps like ... 3:05 How do you set up a Photoshop file for a large...
Read more >
Logo File Formats: Everything You Need to Know
Here's a cheat sheet of all the logo file formats you need to send it to designers, clients, and printers! We've also highlighted...
Read more >
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC15012...
No information is available for this page.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found