Skip to content

Describe Package error in Flutter projects #2148

@kryvoff

Description

@kryvoff

Type: Bug

This is harmless, but it adds noise and confusion for anyone working on Dart/Flutter packages what's going on. (It's not just this flutters/packages repo, I've seen this error in other small normal Flutter projects)

Could you please fix it to avoid running "Describe Package" in this case where it doesn't make sense or at least to not surface the error to the user?

 *  Executing task: swift: Describe Package (packages/camera/camera) 

> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift package describe --type json

error: Could not find Package.swift in this directory or any of its parent directories.

 *  The terminal process failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

Extension version: 2.16.1
VS Code version: Code - Insiders 1.112.0-insider (03d87f6b18e2b33ca6b195ebf6b4763d7892c11b, 2026-03-12T17:28:14+09:00)
OS version: Darwin arm64 25.3.0
Modes:

System Info
Item Value
CPUs Apple M3 (8 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M3, Version 26.3.1 (Build 25D2128))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.3.1 ACTIVE
Machine model name: Mac
Machine model version: 15.3
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 11, 5, 5
Memory (System) 16.00GB (0.15GB free)
Process Argv --crash-reporter-id 1764d7f9-e753-4f20-9625-47ec003ecdc1
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
42190218_ostrepl:31403339
56b7f661:31457055
use-responses-api:31390341
je187915:31401257
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31445440
ge8j1254_inline_auto_hint_haiku:31426887
7a04d226_do_not_restore_last_panel_session:31429685
preserve_tokens:31444547
cp_cls_t_1081:31454832
ia-use-proxy-models-svc:31446143
core-renderer-profiling-on:31440366
a43f0574a:31442822
e9c30283:31453065
test_treatment2:31471001
h_5b0j5247:31472782
idci7584:31454084
edit_mode_hidden:31453871
nes-ftch-ctrl:31458523
nes_chat_context_disabled:31451402
e3e4d672:31454087
864ei723_large_tool_results_to_disk:31455802
showingstats:31457201
ei9d7968:31462942
b1f5h706:31455228
7ef87755:31455235
nes-extended-on:31455475
agentwelcome:31461166
ce_off:31475287
nes-sp-on:31470943
ah:31460422
quick_suggest_off_75197330:31462668
89g7j272:31469979
7e884298:31462391
nes-rcnt-edit:31468468
4f032803_compaction:31474554
bg_compact_t:31466296
t-some:31466503
dfc2j404:31470440
cpptoolsoff-v2:31475362
i2gc6536:31472020
ghj88844:31474550
commenticon:31473929
h08i8180_copy:31475366
nes-notsn-1:31475122
client_tst_c:31475291
po_com_t:31475410

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Unscreened

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions