[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode 2b085f5 125/192: Do not fail if Flycheck is not
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode 2b085f5 125/192: Do not fail if Flycheck is not available. (#52) |
Date: |
Sun, 29 Aug 2021 11:02:03 -0400 (EDT) |
branch: elpa/dart-mode
commit 2b085f54133cfe0af0944614ba7d221a2ad7ad61
Author: Göktuğ Kayaalp <cadadr@users.noreply.github.com>
Commit: Natalie Weizenbaum <nweiz@google.com>
Do not fail if Flycheck is not available. (#52)
Dart mode can work without Flycheck, so it need not be a hard
requirement.
---
dart-mode.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 4584d94..d3e2e78 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -88,7 +88,8 @@
(require 'cl-lib)
(require 'compile)
(require 'dash)
-(require 'flycheck)
+(ignore-errors
+ (require 'flycheck))
(require 'json)
(require 's)
@@ -787,7 +788,8 @@ directory or the current file directory to the analysis
roots."
(add-hook 'first-change-hook 'dart-add-analysis-overlay t t)
(add-hook 'after-change-functions 'dart-change-analysis-overlay t t)
(add-hook 'after-save-hook 'dart-remove-analysis-overlay t t)
- (add-to-list 'flycheck-checkers 'dart-analysis-server))
+ (when (featurep 'flycheck)
+ (add-to-list 'flycheck-checkers 'dart-analysis-server)))
(defun dart-start-analysis-server ()
"Start the Dart analysis server.
@@ -1030,10 +1032,12 @@ SUBSCRIPTION is an opaque object provided by
(lambda (response)
(dart--report-errors response buffer callback)))))
-(flycheck-define-generic-checker 'dart-analysis-server
+(when (featurep 'flycheck)
+ (flycheck-define-generic-checker
+ 'dart-analysis-server
"Checks Dart source code for errors using Dart analysis server."
:start 'dart--flycheck-start
- :modes '(dart-mode))
+ :modes '(dart-mode)))
(defun dart--report-errors (response buffer callback)
"Report the errors returned from the analysis server.
- [nongnu] elpa/dart-mode 2d00ec4 043/192: Properly indent multiline optional parameter lists., (continued)
- [nongnu] elpa/dart-mode 2d00ec4 043/192: Properly indent multiline optional parameter lists., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode b1ba925 045/192: arglist-intro should be ++., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f16c1c1 047/192: Fix an odd indentation bug., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 147f554 063/192: Merge pull request #11 from hterkelsen/dartanalyzer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 89573d5 067/192: Use a pipe instead of a pty for the analysis server, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 35a794c 086/192: Add workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18845 (#40), ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9b11e8f 088/192: Another attempt at fixing byte compilation. (#42), ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 3a73a1f 090/192: Make dart-executable-path resilient to wrappers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode b4e592f 098/192: Add more search commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c172f19 106/192: Support completing multiple parameters, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 2b085f5 125/192: Do not fail if Flycheck is not available. (#52),
ELPA Syncer <=
- [nongnu] elpa/dart-mode c973dea 127/192: Require ‘help-mode’., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 68f7f4f 132/192: Require cl for emacs 24.4, 24.5, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode caa7a19 124/192: Don't error out with revert-buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 199709f 148/192: Removes cc-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode da244c6 144/192: Fixes no such file or directory, dartfmt.exe, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9db2679 143/192: Fixes invalid file path format on Windows, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 06e2d4b 160/192: Respect font-lock-maximum-decoration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 3082066 185/192: Don't font lock anchor in a string, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ad93bc1 165/192: Edit headers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f6a1c9a79 171/192: Fix byte-compiling errors and warnings, ELPA Syncer, 2021/08/29