Giter Site home page Giter Site logo

Comments (16)

dgutov avatar dgutov commented on May 17, 2024

When I using it for completing it always all methods for all objects.

That's fairly normal, unless the call target is statically known (and we don't do any complex analysis), completion will return methods from all classes. "Statically known" situations include calling a method on a class, or calling a method with implicit target.

Seeing that a call target is a constant (and using its class) should be relatively easy to implement, but that hasn't been done yet either.

However if I complete via C-M-i it will show "[No matches]".
Did I do something wrong?

It should show the same list of completions. What's the value of completion-at-point-functions in that Ruby buffer?

from robe.

madper avatar madper commented on May 17, 2024

Hi,
after I trigger completion-at-point it shows:
Contacting host: 127.0.0.1:24969 then shows "[No matches]".
BTW, shouldn't it only return String's methods when I call it after "a"..
BTW2. if I press C-M-i or call completion-at-point after "a".re, it will return 100 methods. But shouldn't it only return String's methods?

from robe.

dgutov avatar dgutov commented on May 17, 2024

You haven't answered my question. What's the value of completion-at-point-functions?

But shouldn't it only return String's methods?

Ideally, yes. Like I said, not implemented yet.

from robe.

madper avatar madper commented on May 17, 2024

Oops, I see. Thank you!
I'm using C-h v completion-at-point-functions and get following outputs:

completion-at-point-functions is a variable defined in `minibuffer.el'.
Its value is (robe-complete-at-point t)
Local in buffer test.rb; global value is 
(tags-completion-at-point-function)

from robe.

dgutov avatar dgutov commented on May 17, 2024

Hmm, okay. That looks normal.

When that happens, what's at the end of /tmp/robe-access.log?

from robe.

madper avatar madper commented on May 17, 2024

Hi, here is the log:

/tmp % cat robe-access.log 
I, [2014-10-12T00:05:41.230443 #18259]  INFO -- : GET /ping/
I, [2014-10-12T00:05:42.709240 #18259]  INFO -- : GET /complete_method/-/!/-/-
I, [2014-10-12T00:06:14.507644 #18259]  INFO -- : GET /complete_method/-/!/-/-

from robe.

dgutov avatar dgutov commented on May 17, 2024

Ok, again looks normal.

What's your installed versions of Emacs and Robe?

from robe.

madper avatar madper commented on May 17, 2024

(emacs-version) -> GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2014-10-10 on lgw01-11 ;;; does it too new?
robe -> 0.7.7 I installed it from marmalade via M-x list-package then choose robe to be installed.

from robe.

dgutov avatar dgutov commented on May 17, 2024

Ah. The Marmalade version should be pretty old now. Can you try it from MELPA?

from robe.

dgutov avatar dgutov commented on May 17, 2024

does it too new?

It's a bit too new. It's not exactly a problem, but you'd be better advised to use the 24.4 pretest until it comes out. There's not much shiny in Emacs 25 yet.

from robe.

madper avatar madper commented on May 17, 2024

The robe in MELPA is 20140915.1700. And I can reproduce the same issue with it. It's a bit odd that company-robe will always get lots of result. But C-M-i won't always work.

from robe.

madper avatar madper commented on May 17, 2024

Ah, maybe I should downgrade my emacs... :-/ thanks for your help. :-D

from robe.

dgutov avatar dgutov commented on May 17, 2024

Please let me know if it helps. Because I'm pretty sure the Emacs version shouldn't be the problem in this case.

from robe.

dgutov avatar dgutov commented on May 17, 2024

What about that unexpected token $end bit? Which package is it from?

from robe.

madper avatar madper commented on May 17, 2024

unexpected token $end should come with flycheck.
I tried to downgrade my emacs several days ago. But I got lots of error looks like:
no "function-put" I can't remember precisely...
I'll continue trying to downgrade it...

from robe.

rranelli avatar rranelli commented on May 17, 2024

I had problems downgrading my Emacs recently and recompiling the packages (i.e., removing the ~/.emacs.d/elpa directory altogether) solved the issue.

Maybe the errors you're facing are related to this.

from robe.

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.