Skip to content

Commit 94f1003

Browse files
authored
Merge branch 'master' into drop/26
2 parents ed42da9 + 81954d9 commit 94f1003

File tree

7 files changed

+35
-10
lines changed

7 files changed

+35
-10
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,26 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ${{ matrix.os }}
14+
continue-on-error: ${{ matrix.experimental }}
1415
strategy:
1516
fail-fast: false
1617
matrix:
1718
os: [ubuntu-latest, macos-latest, windows-latest]
1819
emacs-version:
19-
- 27.1
2020
- 27.2
21-
- 28.1
22-
- snapshot
21+
- 28.2
22+
- 29.1
23+
experimental: [false]
24+
include:
25+
- os: ubuntu-latest
26+
emacs-version: snapshot
27+
experimental: true
28+
- os: macos-latest
29+
emacs-version: snapshot
30+
experimental: true
31+
- os: windows-latest
32+
emacs-version: snapshot
33+
experimental: true
2334

2435
steps:
2536
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## Unreleased
3+
## 1.24.3
4+
5+
* Add `lsp-dart-dap-tools-args` to configure custom args for DAP process.
6+
* Fix flutter daemon failing to initialize on recent emacs versions. #209
7+
* Ignore flutter DAP message avoiding unecessary warning during debug.
48

59
## 1.24.2
610

Eask

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(package "lsp-dart" "1.24.2" "Dart support lsp-mode")
1+
(package "lsp-dart" "1.24.3" "Dart support lsp-mode")
22

33
(website-url "https://emacs-lsp.github.io/lsp-dart")
44
(keywords "languages" "extensions")

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ lsp-dart supports running Flutter and Dart commands as following:
203203
| `lsp-dart-dap-flutter-test-debugger-program` | The command to execute the test debugger extension on flutter projects. | Check source file |
204204
| `lsp-dart-dap-debug-external-libraries` | Whether to enable the debug on external libraries | `nil` |
205205
| `lsp-dart-dap-debug-sdk-libraries` | Whether to enable the debug on Dart SDK libraries | `nil` |
206-
| `lsp-dart-dap-vm-additional-args` | Additional args for dart debugging VM when the debugging. | `""` |
206+
| `lsp-dart-dap-vm-additional-args` | Additional args for dart debugging VM when the debugging.
207+
| `lsp-dart-dap-tool-args` | Arguments to be passed to the Dart or Flutter tool. | `""` |
207208
| `lsp-dart-dap-flutter-track-widget-creation` | Whether to pass –track-widget-creation to Flutter apps. Required to support 'Inspect Widget'. | `t` |
208209
| `lsp-dart-dap-flutter-structured-errors` | Whether to use Flutter’s structured error support for improve error display. | `t` |
209210
| `lsp-dart-dap-flutter-hot-reload-on-save` | When enabled, every buffer save triggers a `lsp-dart-dap-flutter-hot-reload` | `nil` |
@@ -216,6 +217,7 @@ lsp-dart supports running Flutter and Dart commands as following:
216217
* [lsp-treemacs](https://github.com/emacs-lsp/lsp-treemacs) : `lsp-mode` GUI controls implemented using treemacs.
217218
* [company-capf](https://github.com/company-mode/company-mode) : Completion back-end support.
218219
* [hover.el](https://github.com/ericdallo/hover.el) : Tool to run flutter mobile apps from desktop without the need of an emulator.
220+
* [flutter.el](https://github.com/amake/flutter.el) : Tool to run flutter binary as an inferior process and interact with it from Emacs.
219221

220222
## FAQ
221223

lsp-dart-dap.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
:group 'lsp-dart
102102
:type '(repeat string))
103103

104+
(defcustom lsp-dart-dap-tool-args []
105+
"Additional args for the dart or flutter tool"
106+
:group 'lsp-dart
107+
:type '(repeat string))
108+
104109
(defcustom lsp-dart-dap-vm-service-port 0
105110
"Service port for dart debugging VM."
106111
:group 'lsp-dart
@@ -164,6 +169,7 @@ Required to support 'Inspect Widget'."
164169
(dap--put-if-absent conf :maxLogLineLength lsp-dart-dap-max-log-line-length)
165170
(dap--put-if-absent conf :cwd (lsp-dart-get-project-root))
166171
(dap--put-if-absent conf :vmAdditionalArgs lsp-dart-dap-vm-additional-args)
172+
(dap--put-if-absent conf :toolArgs lsp-dart-dap-tool-args)
167173
(dap--put-if-absent conf :vmServicePort lsp-dart-dap-vm-service-port)
168174
(dap--put-if-absent conf :debugExternalLibraries lsp-dart-dap-debug-external-libraries)
169175
(dap--put-if-absent conf :debugSdkLibraries lsp-dart-dap-debug-sdk-libraries)
@@ -374,6 +380,8 @@ Call CALLBACK when the device is chosen and started successfully."
374380
"Ignore this event.")
375381
(cl-defmethod dap-handle-event ((_event (eql flutter.appStarted)) _session _params)
376382
"Ignore this event.")
383+
(cl-defmethod dap-handle-event ((_event (eql flutter.appStart)) _session _params)
384+
"Ignore this event.")
377385

378386
(cl-defmethod dap-handle-event ((_event (eql dart.testRunNotification)) _session _params)
379387
"Ignore this event.")

lsp-dart-flutter-daemon.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ CONN ARGS METHOD PARAMS"
6060
(jsonrpc--process conn)
6161
json)))
6262

63-
(cl-defmethod initialize-instance ((conn lsp-dart-flutter-daemon-connection) _slots)
63+
(cl-defmethod initialize-instance :after ((conn lsp-dart-flutter-daemon-connection) _slots)
6464
"CONN."
65-
(cl-call-next-method)
6665
(let ((proc (jsonrpc--process conn)))
6766
(when proc
6867
(set-process-filter proc #'lsp-dart-flutter-daemon--process-filter))))

lsp-dart.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
;; Copyright (C) 2022 Eric Dallo
44

5-
;; Version: 1.24.2
5+
;; Version: 1.24.3
66
;; Package-Requires: ((emacs "27.1") (lsp-treemacs "0.3") (lsp-mode "7.0.1") (dap-mode "0.6") (f "0.20.0") (dash "2.14.1") (dart-mode "1.0.5") (jsonrpc "1.0.15") (ht "2.2"))
7+
78
;; Keywords: languages, extensions
89
;; URL: https://emacs-lsp.github.io/lsp-dart
910

@@ -99,7 +100,7 @@ If unspecified, diagnostics will not be generated."
99100

100101
;;; Internal
101102

102-
(defvar lsp-dart-version-string "1.24.2")
103+
(defvar lsp-dart-version-string "1.24.3")
103104

104105
(defun lsp-dart--library-folders ()
105106
"Return the library folders path to analyze."

0 commit comments

Comments
 (0)