Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using flycheck #4138

Closed
wallacewinfrey opened this issue Dec 10, 2015 · 51 comments
Closed

Error using flycheck #4138

wallacewinfrey opened this issue Dec 10, 2015 · 51 comments

Comments

@wallacewinfrey
Copy link

When enabling flycheck-mode, and opening up a supported file, I get the following error:

Error while checking syntax automatically: (void-function seq-find)

enabling toggle-debug-on-error gives me:

Debugger entered--Lisp error: (void-function seq-find)
  signal(void-function (seq-find))
  flycheck-buffer()
  flycheck-buffer-automatically(idle-change)
  flycheck-handle-idle-change()
  apply(flycheck-handle-idle-change nil)
  timer-event-handler([t 22121 46591 432833 nil flycheck-handle-idle-change nil nil 283000])

Steps to reproduce:

  1. Install fresh copy of spacemacs
  2. M-x package-install flycheck
  3. M-x flycheck-global-mode
  4. Open supported file (I tried shell, ruby and perl)
@synic
Copy link
Contributor

synic commented Dec 10, 2015

You might have better luck not installing flycheck manually, and, instead,
installing the appropriate layer for the language you're working on.

Try putting syntax-checking and ruby in
dotspacemacs-configuration-layers. That should install flycheck for you,
and configure things how they need to be.

@wallacewinfrey
Copy link
Author

No change. I restarted emacs, let it orphan flycheck, enabled the syntax-checking and ruby layers, got the same seq-find error, this time with an additional error from enabling the ruby layer:

Error (use-package): enh-ruby-mode :config: Symbol's function definition is void: sp-with-modes

I should mention, this is with a fresh spacemacs installation.

@StreakyCobra
Copy link
Contributor

@wallacewinfrey This sp-with-modes is a know bug with a pending PR: #4132 and #4098

@syl20bnr
Copy link
Owner

Error (use-package): enh-ruby-mode :config: Symbol's function definition is void: sp-with-modes

Should be fixed in develop.

@ahyatt
Copy link
Contributor

ahyatt commented Dec 14, 2015

About seq-find: this is a common problem with use-package, if you use it, or you may find a similar situation:
jwiegley/use-package#275

Short version: something is loading the seq library before package-initialize is called in spacemacs
(which changes the load-path to bring in the elpa seq). I'm having the same issue, but haven't traced it down yet. Ideally in Spacemacs, nothing should be allowed to happen before package-initialize happens.

@wallacewinfrey
Copy link
Author

It doesn't appear to be fixed in develop, either. Still encountering the same error/lack of flycheck functionality after switching to the develop branch.

@naseer
Copy link
Contributor

naseer commented Dec 18, 2015

This started happening for me today(on stable) (in C/C++ mode) after I updated packages.

Error while checking syntax automatically: (void-function seq-find)

@siegfried
Copy link

Putting ruby in dotspacemacs-configuration-layers will cause this issue, while it's ok to just leave ruby-on-rails in it.

@JAremko
Copy link
Collaborator

JAremko commented Dec 24, 2015

Emacs 25.0.50.1 (Spacemacs 0.105.0)
I have the same problem with the go(golang) and the syntax-checking layer.
Might it be because seq.el is Included in Emacs 25 ?

@wallacewinfrey
Copy link
Author

Putting ruby in dotspacemacs-configuration-layers will cause this issue, while it's ok to just leave ruby-on-rails in it.

Replacing:

(setq-default dotspacemacs-configuration-layers '(ruby))

with:

(setq-default dotspacemacs-configuration-layers '(ruby-on-rails))

didn't seem to make a difference in spacemacs-develop. Additionally, removing:

(setq-default dotspacemacs-configuration-layers '(ruby))

didn't seem to make a change with flycheck in other language modes.

Might it be because seq.el is Included in Emacs 25 ?

Interesting. I suppose I should have mentioned earlier I'm using GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.4.0, NS appkit-1348.17 Version 10.10.4 (Build 14E46)) of 2015-07-10

@ahyatt
Copy link
Contributor

ahyatt commented Jan 4, 2016

AFAIK, as long as you run package-initialize to set up the load-path before
anything else, there shouldn't be an issue with seq.el. The issues are, in
Emacs 25, when some package is initialized that needs it before
package-initialize - the later packages that depend on the later version
will never get that later version.

On Sun, Jan 3, 2016 at 4:08 AM Wallace Winfrey notifications@github.com
wrote:

Putting ruby in dotspacemacs-configuration-layers will cause this issue,
while it's ok to just leave ruby-on-rails in it.

Replacing:

(setq-default dotspacemacs-configuration-layers '(ruby))

with:

(setq-default dotspacemacs-configuration-layers '(ruby-on-rails))

didn't seem to make a difference in spacemacs-develop
https://github.com/syl20bnr/spacemacs/tree/develop. Additionally,
removing:

(setq-default dotspacemacs-configuration-layers '(ruby))

didn't seem to make a change with flycheck in other language modes.

Might it be because seq.el is Included in Emacs 25 ?

Interesting. I suppose I should have mentioned earlier I'm using GNU
Emacs 25.0.50.1 (x86_64-apple-darwin14.4.0, NS appkit-1348.17 Version
10.10.4 (Build 14E46)) of 2015-07-10


Reply to this email directly or view it on GitHub
#4138 (comment)
.

@StreakyCobra
Copy link
Contributor

I'm not closing this one as it doesn't seems to be really fixed in develop.

@whizzzkid
Copy link

This seems to be an issue with JSON and JS as well. Still does not work for me.

@ajrouvoet
Copy link

Same issue with latex files since I've updated spacemacs.

@syl20bnr
Copy link
Owner

syl20bnr commented Jan 6, 2016

Is everybody here having the issue is using Emacs 25 ?

@JAremko
Copy link
Collaborator

JAremko commented Jan 6, 2016

Yes. Also i tested it in 24 and it works fine.

@cpjolicoeur
Copy link

I'm on emacs 24 and having the same issue.

@wallacewinfrey
Copy link
Author

Is everybody here having the issue is using Emacs 25 ?

As mentioned above, I've been using GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.4.0, NS appkit-1348.17 Version 10.10.4 (Build 14E46)) of 2015-07-10 but to test the "it-works-on-24" hypothesis I downloaded GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org.

I copied my spacemacs directory from .confmacs/configs/spacemacs to .confmacs/config/spacemacs-emacs24, switched to the new config, removed all of the compiled emacs lisp files and flycheck now works without issue.

I guess for the time being I'm gonna have to downgrade to 24; flycheck was a major part of my workflow and it's been painful not having it.

NOTE: My results with Emacs 24 were obtained with the master branch.

@dxnn
Copy link
Contributor

dxnn commented Jan 7, 2016

I'm having this issue on emacs 24 and spacemacs develop branch.

@justbur
Copy link
Contributor

justbur commented Jan 8, 2016

If you're having this issue, please give the output of the following which might help track it down

  1. M-x locate-library RET seq RET
  2. M-x pkg-info-library-version RET seq RET

@JAremko
Copy link
Collaborator

JAremko commented Jan 10, 2016

I tested both 24 and 25 on Debian and both are working fine. But 25 doesn't work on Alpine Linux (it has seq-1.11)
Looks like something wrong with the emacs package or my setup.

@whizzzkid
Copy link

Updating emacs from 25.0 to 25.1 seems to have resolved the problem.

@justbur
Copy link
Contributor

justbur commented Jan 12, 2016

@syl20bnr If I read these reports correctly, this is a problem with managing dependencies. flycheck requires seq v1.11 and people are not getting it when they install flycheck. Is this because emacs is comparing the version in date format to 1.11?

@newhook
Copy link

newhook commented Jan 19, 2016

This happens to me with a fresh install a week ago. I tried reinstalling seq-1.11, but no dice. Any help?

@syl20bnr
Copy link
Owner

What is your Emacs version ?

Le mardi 19 janvier 2016, Matthew Newhook notifications@github.com a
écrit :

This happens to me with a fresh install a week ago. I tried reinstalling
seq-1.11, but no dice. Any help?


Reply to this email directly or view it on GitHub
#4138 (comment)
.

-syl20bnr-

@newhook
Copy link

newhook commented Jan 19, 2016

25.0.50.1 - latest for OSX in the brew tap.

@JAremko
Copy link
Collaborator

JAremko commented Jan 19, 2016

I created a Docker images that reproduces this bug

@justbur
Copy link
Contributor

justbur commented Jan 19, 2016

@newhook can you do this? #4138 (comment)

@newhook
Copy link

newhook commented Jan 19, 2016

M-x locate-library RET seq RET
~/.emacs.d/elpa/seq-1.11/seq.elc

M-x pkg-info-library-version RET seq RET
1.11

@andrew-kennedy
Copy link

I'm also getting this issue, super fresh install of spacemacs from like 2 days ago, only enabled the racket mode layer. Running emacs 25.0.50.1 on OS X from homebrew. I get the exact same output as @newhook . Any resolution?

@ku1ik
Copy link

ku1ik commented Feb 18, 2016

What worked for me was to remove ~/.emacs.d/elpa/seq-* and restarting Emacs (to make it download latest version). seq-find was introduced at the end of 2015.

@newhook
Copy link

newhook commented Feb 18, 2016

Yeah, well I tried that and it didn't work.

@justbur
Copy link
Contributor

justbur commented Feb 18, 2016

@newhook since you're using emacs 25, seq library is included in emacs. Somehow you are not loading the right version, so maybe you have an old version of seq bundled with your emacs distribution. Can you check for an update to emacs itself? There's a pretest available now. My version string is "25.0.91.1" for example.

A workaround until the release of 25 is final is to force the right library to load no matter what, which you could do with

(load "~/.emacs.d/elpa/seq-1.11/seq.elc")

if that is where you have the right version on your system.

@PierreR
Copy link
Contributor

PierreR commented Feb 19, 2016

I have the same problem using Emacs 24.5.1!

Fresh install. I have completely removed my .emacs.d and even ~/.spacemacs.

Note that I need to use --insecure because without it have got a "Failed connect, connection refused".

I have been trying a fresh install both on develop and master with no luck.

@JAremko
Copy link
Collaborator

JAremko commented Feb 19, 2016

@PierreR Emacs repository is down ╯°□°)╯︵ ┻━┻

@PierreR
Copy link
Contributor

PierreR commented Feb 19, 2016

@JAremko Thanks for the info. I will wait for it to go up again.

@rgrinberg
Copy link
Contributor

@PierreR Is this still a problem?

@d12frosted
Copy link
Collaborator

Closing for inactivity.

Thanks @rgrinberg for pinging!

@tarjeiba
Copy link

I still get this issue running Emacs 25.0.50.1 on Windows, with seq located in
~/.emacs.d/elpa/seq-2.19/seq.elc

I am trying to run syntax checking in a python buffer.

@benozol
Copy link

benozol commented Mar 17, 2017

Any ideas on how to help debugging this issue?

I am also still running into it using syntax-check in python-mode (emacs-25.0, after nuking ~/.emacs.d/elpa/, Library is file ~/.emacs.d/elpa/seq-2.19/seq.elc, and pkg-info-library-version of seq is 2.19).

@impca
Copy link

impca commented Mar 22, 2017

FWIW, I had the same problem when using Emacs 25.0.50.1 and seq-2.19 on Ubuntu (I got my emacs package from Ubuntu Emacs Lisp ppa, it was the latest version available).

I solved it by removing the current emacs (apt-get remove emacs-snapshot --purge) and upgrading to the latest Emacs version from git (26.0.50), which can be done relatively easily using the following workflow:

git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
autoreconf -if
./configure (if it fails, apt-get install failing dependencies and run ./configure again)
make
sudo checkinstall

This will create and install a .deb file with the latest emacs that can be easily and cleanly installed/uninstalled.

You may also need to do this: #7676

@benozol
Copy link

benozol commented Mar 23, 2017

Thanks, @impca! Flycheck is now working in Python with an upgraded Emacs (25.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests