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.

Document edits may be sent to analysis server in incorrect order, causing unexpected analysis errors

See original GitHub issue

VS Code started giving nonsensical error messages out of the blue. They happen throughout the whole codebase, here is an example code:

group('NoteColor', () {
  test(
    'should be validated with colorFullOpacity',
    () async {
      // act
      NoteColor(Color(0xffffffff));
      // assert
      verify(validators.colorFullOpacity(any));
    },
  );
});

And the analyzer doesn’t see group but rather oup:

Screenshot_2

I’d say it has nothing to do with the actual Dart Analyzer because running flutter analyze didn’t find any issues.

These kinds of weird errors go away after closing and reopening the file in question.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
zepfietjecommented, Jan 8, 2020

After analyzing my installed extensions, Laravel Blade Spacer seems to be the culprit. Their GitHub repository shows a recent refactor (2 days ago), which correlates with the issue reports. @ResoDev could you confirm (as your gist also lists named extension)?

1reaction
DanTupcommented, Jan 8, 2020

Ah, interesting. That extension seems like it may be reversing document edits here:

https://github.com/austenc/vscode-blade-spacer/blob/ae88ae1e82719c7b9fc088b93903285ac61b283a/src/extension.ts#L35

I’m not totally sure how that would cause this (it does mutate the array in-place, but I wouldn’t expect VS Code to be re-using that array, since it’d be serialised between the UI/extension host). It may be overwriting the edits, but I couldn’t find that from the code.

It still seems like a bug here - re-ordering the edits as far as VS Code is concerned should not matter (so whatever that extension is doing is not incorrect), but us assuming they’re in the “right” (reverse) order when sending them to the Dart analysis server is incorrect.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You cannot open the SQL Server Analysis Services properties ...
Incorrect or unexpected values or XML tag entries in the Msmdsrv.ini file can cause the Analysis Services service not to start in the...
Read more >
Top 4 options for fixing Microsoft.AnalysisServices ...
In this blog post you are going to see top 4 options for fixing Microsoft.AnalysisServices.AdomdClientUI.dll assembly error in SQL Server ...
Read more >
Error: Login failed error when executing first dimension
When you execute the analysis services model you get the following error: Login failed for user 'domain\username'.; 28000; Cannot open database ...
Read more >
Issues with data and analyses: Errors, underlying themes, and ...
Errors of statistical analysis involve methods that do not reliably lend support to the conclusions. These can occur if the underlying ...
Read more >
Known Issues for Oracle Analytics Server
This document describes information about known software issues and their workarounds for this release of Oracle Analytics Server.
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