Comments (16)
@tvooo Take a look at this comment.
from atom-grunt-runner.
I'm seeing the same issue... I tried to set process.env.PATH
like the comment says but no luck. I'm not having any issues with Sublime Text though.
from atom-grunt-runner.
@JaKXz Try to compare the process.env.PATH
when launching Atom from the command line with the one when launching from the icon.
from atom-grunt-runner.
6 month old (feature breaking) bug with no solution or even acknowledgment from the creator?
I'm assuming this is a dead project and am removing this potentially super-useful package from my installation...
Sad.
from atom-grunt-runner.
It definitely lacks the same "wow" potential as being able to select between grunt tasks but noseglid/atom-build is a working solution for anyone else experiencing these problems with grunt-runner
and have yet to find or be presented with a solution.
from atom-grunt-runner.
So this seems to be related to a few things. First, if you're starting atom from the command line, it gets path correct, but in mac at least, starting it spotlight or mission control sets it somewhere else. Adding /usr/local/bin/
(the default path for when you do npm install -g grunt-cli
) to the path in the grunt-runner settings seems to get it to run grunt (for me). However, its running the wrong gruntfile. Trying to figure out which, I suspect its trying to run the grunt file for grunt-cli, but i'm not sure.
from atom-grunt-runner.
Interesting, that was a typo in my gruntfile (I think i hit a key when i thought i had my terminal focused). Updating the path to grunt cli in the plugin settings worked, as well as loading atom in the project directory from the command line. Looking in to setting up the paths for launching things from spotlight/mission control. I might modify the readme a bit and submit a PR.
from atom-grunt-runner.
Also note that reloading the application once youve opened your project (ctrl+cmd+alt+L) will fix issues where its looking in the wrong directory.
from atom-grunt-runner.
I've found the same as @maxkorp - refuses to work when loading through Spotlight unless you reload it as mentioned. In both cases setting the path in InitConfig is required (/usr/local/bin
for me). It seems that it has to do with Atom loading the project on startup, vs being told to open it via cmd+O which you have to do when opening via Spotlight.
from atom-grunt-runner.
Correct. I have a few changes locally that fix this, but I haven't gotten to clean them up yet so I'm not comfortable filing a pull request (The ones in my commits mentioned above dont work at all, but i took a fresh stab at it).
I'll try to get that this weekend. I basically default to include /usr/local/bin
, as well as reinitializing when the project changes (theres an event for that). As it stands, the functionality would just keep grunting project a if you opened from project a in the terminal, but then used another plugin to change to project b. Changes fix that as well.
from atom-grunt-runner.
Ah, this would be very welcome!
I've encountered the same error simply by first having an empty tab and then opening a project.
from atom-grunt-runner.
Yeah so the issue is that upon initialization of the package, it grabs the current project directory and caches it. It also tries to load the grunt tasks for the project, and cache those. When you load up via finder or spotlight, the project directory is undefined. Simply reloading that info on the project changed event or whatever its called takes care of it. Its a simple enough change, my coffeescript is just rougher than all get out.
from atom-grunt-runner.
@maxkorp Is this still an issue?
from atom-grunt-runner.
I don't know, unfortunately. I haven't been using grunt in a real way for 6+ months now, as I have everything automated.
from atom-grunt-runner.
Hmm, i'll close this for now then. If somebody else reports it, i'll reopen. Thanks for the quick response!
from atom-grunt-runner.
👍 No problemo!
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.