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

merlin-locate often fails. #58

Closed
roshanjames opened this issue Aug 15, 2013 · 2 comments
Closed

merlin-locate often fails. #58

roshanjames opened this issue Aug 15, 2013 · 2 comments
Labels

Comments

@roshanjames
Copy link

I am adding this issue just for tracking. This is a bug that I have shown to Thomas a few times.

One can ask merlin to auto-complete something following which if one were to ask merlin to jump to the location of the completed thing, it is unable to do so. It is unclear why it is unable to do that.

Have some debug information or error message such that one is able to do that. One approach to doing this is to have better debug information printed out into the debug file when MERLIN_LOG is enabled.

@ghost ghost assigned trefis Aug 16, 2013
@trefis
Copy link
Contributor

trefis commented Aug 16, 2013

Ok so, just to react on that so that people unfamiliar with the context are mislead : completion in merlin works using cmi files, whereas the locate command requires cmt files. So it might be the case that completion works but locate doesn't without necessarily meaning there is a bug.

It is however the case here that it is a bug, since Roshan has its cmt files in the same place as his cmi files, so somewhere which seems to be in merlin's path, since completion is working.

So as roshan mentioned, since that kind of bug isn't easy to reproduce nor debug, I'll start by working on a logging system and see what information we can get out of that.

@trefis
Copy link
Contributor

trefis commented Sep 5, 2013

Hi!
Sorry for the delay.

So, the logging thing finally found its way into master.
To debug only the locate command, you need to launch merlin with the flag -debug locate.<file path>
That can be done from emacs with M-x merlin-process-add-flag followed by M-x merlin-restart-process or can be put in your .merlin with the new "FLG" directive ( FLG -debug locate,<file path>).

Also, I found a bug yesterday which explains why merlin sometimes failed to locate some definitions.
You should definitely try the new master.

I'm waiting for your feedback!

@trefis trefis closed this as completed Oct 4, 2013
@avsm avsm unassigned trefis Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants