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

REQ: Copy/Export Ruby error messages

For general discussion related FlowStone

REQ: Copy/Export Ruby error messages

Postby Drnkhobo » Fri Apr 19, 2013 5:17 pm

Dear Support!

So you know when your Ruby module displays an error via the little debug screen at the bottom. . ?

Well, can we have an option to right click or something & it copies the error text to clipboard or maybe exports it?

I think it will be a nice little addon that will help us & shouldnt be too difficult for you FS devs :lol:

Thanks guys!
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: REQ: Copy/Export Ruby error messages

Postby Drnkhobo » Fri Apr 19, 2013 5:38 pm

Should have explained i am having some trouble with Ruby & libraries.

I am trying to parse an url but I get stopped before I can even connect.

You see I am going for Ruby's built in uri library.
So i found the uri.rb file & its dependent folder, my ruby code looks like this:

Code: Select all
require 'uri'


Ruby's error log shows

Code: Select all
NameError: uninitialized constant Encoding::UTF_7


Now tried to do some searching & most of the mighty googles results are very contextual. So no good for me...
What i can gather is that an uninit constant means im not using a constant in my code...right?

what i want to do is:

Code: Select all
puts open('http:://www.wikipedia.com').read(200)


So i never declare any Encoding & isnt "::" a reference to a class or module???
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: REQ: Copy/Export Ruby error messages

Postby Drnkhobo » Fri Apr 19, 2013 5:59 pm

Trying with Net/Http library but it appears the socket.so file that it requires is not compatible with FS's version of Ruby :(
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: REQ: Copy/Export Ruby error messages

Postby trogluddite » Sat Apr 20, 2013 8:20 pm

Drnkhobo wrote:What i can gather is that an uninit constant means im not using a constant in my code...right?

It most likely means that the library you want to use is dependent upon one or more of the other 'standard' libraries. Without those libraries, the supported encodings are very limited - and the constants that name the other encoding types will be missing; hence the error.
Drnkhobo wrote:Trying with Net/Http library but it appears the socket.so file that it requires is not compatible with FS's version of Ruby

Lots of .so files are unlikely to work with FS - .so files are Ruby libraries compiled from C (to make them much faster), but they will only work if they were compiled using the same compiler which FS was built with; and sadly, most of them aren't.
I'm really hoping that this can be sorted out so that we can have access to the 'standard' libraries - I keep seeing examples of really useful looking Ruby code that we just can't use at the moment.
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 78 guests