1 line
2.2 KiB
Plaintext
1 line
2.2 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Something I did broke magit, many of the commands don't work anymore, for example C-n, C-p don't move me around in the status window (but plan n and p do...) and more importantly I can't trigger a rebase from the log. </p> <p>Whenever I try any of the above I get an error: <code>Symbol's value as variable is void: project-switch-commands</code>. </p> <p>I'm looking into it but I figured I'd post a question in case someone just knew the answer, it'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's not actually how I found (kinda...) the issue, but it did allow me to easily checkout an earlier commit that didn'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'm not sure why and I still have a lot to learn about straight but I can move forward more comfortable. For what it's worth setting project-switch-commands to t works as well, and probably won'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 -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/emacs/comments/po9cfj/magit_commands_broken/">[comments]</a></span> |