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

git-gutter+ has error in sh-mode sometimes #16

Closed
stardiviner opened this issue Jan 28, 2015 · 7 comments
Closed

git-gutter+ has error in sh-mode sometimes #16

stardiviner opened this issue Jan 28, 2015 · 7 comments

Comments

@stardiviner
Copy link

(wrong-number-of-arguments nil 0)
  signal(wrong-number-of-arguments (nil 0))
  git-gutter+-process-diff("/home/stardiviner/scripts/autostart/play_video.sh")
  git-gutter+-refresh()
  run-hooks(after-save-hook)
  basic-save-buffer()
  save-buffer(1)
  funcall-interactively(save-buffer 1)
  call-interactively(save-buffer nil nil)
  command-execute(save-buffer)

I open the file with Emacs server mode enabled, and open it with emacsclient.
I got this error backtrack sometimes when I open a bash script file, and do some modifcations, and try to save this file. Then I got this error.

And I have not meet this error in other formats. and not in a opened new file.

My Emacs version: "GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.4)\n of 2014-11-03 on dark"

@nonsequitur
Copy link
Owner

Please try to load the uncompiled source by adding to following to your config:
(load "path/to/git-gutter+.el")

That should give a more detailed backtrace. Right now, I can't see which function call is failing.

@stardiviner
Copy link
Author

After load that file, I got this output from shell,
*ERROR*: Wrong number of arguments: nil, 0
And have a shell command alias
alias e=emacsclient -c

@nonsequitur
Copy link
Owner

So you added (load "path/to/git-gutter+.el") to your .emacs and now Emacs fails starting up?

Try running Emacs with the option --debug-init to get a full backtrace.

@stardiviner
Copy link
Author

No, I mean after added that line into my .emacs, I can run Emacs, but my alias alias e=emacsclient -c will fail at first time when I open a file e filename.sh, and shows that error message in shell, but the second time I can open the file successfully without any error. This is where I find it weird.

(Sorry I have not declare my situation clearly at first)

And even I turn the debug option on, I still get same error output. No backtrace for the emacsclient opening file.

@nonsequitur
Copy link
Owner

  1. Does the same error occur when you open the file by find-file right after starting Emacs?
  2. Could you check if the error persists if you run your config in Emacs 24 instead of 25?

@stardiviner
Copy link
Author

  1. Never have error when I use find-file
  2. I'm using Arch Linux, I need to google it how to install Emacs 24 on Arch. (I will update later)

@nonsequitur
Copy link
Owner

It's probably related to symlinks. Here's the relevant issue.

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

No branches or pull requests

2 participants