spywhere / Javatar

Java Development Plugin for Sublime Text 3
https://javatar.readthedocs.org/
Other
170 stars 20 forks source link

Option to save the restoration data elsewhere? #75

Open evandrocoan opened 7 years ago

evandrocoan commented 7 years ago

I am Sublime Text build 3114/Windows 10.

All the time this plugin keep reloading the setting files, but I do not understand why it does that while I am neither programming on java.

reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings
indexing [queue 27]: no files were indexed out of the 1 queued, abandoning crawl
reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings
reloading settings Packages/User/Javatar.sublime-settings

Can it be disabled? It is mostly spamming the console.

I think it is a message from Sublime Text, but why Javatar keeps triggering it?

spywhere commented 7 years ago

Javatar has a feature to restore the project settings upon hot exit for unsave project which require to save the project settings every now and then. You can disable it in the Javatar preferences.

And if possible, could you show me what settings did Javatar set for you (just dump all Javatar settings from your user's settings)?

evandrocoan commented 7 years ago

Thanks. Is this the settings you mention?

    // Time interval to update project data for restoration (in milliseconds)
    "project_update_interval": 60000,

I think it is nice to continually saving, so can just Javatar save it elsewhere, so Sublime Text stops reloading the file?

My setting file SublimeText\Data\Packages\User\Javatar.sublime-settings is:

{
    "jdk_version":
    {
        "JDK1.8.0u131":
        {
            "path": "C:\\Program Files (x86)\\Java\\jdk1.8.0_131\\bin",
            "update": "131",
            "version": "1.8.0"
        },
        "JDK1.8.0u65":
        {
            "path": "C:\\Program Files\\Java\\jdk1.8.0_65_old\\bin",
            "update": "65",
            "version": "1.8.0"
        },
        "JDK1.8.0u71":
        {
            "path": "C:\\Program Files\\Java\\jdk1.8.0_71\\bin",
            "update": "71",
            "version": "1.8.0"
        },
        "use": ""
    },
    "message_id": 20,
    "project_data":
    {
        "2":
        {
            "build_systems":
            [
                {
                    "cmd":
                    [
                        "galileo.bat",
                        "$project_path/plugins/addons/amxmodx/scripting/galileo.sma",
                        "galileo",
                        "$packages"
                    ],
                    "file_regex": "^(.+)\\(([0-9]+ ?.*)\\) : (.*)",
                    "name": "Galileo Installer",
                    "variants":
                    [
                        {
                            "cmd":
                            [
                                "galileo.bat"
                            ],
                            "name": "Clean Setup"
                        }
                    ],
                    "working_dir": "$project_path/installers"
                },
                {
                    "cmd":
                    [
                        "sh",
                        "$project_path/installers/install_multimod_plugins.sh"
                    ],
                    "name": "Install Multimod Plugins",
                    "working_dir": "$project_path/"
                },
                {
                    "cmd":
                    [
                        "sh",
                        "$project_path/installers/install_multimod_server.sh"
                    ],
                    "name": "Install Multimod Server",
                    "working_dir": "$project_path/dependencies/"
                }
            ],
            "folders":
            [
                {
                    "folder_exclude_patterns":
                    [
                        "installers/clean_setup",
                        "dependencies/amxmodx/plugins"
                    ],
                    "path": "."
                },
                {
                    "path": "D:/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages"
                }
            ]
        },
        "3": null
    }
}
spywhere commented 7 years ago

Yes, that's exactly what's it doing. Right now, Javatar has no settings for output path for project data so that's why it save into the user's preferences instead.