Repository navigation
Stack trace entries sometimes don't open files #6001
Copy link
Copy link
Closed
Labels
fixed in dart / flutterin debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
Describe the bug
Clicking on the stack trace entry doesn't move you to a valid file.
But since we can use the context menu to copy the stack trace and get a valid file path, I believe that is a bug.
To Reproduce
Steps to reproduce the behavior:
- Create a flutter (must be) app with:
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () {
final items = [1, 2, 3];
final mapped = items.map((e) => e * 2).toList();
bool test(int e) {
return e > 4; // Breakpoint here
}
mapped.where(test).toList();
},
child: const Text('Trigger List.from'),
),
),
),
);
}
}- Click the button on the app (must not be dart2js - maybe wasm works but I've tested on Android).
- Click on
new List.ofentry (5th on the stack strace)
Expected behavior
To see an actual file on the editor.
Screenshots
Please complete the following information:
Workspace Environment
Dart Code extension: 3.131.20260304
Flutter extension: 3.131.20260303 (activated)
App: Visual Studio Code
App Host: desktop
Version: win 1.111.0
Workspace type: Dart, Flutter (LSP)
Workspace name: bug
Dart (3.10.8): C:\Users\felipe-m\.puro\shared\caches\587c18f873b8ab57330422bce09047420d9c7f42\dart-sdk
Flutter (3.38.9): C:\Users\felipe-m\.puro\envs\3.38.9\flutter (sdk gphone64 x86 64 (android-x64/android))
Output from 'dart info'
C:\Users\felipe-m\.puro\shared\caches\587c18f873b8ab57330422bce09047420d9c7f42\dart-sdk\bin\dart.exe 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.10.8 (stable) (Tue Jan 27 00:02:04 2026 -0800) on "windows_x64"
- on windows / "Windows 11 Pro" 10.0 (Build 26200)
- locale is pt-BR
Project info
- sdk constraint: '^3.10.8'
- dependencies: stack_trace
- dev_dependencies: lints, test
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dart.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe | |
| 0 MB | -- | dartvm.exe |
Output from 'flutter doctor'
C:\Users\felipe-m\.puro\envs\3.38.9\flutter\bin\flutter.bat doctor -v
[✓] Flutter (Channel stable, 3.38.9, on Microsoft Windows [versão 10.0.26200.8037], locale pt-BR) [1.134ms]
• Flutter version 3.38.9 on channel stable at C:\Users\felipe-m\.puro\envs\3.38.9\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 67323de285 (8 weeks ago), 2026-01-28 13:43:12 -0800
• Engine revision 587c18f873
• Dart version 3.10.8
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging
[✓] Windows Version (Windows 11 or higher, 25H2, 2009) [1.846ms]
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [5,2s]
• Android SDK at C:\AndroidStudioSdk
• Emulator version 36.4.10.0 (build_id 15004761) (CL:N/A)
• Platform android-36.1, build-tools 36.1.0
• ANDROID_HOME = C:\AndroidStudioSdk
• Java binary at: C:\RECH\zulu17.0.18\x64\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment Zulu17.64+17-CA (build 17.0.18+8-LTS)
• All Android licenses accepted.
[✓] Chrome - develop for the web [18ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✗] Visual Studio - develop Windows apps [16ms]
✗ Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Connected device (4 available) [545ms]
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 16 (API 36) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versão 10.0.26200.8037]
• Chrome (web) • chrome • web-javascript • Google Chrome 146.0.7680.81
• Edge (web) • edge • web-javascript • Microsoft Edge 146.0.3856.59
[✓] Network resources [467ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fixed in dart / flutterin debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Activity
DanTup commentedon Mar 30, 2026
This appears to be a Flutter issue similar to some we've seen before. I've opened flutter/flutter#184333.
I'll keep this open until there's a response there, in case there's a reason these files aren't included.
DanTup commentedon Apr 15, 2026
This was fixed in Flutter (flutter/flutter#184333)