bradyt / dart-server

An Emacs minor mode for the Dart server
GNU General Public License v3.0
0 stars 0 forks source link

error: (void-function dart-server-log) #13

Closed pfchen closed 3 years ago

pfchen commented 3 years ago

When I install this package, I get the following error. It looks like a problem caused by forward reference.

Debugger entered--Lisp error: (void-function dart-server-log)
  (dart-server-log (format "Error running %S:\n%s" (cons executable args) (nth 1 result)))
  (if (string-empty-p (nth 1 result)) nil (dart-server-log (format "Error running %S:\n%s" (cons executable args) (nth 1 result))))
  (let* ((result (apply #'dart-server--run-process executable args))) (if (string-empty-p (nth 1 result)) nil (dart-server-log (format "Error running %S:\n%s" (cons executable args) (nth 1 result)))) (if (eq (nth 2 result) 0) (nth 0 result)))
  dart-server--try-process("/home/user/ws/flutter/bin/dart" "/tmp/dart-server.K6rRZx")
  (let ((result (dart-server--try-process dart input))) (if result (progn (file-name-directory (directory-file-name (file-name-directory (string-trim result)))))))
  (progn (let ((temp-file input) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert "\n        import 'dart:io';\n\n        void main() {\n...")) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((result (dart-server--try-process dart input))) (if result (progn (file-name-directory (directory-file-name (file-name-directory (string-trim result))))))))
  (unwind-protect (progn (let ((temp-file input) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert "\n        import 'dart:io';\n\n        void main() {\n...")) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((result (dart-server--try-process dart input))) (if result (progn (file-name-directory (directory-file-name (file-name-directory ...))))))) (delete-file input))
  (let* ((input (make-temp-file "dart-server."))) (unwind-protect (progn (let ((temp-file input) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert "\n        import 'dart:io';\n\n        void main() {\n...")) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((result (dart-server--try-process dart input))) (if result (progn (file-name-directory (directory-file-name ...)))))) (delete-file input)))
  (progn (let* ((input (make-temp-file "dart-server."))) (unwind-protect (progn (let ((temp-file input) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer ... ...) (save-current-buffer ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((result (dart-server--try-process dart input))) (if result (progn (file-name-directory ...))))) (delete-file input))))
  (if dart (progn (let* ((input (make-temp-file "dart-server."))) (unwind-protect (progn (let ((temp-file input) (temp-buffer ...)) (unwind-protect (prog1 ... ...) (and ... ...))) (let ((result ...)) (if result (progn ...)))) (delete-file input)))))
  (let ((dart (or (executable-find "dart") (let ((flutter (executable-find "flutter"))) (if flutter (progn (expand-file-name "cache/dart-sdk/bin/dart" ...))))))) (if dart (progn (let* ((input (make-temp-file "dart-server."))) (unwind-protect (progn (let (... ...) (unwind-protect ... ...)) (let (...) (if result ...))) (delete-file input))))))
  (closure (t) nil (let ((dart (or (executable-find "dart") (let ((flutter ...)) (if flutter (progn ...)))))) (if dart (progn (let* ((input (make-temp-file "dart-server."))) (unwind-protect (progn (let ... ...) (let ... ...)) (delete-file input)))))))()
  funcall((closure (t) nil (let ((dart (or (executable-find "dart") (let (...) (if flutter ...))))) (if dart (progn (let* ((input ...)) (unwind-protect (progn ... ...) (delete-file input))))))))
  eval((funcall #'(closure (t) nil (let ((dart (or ... ...))) (if dart (progn (let* ... ...)))))))
  custom-initialize-reset(dart-server-sdk-path (funcall #'(closure (t) nil (let ((dart (or ... ...))) (if dart (progn (let* ... ...)))))))
  custom-declare-variable(dart-server-sdk-path (funcall #'(closure (t) nil (let ((dart (or ... ...))) (if dart (progn (let* ... ...)))))) "The absolute path to the root of the Dart SDK." :group dart-server :type directory :package-version (dart-server . "0.1.0"))
  eval-buffer(#<buffer  *load*-515958> nil "/home/user/.emacs.d/elpa/dart-server-20190817.1254/d..." nil t)  ; Reading at buffer position 10833
  load-with-code-conversion("/home/user/.emacs.d/elpa/dart-server-20190817.1254/d..." "/home/user/.emacs.d/elpa/dart-server-20190817.1254/d..." nil t)
  require(dart-server)
bradyt commented 3 years ago

I am hoping your merge request fixes this issue. Now closing this issue with that assumption. Let me know if I got that wrong.