Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Gruntfile not found - (already tried #77 and #97) #113

Closed
jaykobo opened this issue Sep 26, 2017 · 7 comments
Closed

Gruntfile not found - (already tried #77 and #97) #113

jaykobo opened this issue Sep 26, 2017 · 7 comments

Comments

@jaykobo
Copy link

jaykobo commented Sep 26, 2017

If the Gruntfile.js is on the root project folder there is no problem.

But sometimes the Gruntfile.js is located in a subfolder. I already tried a lot of things.. looked at issue #77 and tried the tips from the comments (from @mihirgokani007 and @aolin480). I've also tried the changes in main.py from #97 but nothing helps.

In my example the project folder is located:
Projects/client/projectname

And the Gruntfile.js is located:
Projects/client/projectname/_sources/Gruntfile.js

Here are a couple of solutions i tried in my .sublime-project:

{
    "folders":
    [
        {
            // example project path
            "path": "/Projects/client/projectname"
        }
    ],
    "settings":
    [
        {
            "SublimeGrunt":
            {
                "gruntfile_paths":
                [
                    "/_sources"
                ]
            }
        }
    ],
    "settings":
    [
        {
            "gruntfile_paths":
            [
                "/_sources"
            ]
        }
    ],
    "settings": {
        "SublimeGrunt": {
            "gruntfile_paths":
            [
                "/_sources"
            ]
        }
    },
    "SublimeGrunt":
    {
        "gruntfile_paths":
        [
            "/_sources"
        ]
    },
}

Is there any chance or hint i missed to make it work? Any help is really appreciated!

@jaykobo jaykobo changed the title Gruntfile not found Gruntfile not found - (already tried #77 and #97) Sep 26, 2017
@tvooo
Copy link
Owner

tvooo commented Sep 29, 2017

Have you tried omitting the / at the front of your path? So make it just "_sources".

@jaykobo
Copy link
Author

jaykobo commented Oct 2, 2017

Hey, thanks for your reply. Yes I tried all of them: "_sources", "/_sources" and "/_sources/". Unfortunately without success.

@englishextra
Copy link

@jaykobo The package's broken

@tvooo
Copy link
Owner

tvooo commented Nov 9, 2017

The package is deprecated and unmaintained. I'll remove it from Package Control when I get to it. Sorry about that. If anyone wants to pick it up, I'm happy to transfer maintainership.

@jaykobo
Copy link
Author

jaykobo commented Nov 9, 2017

Oh.. okay. Too bad. Thanks anyway for your reply.

@arjunrbery
Copy link

Hey @tvooo
Quick and dirty change to make it function on my device for now. Starts on line 70.

self.folders = get_grunt_file_paths()

to

        self.folder_paths = get_grunt_file_paths()
        self.grunt_files = []
        self.folders = []
        for f in self.window.folders():
            self.folders.append(f)
            for fp in self.folder_paths:
                self.folders.append(f + fp)

        for f in self.folders:

@tvooo
Copy link
Owner

tvooo commented Nov 26, 2018

Repository was moved to https://github.com/sptndc/sublime-grunt
Please re-file any issues that still exist.

@sptndc maybe this is worth having a look at

@tvooo tvooo closed this as completed Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants