Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text - Unable to edit package settings

I am trying to edit the settings for an installed package for Sublime Text.

Background:

  1. Installed Laravel 4 Artisan package via Package Control: Install Package.
  2. Trying to run Artisan commands returns an error message:

    Laravel requires the Mcrypt PHP extension.

  3. Via terminal, artisan works fine. This leads me to believe that the PHP version used by Laravel 4 Artisan in Sublime Text is different from the version set up in my .bash_profile.
  4. In the terminal, which php returns /Applications/MAMP/bin/php/php5.4.10/bin/php
  5. In Sublime Text, Package Settings > Laravel 4 Artisan > Settings - Default points to:

    {
        "php_path": "php"
    }
    
  6. These settings seem to be read-only. I cannot even change the text, let alone save it with the new PHP location.

Any ideas or am I missing something simple?

like image 460
Gravy Avatar asked Sep 22 '13 09:09

Gravy


People also ask

How do I change settings in Sublime Text?

Open the Sublime Text personal settings file: Mac OS X: Sublime Text 2 > Preferences > Settings - User. Windows: Preferences > Settings - User. Linux: Preferences > Settings - User.


1 Answers

Happy to see you solved your problem. I'll clarify a bit to help anyone else who comes across this. You are correct in the fact that the settings are merged. The load order determines how these files are merged. The User folder is always last. So whatever you specify there will always be taken over that of previous configurations.

Depending on how you installed your plugin, the "Default" settings that came with the plugin may be overwritten. So you don't want to make any changes there that you hope to persist, so placing them in the User folder is the correct thing to do. As an additional note, you don't have to copy the entire contents of the "default" settings. Rather, you only need to specify the settings you want to override. Things will be merged appropriately.

One last thing, I don't believe ST2 makes the default settings read only. I do know ST3 does (well based on where it is installed). Be sure to post questions with the correct tag (sublimetext3 in this case). Was to long for a comment, but I hope this helps clarify things for you.

like image 74
skuroda Avatar answered Oct 04 '22 06:10

skuroda