-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingc: crashStack traces logged to the consoleStack traces logged to the consoler: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Steps to reproduce
- create a pub workspace with a flutter project (ensure the project has its resolution set to workspace, workspace has the project listed/added)
- create a widget preview (can be as simple as a sizedbox/container)
- try to start the widget previewer with the working directory set to the package/project instead of the workspace
Logs
Flutter crash report.
command
flutter widget-preview start
exception
StateError: Bad state: Could not determine run package name. Project path "[package path]/.dart_tool/widget_preview_scaffold/" did not occur as package root in package config "[workspace path]/.dart_tool/package_config.json".
#0 DartBuild.build (package:flutter_tools/src/build_system/targets/native_assets.dart:50:7)
<asynchronous suspension>
#1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:873:9)
<asynchronous suspension>
#2 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:631:16)
<asynchronous suspension>
#3 FlutterHookRunnerNative.runHooks (package:flutter_tools/src/build_system/targets/hook_runner_native.dart:30:35)
<asynchronous suspension>
#4 ResidentWebRunner._updateDevFS (package:flutter_tools/src/isolated/resident_web_runner.dart:715:28)
<asynchronous suspension>
#5 ResidentWebRunner.run.<anonymous closure> (package:flutter_tools/src/isolated/resident_web_runner.dart:322:41)
<asynchronous suspension>
#6 asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:108:24)
<asynchronous suspension>
Flutter Doctor output
Doctor output
[✓] Flutter (Channel beta, 3.38.0-0.1.pre, on Arch Linux 6.16.8-arch3-1, locale en_US.UTF-8) [32ms]
• Flutter version 3.38.0-0.1.pre on channel beta
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e592fef32 (7 days ago), 2025-10-17 16:08:19 -0700
• Engine revision 060c2cc550
• Dart version 3.10.0 (build 3.10.0-290.1.beta)
• DevTools version 2.51.0
• 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
[✓] Linux toolchain - develop for Linux desktop [282ms]
• clang version 20.1.8
• cmake version 4.1.1
• ninja version 1.12.1
• pkg-config version 2.5.1
• OpenGL core renderer: AMD Radeon RX 6650 XT (radeonsi, navi23, LLVM 20.1.8, DRM 3.64, 6.16.8-arch3-1)
• OpenGL core version: 4.6 (Core Profile) Mesa 25.2.3-arch1.2
• OpenGL core shading language version: 4.60
• OpenGL ES renderer: AMD Radeon RX 6650 XT (radeonsi, navi23, LLVM 20.1.8, DRM 3.64, 6.16.8-arch3-1)
• OpenGL ES version: OpenGL ES 3.2 Mesa 25.2.3-arch1.2
• OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
• GL_EXT_framebuffer_blit: yes
• GL_EXT_texture_format_BGRA8888: yes
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingc: crashStack traces logged to the consoleStack traces logged to the consoler: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team