You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi there, I launched an app with lsp-dart-run and then attempted to open DevTools with lsp-dart-open-devtools.
I can't seem to run lsp-dart-open-devtools; when running lsp-dart-run, it doesn't expose the local URL to access it. (eg. http://127.0.0.1:42277/7ExjleCaLVU=/). Am I doing something wrong?
According to this issue flutter/devtools/issues/6550: flutter pub global activate devtools is deprecated; which is how lsp-dart-devtools--start attempts to start DevTools. And it should be run as dart devtools instead.
Running flutter run directly exposes DevTools and the URL. I don't know how it's meant to be when an editor runs it since lsp-dart-run doesn't show it, nor does dap-debug.
Note
Before logging the bug please make sure that the issue is reproducible with latest melpa packages.
To Reproduce
Run lsp-dart-run (or dap-debug)
lsp-dart-open-devtools
Expected behavior lsp-dart-run should expose the VM Service URL. And lsp-dart-open-devtools should open DevTools and connect to the running app.
Screenshots
If applicable, add screenshots to help explain your problem.
Version
Include here the result of: M-xlsp-dart-version
Running flutter run directly exposes DevTools and the URL. I don't know how it's meant to be when an editor runs it
Usually, an editor will start its own version using dart devtools --machine (which starts a server and provides the URL in JSON). When running flutter run, you can pass --devtools-server-address to have Flutter reuse that existing DevTools instance. This avoids a new DevTools server being started on each debug session (for editors like VS Code, it's likely a single editor session will live across multiple debugging sessions).
As noted above, DevTools from Pub is long deprecated and shouldn't be used. Dart SDK 2.15.0 added support for dart devtools and Flutter 1.26.0 added support for the --devtools-server-address flag passed to flutter run (and to prevent dart run spawning DevTools, you can use --no-serve-devtools for dart run since Dart2.14.0).
Describe the bug
Hi there, I launched an app with
lsp-dart-run
and then attempted to open DevTools withlsp-dart-open-devtools
.I can't seem to run
lsp-dart-open-devtools
; when runninglsp-dart-run
, it doesn't expose the local URL to access it. (eg. http://127.0.0.1:42277/7ExjleCaLVU=/). Am I doing something wrong?According to this issue flutter/devtools/issues/6550:
flutter pub global activate devtools
is deprecated; which is howlsp-dart-devtools--start
attempts to start DevTools. And it should be run asdart devtools
instead.Running
flutter run
directly exposes DevTools and the URL. I don't know how it's meant to be when an editor runs it sincelsp-dart-run
doesn't show it, nor doesdap-debug
.Note
Before logging the bug please make sure that the issue is reproducible with latest melpa packages.
To Reproduce
lsp-dart-run
(ordap-debug
)lsp-dart-open-devtools
Expected behavior
lsp-dart-run
should expose the VM Service URL. Andlsp-dart-open-devtools
should open DevTools and connect to the running app.Screenshots
If applicable, add screenshots to help explain your problem.
Version
Include here the result of: M-x
lsp-dart-version
The text was updated successfully, but these errors were encountered: