spacemacs

FlavaDave 2023-08-10T02:51:26.612319Z

Just updated packages and got latest on develop branch and treemacs wont work. I looked up the behavior online and the behavior I am seeing matches this https://github.com/Alexander-Miller/treemacs/issues/182 that has been fixed for a long time. Has anyone been having similar issues?

practicalli-johnny 2023-08-11T21:30:15.585779Z

After looking at the Melpa recipe for the treemacs package, I used the following recipe in Spacemacs configuration dotspacemacs-additional-packages and comment the (treemacs ,,,) layer configuration in dotspacemacs-configuration-layers

dotspacemacs-additional-packages
   '((treemacs
      :location (recipe
                 :fetcher github
                 :repo "Alexander-Miller/treemacs"
                 :commit "2c576bebccd56ec8e65f4ec5ed5de864d9684fbf"
                 :files (:defaults
                         ""
                         "icons"
                         "src/elisp/treemacs*.el"
                         "src/scripts/treemacs*.py"
                         (:exclude "src/extra/*")))))
The current issue has been raised as an issue on the treemacs GitHub repository https://github.com/Alexander-Miller/treemacs/issues/1048

practicalli-johnny 2023-08-10T06:24:13.053319Z

Nope, haven't had any issues with Treemacs recently but will update packages and test. As follow-mode is set by Spacemacs Treemacs layer as the default, I've always used SPC f t or mainly SPC p t to open a project (supports multiple projects)

FlavaDave 2023-08-12T16:15:31.378459Z

Thanks @jr0cket !

practicalli-johnny 2023-08-10T07:04:57.594029Z

Updated to latest packages, SPC f e U , and I am experiencing an issue. SPC p t is not showing any items in the buffer it opens and the following error is displayed

Symbol’s value as variable is void: treemacs
Error in post-command-hook (treemacs--post-comman\
d): (wrong-type-argument number-or-marker-p nil)

practicalli-johnny 2023-08-10T07:29:55.611119Z

As a quick fix I reverted to treemacs-20230703.1929 package which seems to work okay in some brief tests

practicalli-johnny 2023-08-10T07:37:57.191439Z

I moved the existing package to a backup location

mv ~/.emacs.d/elpa/28.3/develop/treemacs-20230809.2040/ ~/backup/emacs-packages/
Then copy an earlier package from the rollback directory
cp -r ~/.emacs.d/.cache/.rollback/28.3/develop/23-08-10_07.35.07/treemacs-20230703.1929/ ~/.emacs.d/elpa/28.3/develop/
Adjust the location of the root Spacemacs directory where necessary Or use the "Rollback Package Update" link on the Spacemacs home buffer, SPC b h , to go back to the previous set of packages (rolls back all updated packages)

practicalli-johnny 2023-08-10T07:46:45.168859Z

Ideally a working version of the Treemacs package should be pinned in the Spacemacs user config, as described in https://github.com/practicalli/spacemacs/issues/293

practicalli-johnny 2023-08-10T07:56:31.494809Z

Something like this should work to pin treemacs

(treemacs
  :location (recipe 
             :fetcher github 
              :repo "" 
              :commit "))

FlavaDave 2023-08-10T17:16:12.969569Z

I did that and turned off native comp. Treemacs works but I use your spacemacs config and that wont load anymore

practicalli-johnny 2023-08-10T18:47:26.789669Z

The Practicalli Spacemacs-config is not contingent on native compilation, It is contingent on not having a .spacemacs file in the root of the users directory How was native compilation turned off? I thought it was only an option when building emacs. I am not clear how that would be related to either issue. The original issue mentioned is 5 years old and closed, so I assume there is either a change to the treemacs package API or an unintentional bug introduced in the last month. If there are no errors generated as to why the Practicalli Spacemacs-config is not loading, then I can only suggest looking at the troubleshooting guide https://practical.li/spacemacs/install-spacemacs/troubleshooting/

FlavaDave 2023-08-10T18:48:57.710459Z

sorry I responded with incomplete information

FlavaDave 2023-08-10T18:49:45.209069Z

I got treemacs to work with your snippet. But then my .spacemacs.d confic wasn't completely loading and still isn't

FlavaDave 2023-08-10T18:50:46.805159Z

I am now getting a lot of errors about org-mode versions

FlavaDave 2023-08-10T18:52:06.589629Z

I'll check out that troubleshooting guide

FlavaDave 2023-08-10T18:54:07.741239Z

> How was native compilation turned off? no-native-compile t