Coder Social home page Coder Social logo

Comments (13)

trefis avatar trefis commented on August 18, 2024

I'm guessing you're using emacs?

from merlin.

brabalan avatar brabalan commented on August 18, 2024

Oops, yes, sorry.

from merlin.

asmanur avatar asmanur commented on August 18, 2024

Could you be a little more specific ? I have a little delay when trying to complete after "Batteries.", is this kind of completion you are talking about, or it is slow even when there is few matches ?

from merlin.

brabalan avatar brabalan commented on August 18, 2024

It happens even with very few choices. For instance, typing "str", I immediately have 5 choices, but it's when I select the choice that the delay happens.

I also see some delay when I'm using "backspace" on such lines, or when I edit the "locked" zone. I suspect merlin keeps trying to compile what I write, and this interacts badly with completion. I don't know how to tell merlin to stop trying to find the types of things, to see if this is the culprit.

If it matters, I'm on OS X, with a Cocoa emacs 24.2.1, built with homebrew. I installed merlin yesterday with opam.

from merlin.

asmanur avatar asmanur commented on August 18, 2024

It happens even with very few choices. For instance, typing "str", I immediately have 5 choices, but it's when I select the choice that the delay happens.

I also see some delay when I'm using "backspace" on such lines, or when I edit the "locked" zone. I suspect merlin keeps trying to compile what I write, and this interacts badly with completion. I don't know how to tell merlin to stop trying to find the types of things, to see if this is the culprit.

If it matters, I'm on OS X, with a Cocoa emacs 24.2.1, built with homebrew. I installed merlin yesterday with opam.


Reply to this email directly or view it on GitHub:
#16 (comment)

You could try (setq merlin-idle-delay 0.). By the way are you up to
date with master, completion has been slightly changed yesterday.

from merlin.

let-def avatar let-def commented on August 18, 2024

Ok, I tried Merlin with vim and aquamacs on a Mac OS X Mountain Lion.

Vim integration with Merlin was completely transparent, going like a breeze.
Aquamacs was almost unusable, with severe slowdown during completion or idle-typing.

This seem related to OcamlPro/typerex#2 .

from merlin.

brabalan avatar brabalan commented on August 18, 2024

You could try (setq merlin-idle-delay 0.).

I did, but it did not change anything.

By the way are you up to
date with master, completion has been slightly changed yesterday.

I use the opam version. Does it directly come from git, or is it a released version? Is there a way to update to master using opam?

from merlin.

asmanur avatar asmanur commented on August 18, 2024

You could try (setq merlin-idle-delay 0.).

I did, but it did not change anything.

By the way are you up to
date with master, completion has been slightly changed yesterday.

I use the opam version. Does it directly come from git, or is it a released version? Is there a way to update to master using opam?

opam install merlin should do.

from merlin.

brabalan avatar brabalan commented on August 18, 2024

I updated the version and it's even slower.

from merlin.

brabalan avatar brabalan commented on August 18, 2024

OK, so it seems that the issue is that merlin tries to find the type as it does the completion. What would be helpful is a way to avoid merlin to automatically find the types (so I would need to manually do a C-c C-ret to make the locked zone grow).

from merlin.

asmanur avatar asmanur commented on August 18, 2024

Alan Schmitt [email protected] writes:

OK, so it seems that the issue is that merlin tries to find the type as it does the completion. What would be helpful is a way to avoid merlin to automatically find the types (so I would need to manually do a C-c C-ret to make the locked zone grow).

Thanks for the report. I disabled the idle checking during completion
(or at least I believe I have). Could you try again ? Besides I disabled
the synchronization during automatic completion so that no other merlin
commands are run during completion. If you want to synchronize the
buffer and complete, you can now use the new shortcut C-c TAB (which
overrides tuareg).

from merlin.

brabalan avatar brabalan commented on August 18, 2024

It seems to be much better. I'll keep stressing it and will reopen if I notice something wrong. Thanks a lot!

from merlin.

brabalan avatar brabalan commented on August 18, 2024

I tried another version of emacs for OS X, and merlin is much faster on it (as well as flyspell, which used to be very slow as well). So this may be another way to solve this.

Here it is: https://github.com/railwaycat/emacs-mac-port

from merlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.