Code Monkey home page Code Monkey logo

Comments (7)

VitalyAnkh avatar VitalyAnkh commented on June 12, 2024

I met the same error and I'm also on Emacs 29. It seems some upstream changes broke some function in lsp-metals-treeview.el.

@thoradam Which commit of Emacs 29 are you using (and has this problem)? And which commit is good? I could do a git bisect to find which commit is responsible for this problem.

from lsp-metals.

thoradam avatar thoradam commented on June 12, 2024

@VitalyAnkh I installed Emacs from the Homebrew emacs-plus formula:

    "tap": "d12frosted/emacs-plus",
    "tap_git_head": "4b34ed7402a4f3e1f212b2c6fa0851f4b59e247c",

Unfortunately this is my first time using Emacs with lsp-metals so I don't have a working commit for reference.

from lsp-metals.

yyoncho avatar yyoncho commented on June 12, 2024

Treeview is broken after breaking the change in treemacs. It should be disabled until this is fixed.

from lsp-metals.

mtk avatar mtk commented on June 12, 2024

what is the status of this? what is the recommended work around until fixed (one which lets you continue to use metals)?

from lsp-metals.

thoradam avatar thoradam commented on June 12, 2024

This patch for the treemacs package works for me:

diff --git a/src/elisp/treemacs-treelib.el b/src/elisp/treemacs-treelib.el
index d30c8c6..9825fbf 100644
--- a/src/elisp/treemacs-treelib.el
+++ b/src/elisp/treemacs-treelib.el
@@ -1018,7 +1018,7 @@ ARG: Prefix Arg"
    :post-close-action
    (treemacs-on-collapse (treemacs-button-get btn :path))))
 
-(cl-defmacro treemacs-initialize
+(cl-defmacro treemacs-initialize-ext
     (extension
      &key
      (with-expand-depth 0)

It seems that lsp-metals wants to call the other treemacs-initialize so renaming this one to something else fixes the issues at least for lsp-metals.

from lsp-metals.

kurnevsky avatar kurnevsky commented on June 12, 2024

Does it stop work completely? For me lsp-metals works fine after this error happens.

from lsp-metals.

jcs090218 avatar jcs090218 commented on June 12, 2024

It stopped working in the latest Emacs (snapshot) due to the commit emacs-mirror/emacs@80cf13a

eager expansions is now error not warning.

Related issue: emacs-lsp/lsp-mode#3738

from lsp-metals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.