Open 5hirish opened 1 year ago
The problem seems to be here:
It's only passing --protocol=lsp
is there is no argument that starts with --protocol
, and --protocol-traffic-log
starts with it.
My guess is that it's to handle --protocol=
, but I think it should probably be == '--$protocol' || startsWith('--$protocol=')
(and if there is any other valid syntax besides =
).
Thanks for digging, Danny!
This tracker is for issues related to:
Dart SDK version: 3.0.0 (stable) (Thu May 4 01:11:00 2023 -0700) on "macos_arm64"
Passing
--protocol-traffic-log
seems to cause it to start the legacy server protocol. If I remove that argument, it starts the LSP protocol.Workaround: As a workaround, use
--instrumentation-log-file
instead of--protocol-traffic-log
. They are aliases and do the same thing, but only the second one triggers this bug.cc: @DanTup