Giter VIP home page Giter VIP logo

Comments (4)

DFreds avatar DFreds commented on September 17, 2024

Hey, thanks for reporting this.

The reason you get this error is because Code Peek attempts to make the search process faster by only finding functions in files with the same extension (https://github.com/DFreds/code-peek-atom/blob/master/lib/code-peek.coffee#L113).

I could add some undefined error handling around this so you don't get this issue.

from code-peek-atom.

jwverzijden avatar jwverzijden commented on September 17, 2024

I suggest that if the extention is "" (none) you actually do search all files, or something similar, otherwise it is fair to assume that a function will be in the same type of file

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

That's what I was planning on. I'll work on it and get something pushed up soon.

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

Hey @crostine,

I was only able to reproduce this when the grammar type was not set, which is the default case when there is no file extension. Code Peek needs the grammar type in order to pick the appropriate regular expression. I went ahead and added an if check that displays a warning if the grammar type is null. I think this "fixes" the issue.

I also made it so that it will search the entire project if there is no file extension. So again, no need for a file extension, just the grammar.

Check it out (version 1.4.16): #20

Let me know if you're still seeing an issue after choosing the grammar.

Thanks!

from code-peek-atom.

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.