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

-32007 - File is not being analyzed #169

Open
XO39 opened this issue Jun 13, 2022 · 4 comments
Open

-32007 - File is not being analyzed #169

XO39 opened this issue Jun 13, 2022 · 4 comments

Comments

@XO39
Copy link

XO39 commented Jun 13, 2022

When opening the first dart file in a flutter project for the first time in a session, I get this error.
The problem is gone when reopening the file, or opening another file.

File is not being analyzed

Not sure, but it might be related to Dart-Code/Dart-Code#3929.

This if the related part of the log when enabling lsp-toggle-trace-io:

[Trace - 01:11:53 PM] Received response 'textDocument/documentColor - (2)' in 11ms.
Result: {
  "code": -32007,
  "message": "File is not being analyzed",
  "data": "/path/to/somefile.dart"
}


[Trace - 01:11:53 PM] Received response 'textDocument/documentSymbol - (3)' in 11ms.
Result: {
  "code": -32007,
  "message": "File is not being analyzed",
  "data": "/path/to/somefile.dart"
}


[Trace - 01:11:53 PM] Received response 'textDocument/documentHighlight - (4)' in 11ms.
Result: {
  "code": -32007,
  "message": "File is not being analyzed",
  "data": "/path/to/somefile.dart"
}

lsp-mode 20220611.1817, Emacs 28.1, darwin

@ericdallo
Copy link
Member

ericdallo commented Jun 13, 2022

It looks related @XO39 , did you try with that dart SDK version which included the fix? It should be available after dart SDK 2.18.0-38.0.dev

@XO39
Copy link
Author

XO39 commented Jun 18, 2022

Didn't try the version with the fix, I will just wait to for the official release (maybe next August).

@SpongeManiac
Copy link

SpongeManiac commented Nov 4, 2022

I'm still having this issue, I am on the latest flutter and dart sdk.
Here is my flutter doctor:

[√] Flutter (Channel master, 3.5.0-12.0.pre.98, on Microsoft Windows [Version 10.0.19044.1826], locale en-US)
    • Flutter version 3.5.0-12.0.pre.98 on channel master at D:\GitHub\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0186b1496b (24 hours ago), 2022-11-03 11:15:07 -0700
    • Engine revision 840a7b3462
    • Dart version 2.19.0 (build 2.19.0-364.0.dev)
    • DevTools version 2.19.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\user\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31829.152
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] VS Code (version 1.73.0)
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.52.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1826]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 106.0.5249.119
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 106.0.1370.52

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Edit:
Closing VS Code and reopening the project does not fix the issue, however terminating VS Code from the task manager and reopening the project fixed the issue.

@ericdallo
Copy link
Member

VSCode or emacs?

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

No branches or pull requests

3 participants