Compile error dialog
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Compile error dialog
I am trying to develop a script editor, ladden with a bunch of shortcuts I've always wished I had from ever since the days of HyperTalk. It all seems to work. Upon last step: "Set script of object theObject to theScript", I'm yet to find the easiest way to get the compiler to display compile errors if any. Probably very simple ...
Hi,
Maybe you could use ErrorLib, which you can find here: http://economy-x-talk.com/developers.html
Otherwise, you'll have to look into Rev's scripts to find out how to do this. There is a list with all the errors somewhere in the revErrorDisplay stack, which is used to translate the numbers to something readable.
Best,
Mark
Maybe you could use ErrorLib, which you can find here: http://economy-x-talk.com/developers.html
Otherwise, you'll have to look into Rev's scripts to find out how to do this. There is a list with all the errors somewhere in the revErrorDisplay stack, which is used to translate the numbers to something readable.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Small world: I've been working on a script editor also, primarily for the same reason, to include shortcuts (and a few other things).
The biggest challenge isn't the script editing itself. In its simplest form, that's just a matter of trapping the editScript message in a frontScript, providing a field to edit in, and setting the script when you're done.
The hard part is integrating it with the debugger, variable watcher, etc.
Ken Ray has produced what is probably the most complete variable watcher around, and we're using that with other components from the open source MetaCard IDE to create this editing/debugging tool.
When I get it to a stable form that works well in Rev (at the moment its tied to MetaCard), I'll be releasing it as ROSE: Rev Open Source Editor. Then we can all contribute mods to it within a stable framework that runs anywhere.
I'll post a note here when it's in a form worth working with. Should be another few weeks.
The biggest challenge isn't the script editing itself. In its simplest form, that's just a matter of trapping the editScript message in a frontScript, providing a field to edit in, and setting the script when you're done.
The hard part is integrating it with the debugger, variable watcher, etc.
Ken Ray has produced what is probably the most complete variable watcher around, and we're using that with other components from the open source MetaCard IDE to create this editing/debugging tool.
When I get it to a stable form that works well in Rev (at the moment its tied to MetaCard), I'll be releasing it as ROSE: Rev Open Source Editor. Then we can all contribute mods to it within a stable framework that runs anywhere.
I'll post a note here when it's in a form worth working with. Should be another few weeks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn