clojure-emacs / clojure-ts-mode

The next generation Clojure major mode for Emacs, powered by TreeSitter
GNU General Public License v3.0
129 stars 11 forks source link

Probably forgot to (require ‘lisp-mnt)? #7

Closed Linerre closed 1 year ago

Linerre commented 1 year ago

Please, remove all of the placeholder text (the one in italics) in your final report!

Expected behavior

emacs playground.clj

Execute the above command to open a clojure file without any problem, but got the following error:

Actual behavior

Saying the lm-version is a void function

Debugger entered--Lisp error: (error "Eager macro-expansion failure: (void-function lm-v...")
  signal(error ("Eager macro-expansion failure: (void-function lm-v..."))
  error("Eager macro-expansion failure: %S" (void-function lm-version))
  internal-macroexpand-for-load((defconst clojure-ts-mode-version (eval-when-compile (lm-version (or load-file-name buf$
  eval-buffer(#<buffer  *load*> nil "/home/noel/.emacs.d/straight/build/clojure-ts-mode..." nil t)  ; Reading at buffer$
  load-with-code-conversion("/home/noel/.emacs.d/straight/build/clojure-ts-mode..." "/home/noel/.emacs.d/straight/build$
  clojure-ts-mode()

Steps to reproduce the problem

I installed the mode via straight:

(straight-use-package '(clojure-ts-mode :type git :host github :repo "clojure-emacs/clojure-ts-mode"))

And use git log to list the REV installed:

commit 2fe33b8fc2873fdad34367a2086d3d02388bc0a0 (grafted, HEAD -> main, origin/main, origin/HEAD)

Environment & Version information

clojure-ts-mode version

clojure-ts-mode (version 0.0.1)

Emacs version

GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-04-20

Operating system

Arch Linux

dannyfreeman commented 1 year ago

Hello @Linerre, thank you very much for your bug report. This should be resolved now as of commit 9b29677722019542428f26374c7f62daff49daf2

Please feel free to reopen this ticket or a new one if we need to reassess.