Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak build system for windows #104

Merged
merged 1 commit into from
Sep 22, 2013
Merged

Tweak build system for windows #104

merged 1 commit into from
Sep 22, 2013

Conversation

FichteFoll
Copy link
Member

It can't find cake, even though it's on PATH - as cake.cmd though, so I added .cmd to it. "shell": true would also do it, if you prefer this.

And while I was editing it I also noticed the path override which obviously does not work on Windows.

Sadly, running cake still files a huge traceback for me, but that's a different thing.

It can't find `cake`, even though it's on PATH.
@FichteFoll
Copy link
Member Author

Okay, what I was looking for is "cmd": ["coffee.cmd", "-b", "-c", "$file"]. Maybe you want to add this as a separate build? Or actually make this the default build for coffee files and let users select the cake build if their project needs it? It could also use some regexps for the exec output.

Edit: related: sustained/CoffeeScript-Sublime-Plugin#9

@aponxi
Copy link
Collaborator

aponxi commented Sep 20, 2013

@lavrton you use windows right? can you test it please?

aponxi added a commit that referenced this pull request Sep 22, 2013
Tweak build system for windows - not tested by aponxi
@aponxi aponxi merged commit 7b722cf into SublimeText:master Sep 22, 2013
@FichteFoll
Copy link
Member Author

FYI, I now have this, which builds to coffeescript by default:

{   "cmd": ["coffee", "-b", "-c", "$file"]
,   "selector": "source.coffee"

,   "windows":
    {   "shell": true
    }

,   "variants":
    [   {   "name": "Run",
            "cmd": ["coffee", "$file"]
        }
    ,   {   "name": "Cake",
        ,   "cmd": ["cake", "sbuild"]
        ,   "path": "/usr/local/bin:$PATH"
        ,   "working_dir": "$project_path"
        ,   "windows":
            {   "shell": true
            ,   "path": "$PATH"
            }
        }
    ]
}

Thoughts? The alternative is to define two build systems but since I won't use cake in any time soon, this is way more handy for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants