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.

Whenever I try any of the above I get an error: Symbol's value as variable is void: project-switch-commands.

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 :(

My config is here if it helps: https://github.com/jgerman/jjgemacs/blob/master/settings.org

Edit

For anyone that sees this in the future:

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.

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.

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.

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.

submitted by /u/jghobbies
[link] [comments]