Giter VIP home page Giter VIP logo

Comments (9)

HanJoHibender avatar HanJoHibender commented on September 17, 2024 1

I don't know if I have exactly the same problem, but after a fresh package install of code-peek, the javascript functions should be found I guess, however, when I select the description text of a function or the part where I import it, the ctrl-alt-e shortcut returns an error: "Could not find {functionName} in project".

However if the function is declared within the scope of the same file it does not return an error. It feels like code-peek does not search through all of the files in the project. Is that correct? And if so, would you know a fix?

TLDR; ctrl-alt-e only works within the same file

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

Hey, just send me an example of the function you're trying to peek and I'll see if I can reproduce it. Also, the type of file shown at the bottom matters. If you could tell me what that is or see if it's in this list (https://github.com/DFreds/code-peek-atom/blob/master/lib/supported-files.coffee), that'd be great.

from code-peek-atom.

cheborneck avatar cheborneck commented on September 17, 2024

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

I think something went wrong there.

from code-peek-atom.

cheborneck avatar cheborneck commented on September 17, 2024

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

I mean that I can't see the image. Please send me some code and a picture of your atom window.

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

Hm, I wrote code peek a long time ago. It uses the Atom API to search through all the files for a match based on some regular expressions. It's possible that Atom has updated it's API since I've looked at it. I'll check it out

from code-peek-atom.

DFreds avatar DFreds commented on September 17, 2024

@HanJoHibender Can you send me an example of the function declaration you're trying to match?

from code-peek-atom.

HanJoHibender avatar HanJoHibender commented on September 17, 2024

@HanJoHibender Can you send me an example of the function declaration you're trying to match?

These are async functions used in a React environment, async and const are not part of the normal declaration. I think unfilled they are called anonymous functions, but anonymous declarations are out of scope.

Example:
export const functionName = async ( variables ) => { code }

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.