Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lsp-dart-run failed with "Debug session process exited with status: killed: 9" #226

Open
willvio opened this issue Jan 4, 2025 · 0 comments

Comments

@willvio
Copy link

willvio commented Jan 4, 2025

Describe the bug
lap-dart-run failed with the following message and Debug session process exited with status: killed: 9. This happens even if a device is set interactively once invoking the lap-dart-run command. I tried Bothe macOS and Chrome as the device but had the same issue.

Checking for wireless devices...

More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.

macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.0.1 24A348 darwin-arm64
Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.0.1 24A348 darwin-arm64
Chrome (web)                    • chrome                • web-javascript • Google Chrome 131.0.6778.205

To Reproduce
Launch emacs with emacs -q and evaluate the configuration code found in README

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)

(setq package-selected-packages 
  '(dart-mode lsp-mode lsp-dart lsp-treemacs flycheck company
    ;; Optional packages
    lsp-ui company hover))

(when (cl-find-if-not #'package-installed-p package-selected-packages)
  (package-refresh-contents)
  (mapc #'package-install package-selected-packages))

(add-hook 'dart-mode-hook 'lsp)

(setq gc-cons-threshold (* 100 1024 1024)
      read-process-output-max (* 1024 1024))

Then call lsp-dart-run in the buffer of lib/main.dart generated with flutter create test_project

Version

[LSP Dart] 1.24.3 at 2025.01.05 @ Emacs 29.4
[Dart SDK] Dart SDK version: 3.6.0 (stable) (Thu Dec 5 07:46:24 2024 -0800) on "macos_arm64"

[Flutter SDK] /opt/flutter/
[Flutter project] true
[Project entrypoint] /path/to/flutter/test_project/lib/main.dart

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant