sketchucation logo sketchucation
    • Login
    1. Home
    2. jhyuk
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 5
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: SU Ruby + XML

      @pedrobaracho said:

      I succeeded parsing a big file, although I couldn't parse multiple files in a row.
      The problem is when I parse 4 files in a row, libxml stucks while creating the Document object.

      LibXML::XML::Document.new(file).root

      And it gets non-responsive. Also it blocks the SU process and it doesn't finish when I close SU.

      I also didn't get any times to compare rexml and libxml running over SU.

      If anybody has any hints to my problem, I would appreciate it. Right now I am trying to compile libxml-ruby and set up some breakpoints so I can see where it is halting the execution.

      Has anyone found a solution to this problem?

      posted in Developers' Forum
      J
      jhyuk
    • RE: Requiring Socket on Mac crashes SU

      @dan rathbun said:

      Is it the same Ruby version and patch level that Sketchup is loading ??

      It may be OK on your own machine, to move files around, but it's a no-no to distro them to others where version conflicts can cause nightmares.

      See this post for more info (and a link to StackOverflow that gives instructions on Mac for changing your symbolic links to force Sketchup to use a System Ruby.)
      http://forums.sketchucation.com/viewtopic.php?f=180&t=31545&start=15#p326274

      Thanks a lot!!!
      I was able to change the symlinks and make it use 1.8.7 of the mac and copied the socket.bundle from that version and everything is working fine!!

      posted in Developers' Forum
      J
      jhyuk
    • RE: Requiring Socket on Mac crashes SU

      If there is a working solution for this, i would be extremely greatful if someone could post it here.
      It would be even more awesome if they could upload the files necessary to get it to load as well.

      posted in Developers' Forum
      J
      jhyuk
    • RE: Requiring Socket on Mac crashes SU

      @unknownuser said:

      Well the crudest but still working solution I had was to just copy paste the socket.so file to the Sketchup/Plugins folder.

      I'm sure doing that is all sorts of sacrilege, but it works.

      I have tried this but doesnt seem to work on the mac.
      Are you sure this works on the mac, i copied the socket.so to the plugins directory for the pc version of my plugin which seems to work fine but doesnt on the mac

      posted in Developers' Forum
      J
      jhyuk
    • RE: Requiring Socket on Mac crashes SU

      Hi,

      Did anyone manage to get

      require 'socket'
      to work on the mac?

      I am using the net/http classes which require the socket class but having no luck at all

      posted in Developers' Forum
      J
      jhyuk
    • 1 / 1