GithubHelp home page GithubHelp logo

Comments (17)

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Yes, that is weird. Do you get an error message?

from edts.

qoocku avatar qoocku commented on July 24, 2024

*Messages* buffer sayes:

ferl-search-function: function foo/1 not found

when looking for local foo/1 function.

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Nice! That sounds like an actual bug:) Would it be possible for you to provide a minimal working example to reproduce the bug? What do the clauses of foo/1 look like?

from edts.

qoocku avatar qoocku commented on July 24, 2024

Hmm, I can describe it, sure, but the problem is that ANY local function is not found. Simply like that. No matter it's exported or not. Any arity. Any name.

from edts.

qoocku avatar qoocku commented on July 24, 2024

Ok, it may be a clue: personally I put SPACE after function name, like this:

foo (...) ->
   ...

from edts.

qoocku avatar qoocku commented on July 24, 2024

Yep. This is it. The SPACE... Removed and search worked. But, it's still a bug ;)

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Should be fixed now. Thanks for your time!

from edts.

qoocku avatar qoocku commented on July 24, 2024

Let me guess: the bug still exists for local functions with space after name AND arity /= 1? ;)

In my case, when the cursor is on "foo/1" the function will find "foo/0" definition.

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

haha, yes. Who would put a space there?? :D

from edts.

qoocku avatar qoocku commented on July 24, 2024

I don't know...people are strange ;)

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Fixed

from edts.

qoocku avatar qoocku commented on July 24, 2024

Nop. Try this:

abc() ->
    abc(1,2,3,4).

abc(A,B,C,D) ->
    ok.

And try to find abc/4.

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Hm. No end to the issues it seems and I'm to tired to write unit tests for this right now which I really should, but I think it works now.

from edts.

tjarvstrand avatar tjarvstrand commented on July 24, 2024

Rewrote the "parsing"-function entirely. Can you confirm that it works as expected now?

from edts.

qoocku avatar qoocku commented on July 24, 2024

Yep. For me it works well.

from edts.

qoocku avatar qoocku commented on July 24, 2024

Sorry, for reopening: I got to check it on my second box ;)

from edts.

qoocku avatar qoocku commented on July 24, 2024

Success confirmed.

from edts.

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.