Comments (4)
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.
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.
That's what I was planning on. I'll work on it and get something pushed up soon.
from code-peek-atom.
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)
- 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
- 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
- Error reported HOT 9
- 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.