Buy Now

LoomScript TextMate/SublimeText Bundle


08cfb70f32d12a81926575e0a3fc2d4e
bengarney
Loominary
Posts : 900

Hey all,

This bundle adds some support for LoomScript in TextMate or Sublime Text.

http://dl.dropbox.com/u/41430608/bundles.zip

Give it a shot and feel free to share back any improvements!

Ben




20aaf9520b0aeef2beb28afc25c61784
jeremy.saenz
Gangsta'
Posts : 154

Thanks for posting this. We have been using this bundle internally with Sublime Text for all of our LoomScript development.




Bc5651438b426a54d5a3b5d6c575c051
hanclinto
Posts : 82

What sort of functionality does this provide?




08cfb70f32d12a81926575e0a3fc2d4e
bengarney
Loominary
Posts : 900

It's primarily syntax highlighting.




Fa94198fe8cac7d6cdee91b1f0b09664
konradkiss
Posts : 43

This is the syntax file for EditPlus:

http://pub.bitgap.com/loom/loomscript-stx.zip

Last updated: Feb 21, 2013




Acd041d412889646dd404c67c24acdce
LukeLamothe
Posts : 26

I didn't want to start a whole new thread for this question, as it is Sublime Text related, but has anyone bothered setting up a custom build system for LS in Sublime Text 2? I managed to get it going (basically, just get ST to run "loom run" for me...), but once I ran my project with it one, subsequent "loom run" calls, either via ST or via the Terminal give me the following error:

[loom.asset] assetAgent is already running; you only want one instance at a time.
Error: end of file reached.

My build script in ST is just this simple little guy:

{
"cmd": ["loom", "run"],
"path": "/usr/bin",
"working_dir": "$project_path"
}




20aaf9520b0aeef2beb28afc25c61784
jeremy.saenz
Gangsta'
Posts : 154

For sublime text I would reccommend running a loom run --noconsole as loom run uses some terminal features for console input and cleaning itself up




Acd041d412889646dd404c67c24acdce
LukeLamothe
Posts : 26

Thanks Jeremy, that worked perfectly :)




Goldstar Fd55cc0d7738e3c43ec7e45a4d61863f
natebeck
Chief Paper Pusher
Posts : 199

Hey guys, this is bundle that we use for TextMate/SublimeText:

https://dl.dropbox.com/u/9150007/loom/ls_bundle.zip

Cheers,
Nate




C0ffcb28d2dac67a97b03e9a8e0f6b30
giggsy
Posts : 5

Hi,

so do I understand this correct: if I develop under windows, I should use http://www.sublimetext.com/2 and the bundle linked here?

What has to be done, such that I can debug my scripts?
I though I read something somewhere, but can't find it anymore ...

Thanks!




20aaf9520b0aeef2beb28afc25c61784
jeremy.saenz
Gangsta'
Posts : 154

To Debug your scripts, you can use to commandline debugger, ldb.
You can invoke the debugger with the following command:

loom debug

And Invoke the help:

LDB>help



C0ffcb28d2dac67a97b03e9a8e0f6b30
giggsy
Posts : 5

Thanks for the quick reply!

Hmm ... looks like I have to get used to the command line (as a UI-spoiled Windows user, this is quite a task ;) )

Just a side question: do you use this a lot, or do you start logging vars to the console when working actively?
I could imagine that with the live update, this could be more comfortable ^

I also installed the LoomScript bundle for Sublime. Reading the above posts, this is still "only" for syntax highlighting, right?




1303385f9877dc2688253731968ae058
joshenge
Loominary
Posts : 93

Here is another post on using SublimeText2 in more of an IDE setup

http://theengine.co/forums/loom-with-loomscript/topics/setting-up-sublime-text-2-as-an-ide-for-loom

You can use Console.print() styled debugging, there is also a loom debug command which allows you to set breakpoints and inspect local variables

loom debug (and once it is running) type help

We do have a proper IDE in development.




Ca0efdaf3c46c319a83b5e60c052999e
leonardsouza
Posts : 14

You should submit the LoomScript package to the Package Control repo (http://wbond.net/sublime_packages/package_control). Then it's just a keystroke away!




Ca0efdaf3c46c319a83b5e60c052999e
leonardsouza
Posts : 14