atom-grunt-runner icon indicating copy to clipboard operation
atom-grunt-runner copied to clipboard

Error loading gruntfile: Gruntfile not found

Open ghost opened this issue 8 years ago • 6 comments

Tried multiple things; with/without root, forward/backslash, with/without .js ext and case sensitivity. Also tried npm install after removing the node_modules folder. The gruntfile tasks work OK through cmd.

I can confirm however the gruntfile is there. If I copy the path that it provides it resolves immediately.

grunt

Could it be a syntax issue or the way my gruntfile is composed?

ghost avatar Jan 12 '17 22:01 ghost

I think it's because it's not in the root of the project. Could you try to move it there?

If that doesn't help, please make sure it's not a duplicate of #10 or #20 :)

kokarn avatar Jan 13 '17 09:01 kokarn

I've just copied it into the root, same issue. Tried those things listed in my initial post to no avail. Could there be a conflict with other packages perhaps?

atom-beautify / atom-jshint / file-icons / highlight-selected / linter / minimap / npm-install / simple-drag-drop-text

Wouldnt prepending the subfolder under Gruntfile Paths counter the root requirement?

ghost avatar Jan 13 '17 18:01 ghost

It would, in some cases. There's been quite a lot of discussion and fixes for the Gruntfile path and right now it's actually supported to not have it in root (#70).

I think the problem this time is with your actual path. Could you try to move it to a folder you can actually share? By the looks of it, it's mixing slashes (which shouldn't be a problem) but we've had issues with stuff like spaces before (which also should work).

kokarn avatar Jan 16 '17 09:01 kokarn

Sorry! Cloned it to local now and I can actually share the whole thing. :-)

gruntatom

I left a copy of the gruntfile in the root for reference.

ghost avatar Jan 16 '17 18:01 ghost

Hmm, I see. Probably related to nesting but not really sure how and why. Might need to look through the code that finds Gruntfiles at some point...

kokarn avatar Apr 26 '17 07:04 kokarn

Any fix for this yet?

freddyyeddy avatar Nov 27 '19 04:11 freddyyeddy