ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
390 stars 16 forks source link

Java error: Symbol’s value as variable is void: q When trying to insert anything in java mode #60

Closed binarydigitz01 closed 2 years ago

binarydigitz01 commented 2 years ago

Whenever I try to insert something in java, I get the error tree-edit--valid-insertions: Symbol’s value as variable is void: q. Here is my config:

  (use-package tree-edit)
  (use-package evil-tree-edit)

However it works for python.

ethan-leba commented 2 years ago

Thanks for the report! I'm unable to reproduce this, could you provide steps to reproduce and a stack trace?

binarydigitz01 commented 2 years ago

I am using emacs 28.0, as for the stack trace, I'm not exactly sure how to do that. Steps to reproduce:

  1. Select a method node.
  2. Press im for insert method
ethan-leba commented 2 years ago

I was able to reproduce after testing when the code was native-compiled, should be fixed by 774a1e9. Let me know if it works for you now!

binarydigitz01 commented 2 years ago

Yeah, now it works great!