Nyxynyx
Nyxynyx

Reputation: 63599

Prevent Sublime Text from overwriting .sublime-project

Running Sublime Text 3 with the Anaconda IDE package on Mac OS X, it appears that when I edit the .sublime-project file, for some reason some of the changes will be removed after some time.

Any ideas how to prevent this?

Before

{
    "build_systems":
    [
        {
            "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
            "name": "Anaconda Python Builder",
            "selector": "source.python",
            "shell_cmd": "~/anaconda/envs/test/bin/python -u \"$file\"",
            "env": {
                "PYTHONPATH": "/Users/nyx/test"
            }
        }
    ],

After

env setting is removed. Not sure what triggers this

{
    "build_systems":
    [
        {
            "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
            "name": "Anaconda Python Builder",
            "selector": "source.python",
            "shell_cmd": "~/anaconda/envs/test/bin/python -u \"$file\"",
        }
    ],

Upvotes: 2

Views: 285

Answers (1)

Michelle Welcks
Michelle Welcks

Reputation: 3894

If it's having a problem with the 'env' tag and resetting it, can you try extra_paths?

{
    "settings": {
        "extra_paths":
        [
            "/Users/nyx/test"
        ]
    }
}

Upvotes: 1

Related Questions