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
The problem seemingly is that pub global run devtools is deprecated, but then attempts are made to parse the JSON that will appear on the following line after the deprecation warning.
If I replace this call with "dart devtools" instead (because I previously ran dart pub global activate devtools), it works.
To Reproduce
Run the command using Dart SDK 2.15.1. You can also just run it from the terminal and you should get the output:
The top level `pub` command is deprecated. Use `dart pub` instead.
Expected behavior
Maybe the function could discard deprecation warnings, or the version of the SDK is checked to make sure no deprecation warning is encountered.
Version
[LSP Dart] 1.21.0 at 2022.02.07 @ Emacs 28.0.60
[Dart SDK] Dart SDK version: 2.15.1 (stable) (Tue Dec 14 13:32:21 2021 +0100) on "linux_x64"
[Flutter SDK] /home/krister/snap/flutter/common/flutter
[Flutter project] true
The text was updated successfully, but these errors were encountered:
Describe the bug
Command
lsp-dart-open-devtools
runs the following:The problem seemingly is that
pub global run devtools
is deprecated, but then attempts are made to parse the JSON that will appear on the following line after the deprecation warning.If I replace this call with "dart devtools" instead (because I previously ran
dart pub global activate devtools
), it works.To Reproduce
Run the command using Dart SDK 2.15.1. You can also just run it from the terminal and you should get the output:
Expected behavior
Maybe the function could discard deprecation warnings, or the version of the SDK is checked to make sure no deprecation warning is encountered.
Version
The text was updated successfully, but these errors were encountered: