Skip to content

Commit

Permalink
Merge pull request #34 from jeffdonthemic/master
Browse files Browse the repository at this point in the history
Mac PATH issue fix
  • Loading branch information
dcarroll committed Apr 20, 2016
2 parents bb1fd22 + c170671 commit 11d3de0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This plugin requires Sublime Text 3 and works in conjunction with the Force CLI.

Make sure that you have installed the Force CLI into a folder on your path and that is marked as executable.

To install the plugin, you will need to install Package Control. Installation instructions are here: https://sublime.wbond.net/installation
To install the plugin, you will need to install Package Control. Installation instructions are here: https://sublime.wbond.net/installation. Once Package Control is installed, open the Command Palette from Tools > Command Palette, type 'install' and select 'Package Control: Install Package'. Search for 'lightning' and then install the package from the results.

Once you have both of these installed, create a new folder to be your working folder.

Expand All @@ -17,6 +17,8 @@ Once you have both of these installed, create a new folder to be your working fo

Launch Sublime Text and open the new folder. If you have not logged in recently from the command line, you can right-click the folder in Sublime's sidebar and click "Salesforce Login". In the bottom tray of Sublime enter your username and hit the enter key, enter your password (the password will be shown in clear text, sorry) and hit the enter key.

Note: If you receive the error message, "Sublime Lightning Plugin requires the Force.com CLI to function.." and you are certain that the CLI is in your path and is marked as executable, you can try in stalling the the [Fix Mac Path plugin](https://github.com/int3h/SublimeFixMacPath) which may solve the issue.

At this point, you will not be able to create any Lightning artifacts, unless you have a folder under your work directory named 'metadata/aura'. You can, however, fetch existing Lightning artifacts by right clicking the work folder and selecting "Fetch Lightning". This will query your Salesforce instance for all Lightning bundles and display them for you to choose which thing you want to edit. You can open all lightning bundles at once, scroll to the one you want, or begin typing the name of the Lightning bundle to filter the list and then select the one you want.

Once you have a Lightning bundle locally in sublime, you can begin editing your component, controller, event, app, css. To save your changes back to Salesforce, simply press cmd+s on your Mac or ctrl+s on your Windows machine. You will see a verification of the save and the time it took in the status bar at the bottom of the screen. You will also see any errors that might have prevented pushing component artifact there as well.
Expand Down
4 changes: 2 additions & 2 deletions lightningsave.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def plugin_loaded():
sublime.error_message(message)
except:
sublime.error_message("Sublime Lightning Plugin requires the " +
"Force.com CLI to functionn\n\nPlease " +
"Force.com CLI to function\n\nPlease " +
"visit force-cli.herokuapp.com to install" +
"the Force.com CLI.\n\nIf you have already" +
" installed it, please make sure that you " +
Expand Down Expand Up @@ -248,7 +248,7 @@ def get_forcecli_version(self):
sublime.error_message(message)
except:
sublime.error_message("Sublime Lightning Plugin requires the " +
"Force.com CLI to functionn\n\nPlease " +
"Force.com CLI to function\n\nPlease " +
"visit force-cli.herokuapp.com to install" +
"the Force.com CLI.\n\nIf you have already" +
" installed it, please make sure that you " +
Expand Down

0 comments on commit 11d3de0

Please sign in to comment.