Sublime Text build: cannot find the file specified

前端 未结 3 1970
半阙折子戏
半阙折子戏 2021-01-03 09:04

I\'ve installed the CoffeeScript plugin via Package Control. When I try to build test.coffee it gives me this:

[Error 2] The system cannot find the file spec         


        
相关标签:
3条回答
  • 2021-01-03 09:39

    Thanks for the help guys. I've finally found the problem.

    On Windows, instead of

    "cmd": ["cake", "sbuild"]
    

    it should be

    "cmd": ["cake.cmd", "sbuild"]
    

    Instead of modifying it just add:

    "windows":
    {
        "cmd": ["cake.cmd", "sbuild"]
    }
    

    That was subtle...

    0 讨论(0)
  • 2021-01-03 09:54
    1. Make sure cake is on your DOS path (I assume it is since you said that it works outside ST2)
    2. Remove the line with the path from your ST2 command. This line overwrites your DOS path and that would prevent ST2 from finding the executable.
    0 讨论(0)
  • 2021-01-03 09:57

    Using Ms Window environment, you could try this:

    {
        "windows":
        {
            "cmd": ["cake", "sbuild"],
            "selector": "source.coffee",
            "working_dir": "$project_path"
        }
    }
    
    0 讨论(0)
提交回复
热议问题