emacs/var/elfeed/db/data/a9/a98f3aeb707635d4bd2d12850bf0d29ac794175c
2022-01-03 12:49:32 -06:00

1 line
2.2 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Something I did broke magit, many of the commands don&#39;t work anymore, for example C-n, C-p don&#39;t move me around in the status window (but plan n and p do...) and more importantly I can&#39;t trigger a rebase from the log. </p> <p>Whenever I try any of the above I get an error: <code>Symbol&#39;s value as variable is void: project-switch-commands</code>. </p> <p>I&#39;m looking into it but I figured I&#39;d post a question in case someone just knew the answer, it&#39;s impeding my ability to work :(</p> <p>My config is here if it helps: <a href="https://github.com/jgerman/jjgemacs/blob/master/settings.org">https://github.com/jgerman/jjgemacs/blob/master/settings.org</a></p> <p><strong>Edit</strong></p> <p>For anyone that sees this in the future:</p> <p>I isolated the commit where things broke and the major additions were lsp and rustic for rust. That&#39;s not actually how I found (kinda...) the issue, but it did allow me to easily checkout an earlier commit that didn&#39;t have my Rust setup and use that for work during the day.</p> <p>Ultimately after reading the comments I looked to see if I could upgrade project.el, though that seemed odd. Since everything was working before. Rustic does require project (0.3.0) which would be a dated version and I did find a project repo that straight had checked out. It appeared to be current though and had the missing variable. </p> <p>Figuring it was worth a shot anyway I explicitly required project with straight in my init, which solved the issue. I&#39;m not sure why and I still have a lot to learn about straight but I can move forward more comfortable. For what it&#39;s worth setting project-switch-commands to t works as well, and probably won&#39;t break anything from what I read.</p> <p>TLDR; Explicitly adding (use-package project :straight t) solved the issue, though I only have guesses as to how the built in project.el got screwed up.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/jghobbies"> /u/jghobbies </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/po9cfj/magit_commands_broken/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/po9cfj/magit_commands_broken/">[comments]</a></span>