Skip to content

Dart DevTools needs to be activated with 'pub global activate devtools' #212

@mustaqimM

Description

@mustaqimM

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

  1. Run lsp-dart-run (or dap-debug)
  2. 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.

image

Version
Include here the result of: M-x lsp-dart-version

[LSP Dart] 1.24.3 at 2024.03.02 @ Emacs 29.2
[Dart SDK] Dart SDK version: 3.3.0 (stable) (Tue Feb 13 10:25:19 2024 +0000) on "linux_x64"

[Flutter SDK] /home/mustaqim/snap/flutter/common/flutter/
[Flutter project] true
[Project entrypoint] /home/mustaqim/test_app/lib/main.dart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions