Skip to content

Inlay hints disappear after going to definition #60145

@benthillerkus

Description

@benthillerkus

When I open my project in VS Code I can see the type inlay hints, but as soon as I start doing stuff like go-to-definition the hints disappear.

Screen.Recording.2025-02-15.at.21.49.43.mov

Infodump

Workspace Environment
Dart Code extension: 3.104.0
Flutter extension: 3.104.0 (activated)

App: Visual Studio Code
App Host: desktop
Version: mac 1.97.2

Workspace type: Flutter (LSP) (Multiroot)
Workspace name: drank (Workspace)

Dart (3.7.0-323.0.dev): /Users/bent/.puro/shared/caches/010c8a806bccad64ab9972286b85dd24ca98441f/dart-sdk
Flutter (3.29.0): /Users/bent/.puro/envs/stable/flutter (macOS (darwin/macos))

Output from 'dart info'

/Users/bent/.puro/shared/caches/010c8a806bccad64ab9972286b85dd24ca98441f/dart-sdk/bin/dart info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.7.0-323.0.dev (dev) (Mon Jan 13 04:02:13 2025 -0800) on "macos_arm64"
  • on macos / Version 15.0.1 (Build 24A348)
  • locale is en-DE

Project info

  • sdk constraint: '3.7.0-323.0.dev'
  • dependencies: collection, fast_immutable_collections, flutter, flutter_hooks, focusable_control_builder, hooks_riverpod, logging, navigation_utils, sliver_tools, sqlite3, sqlite3_flutter_libs
  • dev_dependencies: custom_lint, flutter_lints, flutter_test, riverpod_lint

Process info

Memory CPU Elapsed time Command line
3 MB 0.0% 14:46 dart devtools --machine --allow-embedding --dtd-uri ws:/im78k0hnq94=
66 MB 0.0% 14:46 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.104.0
3 MB 0.0% 14:37 dart lib/custom_lint_client.dart ::1 55384
3 MB 0.0% 14:46 dart tooling-daemon --machine
30 MB 0.0% 14:45 flutter_tools.snapshot daemon
Output from 'flutter doctor'

/Users/bent/.puro/envs/stable/flutter/bin/flutter doctor -v

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.0.1 24A348 darwin-arm64, locale en-DE) [661ms]
    • Flutter version 3.29.0 on channel stable at /Users/bent/.puro/envs/stable/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (5 days ago), 2025-02-10 12:48:41 -0800
    • Engine revision 010c8a806b
    • Dart version 3.7.0 (build 3.7.0-323.0.dev)
    • DevTools version 2.42.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [3.2s]
    • Android SDK at /Users/bent/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [1,456ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [11ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.1) [11ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.97.2) [8ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.104.0

[✓] Connected device (2 available) [7.3s]
    • macOS (desktop)                 • macos                 • darwin-arm64 • macOS 15.0.1 24A348 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin       • macOS 15.0.1 24A348 darwin-arm64

[✓] Network resources [919ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

dart_analyzer_diagnostics_report.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions