Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Ruby: Error messages that don't help

For general discussion related FlowStone

Ruby: Error messages that don't help

Postby tulamide » Fri Jun 12, 2015 10:57 pm

error_message.png
error_message.png (4.63 KiB) Viewed 6822 times


In this short example it is pretty obvious. The original int was converted to a float and now can't be represented as a hex string. But the error message is just annoying. Imagine you get this message, as happened to me, in a draw method filled with a few dozen of lines. Further imagine that you used a method to convert to strings of various forms, so that you don't have something like "drawString mynumber.to_s(16)", but "drawString mymethod". Still the error is reported for the draw method...

Took me half an hour to find the cause. :x
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby: Error messages that don't help

Postby Nubeat7 » Fri Jun 12, 2015 11:21 pm

trogs error tracing code snippet helps a lot to find the issues
viewtopic.php?f=3&t=1291

and you can edit the ruby editclass to get the code with linenr
here is the topic: viewtopic.php?f=2&t=2712&start=10

after this was requested already a few times it really would be great to get line-numbers implemented in the ruby module in one of the next updates..
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Ruby: Error messages that don't help

Postby tulamide » Sat Jun 13, 2015 12:15 am

Nubeat7 wrote:trogs error tracing code snippet helps a lot to find the issues
viewtopic.php?f=3&t=1291

and you can edit the ruby editclass to get the code with linenr
here is the topic: viewtopic.php?f=2&t=2712&start=10

after this was requested already a few times it really would be great to get line-numbers implemented in the ruby module in one of the next updates..

Thank you very much!
I always tend to believe that I'm the only one who is annoyed by something like that. :oops: The other thing that bugs me is how easy you can destroy a working chain of RubyEdits by just inserting new ones, forcing you to re-arrange the whole chain. How cool it would be to have an id per RubyEdit that you can set yourself, and Flowstone loads them by id instead of where and when they were located...
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: No registered users and 65 guests