Comments (5)
Hmm, this is interesting. Because for me Gruntfile.js works so would assume it's something with your OS. Can you test the same file on another linux box and/or a win/osx box?
from atom-grunt-runner.
I'll try to get it set up on a Mac to test, but I think it will work fine there.
Changing "/gruntfile" to "/Gruntfile" grunt-runner-view.coffee causes it to work on my Linux box. I very much suspect that this is an issue related to the fact that filenames tend to be case-sensitive on Unix boxes, and case-insensitive on OSX/Windows.
If that's the case, maybe it makes more sense to refer to /Gruntfile? I'm out of my element on Mac/Windows, so I'll defer to someone else if that's a good or safe idea.
from atom-grunt-runner.
I have a speculative fix for this.
Can you test it out for me?
Replace lines 80 through 90 in grunt-runner-view.coffee
else
Task.once require.resolve('./parse-config-task'), @path+'/gruntfile', ({error, tasks})->
# log error or add panel to workspace
if error
view.addLine "Error loading gruntfile: #{error}", "error"
view.toggleLog()
else
view.addLine "Grunt file parsed, found #{tasks.length} tasks"
view.tasks = tasks
view.togglePanel()
with this
else
Task.once require.resolve('./parse-config-task'), @path+'/Gruntfile', ({error, tasks})->
if error
# failed to load Gruntfile.js, try gruntfile.js
Task.once require.resolve('./parse-config-task'), @path+'/gruntfile', ({error, tasks})->
# log error or add panel to workspace
if error
view.addLine "Error loading gruntfile: #{error}", "error"
view.toggleLog()
else
view.addLine "Grunt file parsed, found #{tasks.length} tasks"
view.tasks = tasks
view.togglePanel()
else
view.addLine "Grunt file parsed, found #{tasks.length} tasks"
view.tasks = tasks
view.togglePanel()
If it fails for /Gruntfile it just tries with /gruntfile :)
from atom-grunt-runner.
Tested, works for me! :)
from atom-grunt-runner.
Great! I'll add that then :)
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.