Ruby: Error messages that don't help

For general discussion related FlowStone
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Ruby: Error messages that don't help

Post by tulamide »

error_message.png
error_message.png (4.63 KiB) Viewed 7668 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)
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Ruby: Error messages that don't help

Post by Nubeat7 »

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..
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby: Error messages that don't help

Post by tulamide »

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)
Post Reply