Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[feature] run option

run the default exe with -p 2000 option
  • Loading branch information...
commit 6bc598748397e53ee52543de31dd951c7758080b 1 parent 3d86268
@OpaOnWindowsNow OpaOnWindowsNow authored
View
5 Default.sublime-keymap
@@ -1,3 +1,6 @@
[
- { "keys": ["ctrl+d"], "command": "goto_opa_doc" }
+ { "keys": ["ctrl+d"], "command": "goto_opa_doc" },
+ { "keys": ["f8"], "command": "run_opa_build" },
+ { "keys": ["f9"], "command": "stop_run_opa_build" }
+
]
View
3  Main.sublime-menu
@@ -9,7 +9,8 @@
"children":
[
{ "caption": "Build" , "command": "build" },
- { "caption": "Run" , "command": "Disabled"},
+ { "caption": "Run" , "command": "run_opa_build"},
+ { "caption": "Stop" , "command": "stop_run_opa_build"},
{ "caption": "Run (no rebuild)" , "command": "Disabled"},
{ "caption": "Monitor" , "command": "Disabled"}
]
View
2  Opa-All.sublime-build
@@ -1,5 +1,5 @@
{
- "cmd": ["opa --no-color *.opa"],
+ "cmd": ["opa --no-color *.opa -o opa_build.exe"],
"file_regex": "^(?:File|In)[^ ]*[ ]+[\"]?([^\"[]+[.]opa)[\"]?[^[(]*[[(]([0-9]+):([0-9]+)-[0-9]+:([0-9]+)[^)].*$",
"working_dir": "${project_path:${folder}}",
"selector": "source.opa",
View
2  Opa-One.sublime-build
@@ -1,5 +1,5 @@
{
- "cmd": ["opa --no-color ", "$file"],
+ "cmd": ["opa --no-color $file -o opa_build.exe"],
"file_regex": "^(?:File|In)[^ ]*[ ]+[\"]?([^\"[]+[.]opa)[\"]?[^[(]*[[(]([0-9]+):([0-9]+)-[0-9]+:([0-9]+).*",
"working_dir": "${project_path:${folder}}",
"selector": "source.opa",
View
12 README.txt
@@ -34,23 +34,25 @@ Choose a build system.
or
[Tools -> Build -> Build Sytem -> Opa-One]
-Then press F7 or go in menu [Toos -> Opa -> Build].
+Then press F7 or go in menu [Tools -> Opa -> Build].
Opa-One will compile the file in the focused buffer.
Opa-All will compile all files in the same directory as the focus buffer.
+Opa-Conf will compile the conf files in the same directory as the focus buffer.
Press F4 to naviguate in compilation error, if any.
+
# How to build with classic syntax ?
-Edit Opa-All.sublime-build or Opa-One.sublime-build, and add "--parser classic" in the cmd field just after opa.
+Edit Opa-XXX.sublime-build, and add "--parser classic" in the cmd field just after opa.
# How to run ?
-You have to do it manually for now.
-Go in the same directory as the sources, the .exe should be there.
-Or alternatively, add "--" at the end of the cmd field of subime-build files (see previous question)
+Press F7 or [Tools -> Opa -> Run]
+The compilation is done automatically, but there is a sync problem.
+So it's safer to build before for now.
# What else ?
Please sign in to comment.
Something went wrong with that request. Please try again.