Closed lsytj0413 closed 4 years ago
This commit 4b111f7701ffea8e724666471a64867fe0c7af22 broken.
counsel-projectile
has updated this mechanism a month back and counsel-projectile-switch-project-actions
is no more defined. This needs to be fixed in Spacemacs.
Same problem here. Archlinux, emacs 25.3.1 develop branch
Same here. This is with the counsel-projectile from spacelpa-0.300 (counsel-projectile-20171001.641). It has counsel-projectile-switch-project-actions, but that isn't autoloaded. Sticking a (require 'counsel-projectile)
in spacemacs-layouts/post-init-swiper
makes the error go away (not saying that's the right fix, but seems to confirm the problem is a missing autoload or require).
Same problem -- rebase and remove https://github.com/syl20bnr/spacemacs/commit/4b111f7701ffea8e724666471a64867fe0c7af22 and everything should be good.
I confir the error. I tried @marienz fix but that didn't work for me. Still getting the error after adding (require 'counsel-projectile)
Should be fixed in develop.
I still have this on develop 9d540f8
.
@jsoo1 Have you updated packages? Could you describe the repro steps with your system info and if possible include the backtrace?
I can include a backtrace tomorrow. I have updated packages. Reproduction is via SPC p l
.
@nixmaniack
Debugger entered--Lisp error: (void-variable counsel-projectile-switch-project-action)
(ivy-read "Switch to Project Perspective: " (if (projectile-project-p) (cons (abbreviate-file-name (projectile-project-root)) (projectile-relevant-known-projects)) projectile-known-projects) :action counsel-projectile-switch-project-action :caller 'spacemacs/ivy-persp-switch-project)
spacemacs/ivy-persp-switch-project(nil)
funcall-interactively(spacemacs/ivy-persp-switch-project nil)
call-interactively(spacemacs/ivy-persp-switch-project nil nil)
command-execute(spacemacs/ivy-persp-switch-project)
((auto-completion
(haskell :variables haskell-completion-backend 'dante))
c-c++ clojure csv dash docker elm
(emacs-lisp :variables emacs-lisp-hide-namespace-prefix nil)
emoji
erlang evil-snipe fsharp
(git :variables git-magit-status-fullscreen t)
(gtags :variables gtags-enable-by-default t)
(haskell :variables haskell-process-type 'stack-ghci haskell-enable-hindent-style "fundamental")
html
(ibuffer :variables ibuffer-group-buffers-by 'projects)
idris ivy
(java :variables java-backend 'ensime)
(javascript :variables tern-command
'("node" "/usr/local/bin/tern"))
(latex :variables latex-build-command "LaTeX" latex-enable-auto-fill t latex-enable-folding t)
lua
(markdown :variables markdown-live-preview-engine 'vmd)
nginx
(org :variables org-enable-reveal-js-support t org-enable-github-support t org-projectile-file "TODOs.org")
osx python ranger react restclient ruby rust
(shell :variables shell-default-height 30 shell-default-position 'bottom)
shell-scripts
(spell-checking :variables spell-checking-enable-by-default nil)
spotify sql swift syntax-checking systemd tmux treemacs twitter version-control vimscript vinegar windows-scripts yaml)
I notice in the diff the read syntax #'
was removed from /layers/+spacemacs/spacemacs-layouts/funcs.el:425
which is the same as wrapping the function in (function ...)
(which i just discovered here). Adding #'
back fixes the issue. Should submit a PR?
I don't fully understand why it should make such a difference. If you think that is the correct solution to your problem - you may open a PR.
Could you once try removing your compiled elisp files and see if it helps? If it doesn't - then you can open a PR with the fix you described.
Neither do I. Deleting .elc
files makes sense...
Removing all compiled elisp did not solve the issue, but adding back the quote does. I am hesitant to PR because I am not sure why it helps and an ubuntu machine using emacs 27 does not have the same problem.
Please verify in develop.
I can verify tomorrow thanks so much!
Working in develop.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Description :octocat:
An error occurred while post-configuring swiper in layer spacemacs-layouts (error: (void-variable counsel-projectile-switch-project-actions))
Reproduction guide :beetle:
Observed behaviour: :eyes: :broken_heart: <>
Expected behaviour: :heart: :smile: <>
System Info :computer:
Backtrace :paw_prints: