Soar Tools
Package for Soar development in Sublime Text
Details
Installs
- Total 206
- Win 110
- Mac 57
- Linux 39
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Soar Tools
Sublime Text package for Soar development. Currently only tested for Sublime Text 3.
Getting Started
- After installing Package Control, use the Command Palette (
Ctrl+Shift+P
) to selectInstall Package
and then search forSoar Tools
.
Current Functionality
Syntax Highlighting
Soar syntax highlighting is applied to files with the .soar, .soarunit, or .dm extensions. Code folding is also provided but is irregular at the moment.
Snippets
Several snippets are currently provided for various types of Soar productions, SoarDoc, and SoarUnit setup/test blocks. SoarDoc snippets are triggered by ##!
and production snippets are triggered by sp
. Provided snippets are:
- SoarDoc, triggered by
##!
, for:- documenting a file
- documenting an operator
- documenting a production
- Soar productions, triggered by
sp
, for:- propose/compare/apply operator
- elaborate state
- elaborate substate
- SoarUnit blocks:
- setup block
- test block
SoarUnit
If you have JSoar/SoarUnit on your computer, you can run it with a build command (ctrl+b or command+b) when you have a SoarUnit file open. You will, however, need to specify the location of SoarUnit if it is not in your PATH. You may also wish to test using C Soar. To specify these settings, go to Preferences –> Package Settings –> Soar Tools –> Settings - User. These are your available settings:
{
// If added to your system path, "soarunit" is fine; otherwise,
// you'll need to set this to "C:/jsoar-0.14.0/bin/soarunit", etc.
"soarunit_path": "soarunit",
// set to true if you want to use C Soar, not JSoar
"c_soar": false,
// If using C Soar, set this to the Soar distribution directory, or set
// the SOAR_HOME environment variable
// "SOAR_HOME": "C:/path/to/soar-9.x.x",
// set to true if you want a pretty popup window instead of console
// output
"ui": false,
// indicate the size of thread pool to run tests in;
// either a number indicating the fixed size of a thread pool,
// "cpus" for number of cpus, or "cached" for cached
"threads": "cpus"
}
You can either run SoarUnit on the current file, or for the whole project, but the project option is currently slow and buggy, and therefore not recommended.
SublimeREPL Integration
You can run the Soar CLI from SublimeText if you have the SublimeREPL package installed, but setup might be tricky:
If your Soar directory is not in your system path, you will need to add it to SublimeREPL's path:
- Preferences -> Package Settings -> SublimeREPL -> Settings - User
{ “default_extend_env”: {“PATH”: “C:/path/to/Soar/bin:{PATH}”} }
TODO
- Highlighting for script blocks
- Solicit feedback from Soar users