Compile error dialog

Revolution Studio is Runtime Revolution's premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS Classic, Mac OS X, Linux, Solaris and Unix(s). Brand new to Revolution Studio? Welcome!

Moderators: Klaus, robinmiller, heathernagey, kevinmiller, FourthWorld

Compile error dialog

Postby oshika55 » Sun Sep 30, 2007 3:22 pm

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 ...
oshika55
 
Posts: 6
Joined: Fri Sep 07, 2007 8:48 am
Location: Paris, France

Postby Mark » Mon Oct 01, 2007 10:44 am

Dear oshika55,

Check the result after setting the script.

Best,

Mark
Economy-x-Talk is looking for new projects. Contact me for a quote.
Create installers from your standalones with the Installer Maker plugin for Runtime Revolution.
Mark
 
Posts: 2416
Joined: Thu Feb 23, 2006 8:24 pm

Postby oshika55 » Wed Oct 03, 2007 12:48 pm

Thanks Mark. It had to be that simple ! Now how do I get it to display the built-in compile error dialog instead of the series of numbers that require further translation ?

Thanks again for your reply.
oshika55
 
Posts: 6
Joined: Fri Sep 07, 2007 8:48 am
Location: Paris, France

Postby Mark » Wed Oct 03, 2007 1:06 pm

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
Economy-x-Talk is looking for new projects. Contact me for a quote.
Create installers from your standalones with the Installer Maker plugin for Runtime Revolution.
Mark
 
Posts: 2416
Joined: Thu Feb 23, 2006 8:24 pm

Postby oshika55 » Wed Oct 03, 2007 1:28 pm

Thanks again Mark. Unless I'm wrong, errorLib doesn't deal with compile errors, but execution errors ... I guess I'll have to do the translation myself, based on the "revErrorDisplay" stack. Thank you for putting me in the right direction anyway.
oshika55
 
Posts: 6
Joined: Fri Sep 07, 2007 8:48 am
Location: Paris, France

Postby Mark » Wed Oct 03, 2007 1:40 pm

Hi,

ErrorLib contains everything to write your own error handling, including compile errors AFAIK.

Mark
Economy-x-Talk is looking for new projects. Contact me for a quote.
Create installers from your standalones with the Installer Maker plugin for Runtime Revolution.
Mark
 
Posts: 2416
Joined: Thu Feb 23, 2006 8:24 pm

Postby oshika55 » Wed Oct 03, 2007 1:50 pm

Well, then I shall look into errorLib. On your web page, the description only mentions execution errors ...

Thanks
oshika55
 
Posts: 6
Joined: Fri Sep 07, 2007 8:48 am
Location: Paris, France

Postby FourthWorld » Wed Oct 03, 2007 2:45 pm

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.
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
FourthWorld
 
Posts: 745
Joined: Sat Apr 08, 2006 6:05 am
Location: Los Angeles


Return to Getting Started with Revolution Studio or Enterprise

Who is online

Users browsing this forum: No registered users and 2 guests