JsonHunt / save-commands

Assign parametrized shell commands to file globs to be automatically run whenever the file is saved
MIT License
20 stars 11 forks source link

Not working at all #22

Closed gsklee closed 8 years ago

gsklee commented 9 years ago

Package is not working at all with Atom 1.0.11

andykais commented 9 years ago

I agree with this statement. I am also running 1.0.11 and I have this save-commands.json file in my project directory

{
    "timeout": 4000,
    "commands": [
         "*.tex : touch {relPath}/test.txt"
    ]
}

I have no "save-commands" in config.cson, is it necessary? I can see the Run batch save-commands option in my right click menu but that also does nothing

jacobrs commented 9 years ago

On 1.0.13 it doesn't seem to work either. @andykais I have the same type of setup where I run without a cson file. I'll try to add that and check if it fixes the issue. My save-commands.json consists of this

{
    "timeout": 4000,
    "commands": [
        "** : /Users/jacob/csbin/pts"
    ]
}

Where pts is loaded in my path variables and is suppose to run as a script, standard bash stuff. I get the issue #24

andykais commented 9 years ago

could you tell me where you got that error message in #24? Just some output to affirm save-commands is doing something would be helpful

jacobrs commented 9 years ago

I get the error every time I try to save a file in that project. save-commands seems to be trying to do something, but it runs into an error before it really does anything.

jacobrs commented 9 years ago

Ended up fixing the error by modifying the lib/atom-save-commands.coffee script. Left more details in issue #24

JsonHunt commented 8 years ago

fixed