a.utfull.day
a.utfull.day

Reputation: 110

Flutter/Dart Extensions and intellisense not working on VSCode

I was working with VSCode with the dart extension for months.I was facing an error on VS Code intellisense that was only showing up in my version of the repository and not on any other developers.This apparent error was not actually preventing me from running flutter run or build aar. So I assumed it was an issue with the extension itself . It was a multiple reference error for the String class between dart:convert and dart:core. I was unable to resolve the error, so I decided to uninstall and reinstall VS using the following steps : How to completely uninstall vscode on mac

Since reinstalling I have not been able get intellisense and code auto complete working.The code highlighting is working but the find references and jump to reference are not working at all.

Flutter doctor op:
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale en-IN)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.55.0)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

Setting.json

{
    "[dart]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false
    },
    "files.autoSave": "afterDelay",
    "dart.debugExternalLibraries": false,
    "dart.debugSdkLibraries": false,
    "editor.multiCursorModifier": "ctrlCmd",
    "dart.lineLength": 1000
}

Kindly help with the issue and let me know if other items are needed.

Upvotes: 0

Views: 2898

Answers (1)

a.utfull.day
a.utfull.day

Reputation: 110

The issue got sorted out when I checked out to the stable version of the flutter SDK and upgraded to the latest version of Flutter. This ensured Intellisense was working and dart SDK was working correctly.

After this, even on checking out to a specific version of the SDK, the intellisense tools were working correctly.

Upvotes: 1

Related Questions