Problem with magit-ediff

141 views
Skip to first unread message

theturingmachine

unread,
Jan 18, 2012, 6:39:09 AM1/18/12
to magit
Since some time ago (maybe 2 months) I sometimes can't do magit-ediff
on some files:

I always get the following error:

string-match-p: Wrong type argument: stringp, nil

I tried to debug this and it seems that the function (magit-current-
section) is returning nil.

I'm using the latest magit from the git repo (as of today)

Any ideas?

Greetings

Yann Hodique

unread,
Jan 18, 2012, 6:46:14 AM1/18/12
to theturingmachine, magit

> Any ideas?

well, magit-ediff is not obviously broken (I'm using it regularly), so
I guess we'll need some more details to investigate.
If you could provide a complete recipe (including the state of the
repository) to reproduce the issue, that would be ideal.
Otherwise, please at least provide a complete backtrace, using
`toggle-debug-on-error'.

Thanks,

Yann.

--
There is no reality -- only our own order imposed on everything.

-- Basic Bene Gesserit Dictum

theturingmachine

unread,
Jan 18, 2012, 11:25:31 AM1/18/12
to magit
This is my emacs version:
GNU Emacs 24.0.92.1 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
of 2012-01-16 on xxx

It was also happening before on 24.0.91

I tried to get a backtrace but with toggle-debug-on-error it hangs...

Any clues, how can I provide you with more info?

On Jan 18, 12:46 pm, Yann Hodique <yann.hodi...@gmail.com> wrote:

Yann Hodique

unread,
Jan 18, 2012, 11:31:28 AM1/18/12
to theturingmachine, magit
On Wed, Jan 18, 2012 at 5:25 PM, theturingmachine
<theturin...@gmail.com> wrote:
> This is my emacs version:
> GNU Emacs 24.0.92.1 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
> of 2012-01-16 on xxx
>
> It was also happening before on 24.0.91
>
> I tried to get a backtrace but with toggle-debug-on-error it hangs...
>
> Any clues, how can I provide you with more info?

If you can provide the repository (or steps to build a repository that
behaves badly), and precise instructions on how to reproduce, we'll be
able to investigate.

Yann.

theturingmachine

unread,
Jan 18, 2012, 12:51:04 PM1/18/12
to magit
For me I could reproduce like this:

clone this repo: git://github.com/xing/amiando.git

git co -b magit-test v0.3.6
git cherry-pick e205ee0

This will give you a conflict, then on emacs on the conflicting file
"lib/amiando.rb" hit "e" key.

Hope this helps.

Greetings and thanks

On Jan 18, 5:31 pm, Yann Hodique <yann.hodi...@gmail.com> wrote:
> On Wed, Jan 18, 2012 at 5:25 PM, theturingmachine
>

York Zhao

unread,
Jan 18, 2012, 5:34:41 PM1/18/12
to theturingmachine, magit
I have experienced this problem rencently and had reported with details to this
group:

http://groups.google.com/group/magit/browse_thread/thread/cabe07cb5bcbcd1f

The problem dissapeared after using newer Emacs commits from git.


York

Reply all
Reply to author
Forward
0 new messages