From e91afd22550cf24d38b470ba37b7ccd624cef363 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 23 Nov 2019 17:57:43 +0100 Subject: [PATCH] Added wrapper for dart_language_server redirecting to modern dart lsp server --- .local/bin/README.org | 16 ++++++++++++++++ .local/bin/dart_language_server | 2 ++ 2 files changed, 18 insertions(+) create mode 100755 .local/bin/dart_language_server diff --git a/.local/bin/README.org b/.local/bin/README.org index c6f7bb3..55b297d 100644 --- a/.local/bin/README.org +++ b/.local/bin/README.org @@ -47,6 +47,7 @@ - [[#backup][Backup]] - [[#cppnew][Cppnew]] - [[#cnew][Cnew]] +- [[#dart-language-server][Dart Language Server]] - [[#dmenu][Dmenu]] - [[#emoji-picker][Emoji picker]] - [[#polybar-launch][Polybar-launch]] @@ -274,6 +275,21 @@ And we’re done! +* Dart Language Server + :PROPERTIES: + :CUSTOM_ID: h-771896e9-ab96-4158-af0b-1fcbef9ab969 + :HEADER-ARGS: :tangle dart_language_server :exports code + :END: + Spacemacs' recommendations on how to use Dart with LSP is outdated, since + [[https://github.com/natebosch/dart_language_server][=dart_language_server=]] is obsolete. As recommended by the repo owner, we + should launch instead the following code: + #+BEGIN_SRC fish + #!/usr/bin/env fish + dart $DART_SDK/snapshots/analysis_server.dart.snapshot --lsp + #+END_SRC + So, instead of using the obsolete executable, instead we will be calling the + analysis server as requested. + * Dmenu :PROPERTIES: :CUSTOM_ID: h-50623ecd-b633-4af7-9cc4-5a032f01d1ee diff --git a/.local/bin/dart_language_server b/.local/bin/dart_language_server new file mode 100755 index 0000000..6dacb86 --- /dev/null +++ b/.local/bin/dart_language_server @@ -0,0 +1,2 @@ +#!/usr/bin/env fish +dart $DART_SDK/snapshots/analysis_server.dart.snapshot --lsp