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

Requests for Ruby Edit

For general discussion related FlowStone

Requests for Ruby Edit

Postby chackl » Thu Oct 10, 2013 2:46 pm

Hello!

I've spent now a lot of time with lerning ruby with FlowStone - And i realy like it ;)
I also coded with som other languages - mostly VB6, VBA and C++ and the all come up this realy good solutions within the editor of the code.
This is no request to copy those solutions but i think they will make programming in Ruby more comfortable.

Popup list is i have written a "." (Dot) after any object. In VBA (Access) it looks like that if i'm editing a TextBox:
vb_option_dialog.png
vb_option_dialog.png (4.71 KiB) Viewed 15856 times

I'm using that realy often - And also i look often through the list to get a feeling, what i'm able to do this this object ;)

Next one i'm usig verry verry often: Single-Step
For users that do not know: Every time i press F8 the next line will be executed. So i'm seeing whitch way the procedure takes. The Line that is executed next is marked like that: (AutoCAD VBA)
vb_debug_step.png
vb_debug_step.png (9.19 KiB) Viewed 15856 times


Next one i realy like here is that if i'm moving the curser to any variable with a String or any value a kind of curser-line appears and tells me the variable tat is stored to it: (AutoCAD VBA)
vb_debug_value.png
vb_debug_value.png (8.4 KiB) Viewed 15856 times


Also a "Stop at line" would be verry cool ;)

Next would be a Line-Number - and If there is an error - the controll will tell the class and line where an error was done.

Would this be possible to see some of those things in future?

Best Regards,
C.Hackl
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
chackl
 
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: Requests for Ruby Edit

Postby CoreStylerz » Thu Oct 10, 2013 3:58 pm

Webmatrix also cool:
Webmatrix.PNG
Webmatrix.PNG (12.21 KiB) Viewed 15848 times
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
User avatar
CoreStylerz
 
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy

Re: Requests for Ruby Edit

Postby Nubeat7 » Thu Oct 10, 2013 11:04 pm

you tried aptana(free) or rubymine (not free) also netbeans should do a good job?
after a quick search i think these are the most common ide`s for using ruby...
just writing the code inside there with all the ide features and copy / paste it after would be an easy and comfortable way to get features like this

but yes, some more features in the ruby module would be helpful, i want line numbers and better error infos too! :)
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Requests for Ruby Edit

Postby trogluddite » Thu Oct 10, 2013 11:18 pm

Not just Ruby - even in SM, I always wanted some more useful de-bugging tools.
For example - a value viewer window, so that you can tag connectors or links anywhere in the schematic and see their values changing in real time, even when those parts of the schematic are not visible in the editing window.

But, yes line numbers and backtraces! It's not hard to do either. For example, I often end my "event" method like this...
Code: Select all
def event(i,v,t)

  # CODE #

rescue => error
  watch "Error message",error.message
  watch "Error trace",error.backtrace
  raise error  # Make sure that the error still stops the interpreter
end

...the 'backtrace' line shows a list of all the nested method calls leading up to the error (so long as the call started from an event, of course) - including a method name and line number for each step of the way (which I then have to go into NotePad++ to find, because that has the line numbers!).
Ruby's built in exception handling is exceptionally ( :roll: ) flexible, so it wouldn't be difficult to hook into it.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Requests for Ruby Edit

Postby gul123 » Mon Oct 14, 2013 1:37 pm

:lol: Not just Ruby - even in SM, I always wanted some more useful de-bugging tools.
For example - a value viewer window, so that you can tag connectors or links anywhere in the schematic and see their values changing in real time, even when those parts of the schematic are not visible in the editing window.
gul123
 
Posts: 1
Joined: Mon Oct 14, 2013 1:28 pm

Re: Requests for Ruby Edit

Postby tester » Mon Oct 14, 2013 1:55 pm

...and green primitive with (e) letter (like F, I, S for float/int/string), for simple expressions, like 1/7 or 2^0.5 or in^0.5 - things like that.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Requests for Ruby Edit

Postby trogluddite » Mon Oct 14, 2013 7:45 pm

gul123 wrote::lol: Not just Ruby - even in SM, I always...

Always nice to hear that folks have found my optimised echo/delay modules so useful - I'm amazed that they have ported so well to BBcode! :shock: :lol:
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 55 guests