Comments (3)
6.1
should solve this, but it's not yet up on apm (#26) so you have to update manually (download zip and replace in your packages folder)
Edit:
I take it back, it's still not solved.
It seems the atom.project.getPath()
resolves to undefined
upon plugins initialization (see source), for some reason, so it might be an Atom issue. Not sure if that is the prime reason, though, because it's undefined
even when Atom is started via console - but the plugin correctly recognizes project's path.
Also, it's not an issue of Gruntfile.js
not being found, it's the issue of Gruntfile.js
being search for in a different folder - in this case in your Atom.exe
folder (to which it falls back).
In any case, this is a duplicate of your prev issue #20
from atom-grunt-runner.
I don't know much about developing these Atom plugins, but here's my theory after fiddling with the code for a few minutes: The plugin's initialization function, which caches the project path, runs when a new window is opened. If the user clicks on a file in the project directory or runs the "atom" command there, a window opens and the path is defined immediately. But when the user opens a blank new window, the path is not defined (how could it be? nothing is open). When the user drags a folder into the window or opens a project via the Project Manager extension, the project path is then defined, but Grunt Runner doesn't know this because it's not listening for the change.
So, basically, to get around this, Grunt Runner either needs to listen for changes to the project path or wait until the user attempts to use Grunt Runner to use the path (because it would be available then). For the latter approach, is it possible the package could just wait until the user tries to use the Run command to parse the gruntfile?
from atom-grunt-runner.
Duplicate of #10. Several issues cause Error loading Gruntfile: gruntfile not found
from atom-grunt-runner.
Related Issues (20)
- Grunt file (Gruntfile.js) fails to be loaded if it uses mocha HOT 22
- Error loading Gruntfile: gruntfile not found HOT 1
- Play sound on warning/errors while running grunt task
- Gruntfile not found (again) HOT 12
- Gruntfile not found HOT 3
- Show error symbol when watch is running HOT 1
- Support multiple Gruntfiles (multiple projects in same window) HOT 2
- Is there a way to pass arguments to a grunt task? HOT 6
- Run specific Grunt task without clicking? HOT 4
- Moving atom-grunt-runner to kokarn HOT 13
- After update to 0.13.0 stopped to run and find tasks HOT 8
- After Disable and Enable cause the package to create a new panel HOT 4
- Uncaught TypeError: this.parseGruntFile is not a function
- Make sure running works as intended with Grunt 1 HOT 2
- Atom Grunt Runner does not load properly when using 'grunt-contrib-requirejs' module HOT 14
- Ctrl + Alt + Shift + T suggestion always on top of the screen
- Doesn't run, nothing in log HOT 1
- Support Multiple Grunt Files HOT 9
- Error loading gruntfile: Gruntfile not found HOT 6
- Error: rsync exited with code 12
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 atom-grunt-runner.