nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

Project specific settings not working #53

Closed simonknittel closed 8 years ago

simonknittel commented 8 years ago

I'm currently having a problem, that my project specific settings are not working.

My .sublime-project file looks like this

{
    "folders":
    [
        {
            "path": "."
        }
    ],
    "Gulp": {
        "results_in_new_tab": true,
        "gulpfile_paths": [
            "sub-directory/sub-directory-2"
        ]
    }
}

Neither the "results_in_new_tab" nor the "gulpfile_paths" have any effect. Changing the "folders" setting does have effects, so the .sublime-project file itself gets read.

I'm using Sublime Text Build 3083.

Any ideas?

nicosantangelo commented 8 years ago

Hm you seem to be using it correctly. Could you tell me what gets printed on the Sublime Text console (View -> Show console) when you execute:

sublime.active_window().project_data()

Also, does this feature work in any other Sublime project? Which OS are you using?

simonknittel commented 8 years ago

The console command outputs this

{'folders': [{'path': '.'}], 'Gulp': {'results_in_new_tab': True, 'gulpfile_paths': ['application/drag-n-drop-test']}}

I'm using Windows 10 and it does not work in any other project.

nicosantangelo commented 8 years ago

That's weird, I was expecting to see { 'folders': [{'path': '.'}] }.

I have just tried in Windows 8 and it seems to be working so it might be a Windows 10 issue. If you don't mind, try the following:

  1. Make sure you open your project with Open Project (just in case)
  2. Write the following in the console
    • from Gulp.settings import Settings
    • from Gulp.settings import ProjectData
    • Settings().get('results_in_new_tab')
    • ProjectData().get("results_in_new_tab", "Not here")

It should look something like this:

sbt

simonknittel commented 8 years ago

Hm, seems like my sublime-gulp installation broke. The first two commands said, that a Module named "Gulp.settings" could not be found so I decided to remove and reinstall the package with the package manager and now it works. The interesting part is, that I know the package itself worked before, because I tested that.

nicosantangelo commented 8 years ago

Hm I hope it was an isolated issue because that could be very frustrating.

Thanks a lot for giving me a hand diagnosing this!, I'll close the issue but let me know if you have another problem.

simonknittel commented 8 years ago

Thank you for your help!