Comments (9)
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.
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.
from code-peek-atom.
I think something went wrong there.
from code-peek-atom.
from code-peek-atom.
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.
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.
@HanJoHibender Can you send me an example of the function declaration you're trying to match?
from code-peek-atom.
@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)
- Excludes directories to search in HOT 7
- Add support for golang .go files HOT 2
- Language type recognition suggestion. HOT 2
- js arrow function -> "Could not find function "fnName" in project." HOT 10
- Uncaught TypeError: Cannot read property 'ignoreCase' of undefined HOT 4
- Not compatible with Semanticolor HOT 1
- Need ES6 class shorthand method support HOT 6
- Add hyperclick HOT 2
- can i peek functions at current project? HOT 4
- support Typescript class HOT 5
- Support TypeScript React HOT 4
- Support PL/SQL HOT 1
- Peeking doesn't work in spec file HOT 1
- Peeked code only scrolls to top of function HOT 11
- Uncaught Error: Can't save destroyed buffer HOT 6
- Support MagicPython
- Support for Babel language? HOT 1
- Indexing Support HOT 3
- please add css
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-peek-atom.