[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Merlin from Vim

Le mardi 8 octobre 2013 10:08:39 Anil Madhavapeddy a écrit :

> On 8 Oct 2013, at 10:07, Thomas Gazagnaire <thomas@xxxxxxxxxxxxxx> wrote:


> >>> I have been giving it a try for the last month and it works great. My only

> >>> problem, which I haven't searched in depth to see how I can fix, is that it

> >>> doesn't seem to work when you rename modules.

> >>>

> >>> e.g. If do

> >>> module OP = Openflow.Ofpacket

> >>>

> >>> I will never get autocomplete when I type OP.

> >>

> >> I've noticed this too... I suspect this will be fixed when we build cmt files (-bin-annot) unconditionally, since that's where the compiler stashes all the module path information. Without it, the editor is guessing.

> >

> > FWI module aliases works fine with the Git version of 'ocp-index' (but Merlin is usually much better at semantics completion).


> Got it -- is there anyone working on Merlin+ocp-index at all?


> -anil


Not at the moment ; but we should definitely meet and see where we could join our efforts.

We already discussed some ideas on IRC a while ago ; since ocp-index is much lighter-weight, and uses a different approach, that would probably be in the direction of Merlin using some parts of it (eg. as a fallback in some cases)


I'm not sure about this specific problem though, since ocp-index uses a pocket-sized hand-written parser to gather that kind of info, where Merlin already has the full grammar.






Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.