emacsorphanage / dart-mode

An Emacs mode for the Dart language
GNU General Public License v3.0
15 stars 2 forks source link

Symbol's function definition is void: dart--analysis-server-process-filter #45

Closed Comevius closed 6 years ago

Comevius commented 6 years ago

If dart-mode is installed on Emacs the compiler seems to neglect to include dart--analysis-server-process-filter in dart-mode.elc.

M-: (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
M-: (add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
M-x package-refresh-contents
M-x package-install <RET> dart-mode
M-x dart-mode
Symbol’s function definition is void: dart--analysis-server-process-filter
Debugger entered--Lisp error: (void-variable dart--analysis-server-process-filter)
  byte-code("\305\302  !\306\n\307H>\204�\310\311\312\nD\"\210\n\313H\314!\204\"�\315!\210r\211q\210db\210 c\210\316\317 !ed|\210\320!c\210\321\322!\307\203b�@\211\203V�\211\211\323\230\262\204V�\211B\262\210\211T\262A\262\202>�\266\211\237\262\211\211\205\205�\211@\324\325P!\210\326\327\330!)!\210A\266\202\202i�\262\262\262)\262$\207" [dart--analysis-server-process-filter string das cl-struct-dart--analysis-server-tags json-array-type defun* "Handle the event or method response from the dart analysis server.\n\nThe server DAS has STRING added to the buffer associated with it.\nMethod responses are paired according to their pending request and\nthe callback for that request is given the json decoded response." 0 signal wrong-type-argument dart--analysis-server 2 buffer-live-p return-from s-lines buffer-string -last-item nil -butlast "" dart-info "Received: " dart--analysis-server-handle-msg list json-read-from-string] 13)
  autoload-do-load((autoload "dart-mode" "Major mode for editing Dart files.\n\nThe hook `c-mode-common-hook' is run with no args at mode\ninitialization, then `dart-mode-hook'.\n\nKey bindings:\n\\{dart-mode-map}\n\n(fn)" t nil) dart-mode)
  command-execute(dart-mode record)
  execute-extended-command(nil "dart-mode" "dart-mode")
  funcall-interactively(execute-extended-command nil "dart-mode" "dart-mode")
  call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)

If dart-mode is installed via use-package everything works and a different (a bit larger) dart-mode.elc is generated.

M-: (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
M-: (add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
M-x package-refresh-contents
M-x package-install <RET> use-package
M-: (use-package dart-mode :ensure t)
M-x dart-mode

I tested with Emacs 25.2 (Ubuntu) and 25.3 (Arch Linux), dart-mode 1.0.2, Flycheck 31, s 1.12.0, with and without use-package 2.3 and an empty configuration.