-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treemacs fails to show anything when using native compiled code #1048
Comments
Related to #1047? |
Yes, commenting out doom-modeline actually makes it work again. I am just surprised that this only shows up in compiled form. |
Maybe it will be fixed looking at my latest comment on #1047. Don’t know if that’s the best solution tho.. |
Have the same issue as mentioned here and in #1047. I also use compiled code. |
Also experiencing this issue in Spacemacs with the latest As a temporary measure I've pinned an earlier version of treemacs from July which works correctly. The recipe builds a package called ((treemacs
:location (recipe
:fetcher github
:repo "Alexander-Miller/treemacs"
:commit "2c576bebccd56ec8e65f4ec5ed5de864d9684fbf"
:files (:defaults
"Changelog.org"
"icons"
"src/elisp/treemacs*.el"
"src/scripts/treemacs*.py"
(:exclude "src/extra/*")))) For spacemacs this recipe was added to I assume this approach will work with doom using the |
the proposed fix doesn't work for me (no change - treemacs window still blank) |
I'm just going to leave a comment here, because there was an earlier comment about pinning an older commit as a workaround, and I was looking into implementing that fix for my configuration, and the stuff below worked for me. The error is a blank treemacs window with:
So I'm still running the same Why this works? Don't ask me. I'm just a knob-tweaker over here.
|
@greghab I have the same problem without using |
Just to clarify my previous comment and the behavior noted (there's nothing wrong with
And just some misc notes below: Also just in general instead of
|
I am on emacs 30 with no frameworks (doom, space, etc.) and also have this issue. I install all my packages directly from I have this version of treemacs installed: While the PR of the good fella @sebastiaanspeck is not already merged and distributed, my workaround is ensuring treemacs is loaded BEFORE doom-modeline.
;; commented this custom setting
;; '(doom-modeline-mode t)
...
(treemacs) ;; turns on
(treemacs) ;; turns off (as I want it to start retracted)
...
(doom-modeline-mode 1) This dirty workaround made treemacs work for me. update: this worked while I had not switched to another project, as soon as doom-modeline is started no more treemacs :( |
"Fix" is merged (reverted the breaking change). Please test the latest version |
Works again :-) |
Confirming, this is now working for me: Treemacs: Thanks! |
Works for me. |
We just pushed a new version of the modeline change. Let me know if it works for you. |
Hm, it's still broken for me. I use it with
|
Aha, it happens because I don't have doom-modeline as a dependency when treemacs is compiled. But I have it in runtime. I use nix for emacs dependency management, which provides dependencies at compile time only when they are specified by a package. So I need to add this dependency manually like this: kurnevsky/nixfiles@4f85b45 But this means that treemacs will be broken in nix for anyone else who uses it together with doom-modeline... |
One possible solution would be to avoid compilation of this peace of code by wrapping it to |
Works for me |
I'm not using doom-modeline and I have the same issue as #1048 (comment). Two more error messages that might be related:
|
I pushed a possible fix, try again now.
That change was made months ago and as far as I know all dependencies made the necessary updates. You are probably using an old version of a package like lsp(-treemacs).
Is this a treemacs message? |
We are still using it in lsp-metals: https://github.com/emacs-lsp/lsp-metals/blob/811f02e4416d208102350ea48404e0310ffea647/lsp-metals-treeview.el#L63 :) |
I was using the latest released version. The latest code from git seems to work.
I think so. The full message is:
and it appears when I double click the directory in treemacs. Only the root directory appears, the rest is empty. |
This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues). |
I am using the following emacs version:
GNU Emacs 29.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
3.24.38, cairo version 1.17.8) of 2023-07-23
and I am updating my packages basically every day so I am on an up-to-date treemacs version from melpa as of today.
Since a couple of days (?) I have the problem that when I start treemacs, it opens the sidebar window, but doesn't display anything else. If I remove the compiled files from the eln-cache and restart emacs, and start treemacs right at the beginning before it has time to automatically asynchronously compile treemacs again, it works. If I wait too long, and the compilation has finished, it won't work of course.
So my assumption is that something breaks the correct functioning of the native compiled treemacs code.
The text was updated successfully, but these errors were encountered: