Hi, I want to publish my extension, and the Digital signature says that everywhere I have to use Sketchup.require
. I use a zipping library in my extension so I guess I need to change all require
-s to Sketchup::require
in the library too.
These
require 'delegate'
require 'singleton'
require 'tempfile'
require 'tmpdir'
require 'fileutils'
require 'stringio'
require 'zlib'
I changed to
Sketchup::require('delegate')
Sketchup::require('singleton')
Sketchup::require('tempfile')
Sketchup::require('tmpdir')
Sketchup::require('fileutils')
Sketchup::require('stringio')
Sketchup::require('zlib')
Everything works fine except of two files (zlib, stringio) required in the zipper.
I get
Error loading file stringio
Couldn't find included file 'stringio'
And the same error I get for zlib
I also can find the following files in these locations
C:\Program Files\SketchUp\SketchUp 2018\Tools\RubyStdLib\rubygems\util\stringio.rb
C:\Program Files\SketchUp\SketchUp 2018\Tools\RubyStdLib\rubygems\util\stringio.so
C:\Program Files\SketchUp\SketchUp 2018\Tools\RubyStdLib\platform_specific\zlib.so
I even don’t know which of the above is included during require
stringio.rb
or
stringio.so
.
Please help me to understand why I get such kind of error only on this files.
Is it connected to their format (if it tries to require files with so
extension) or I have missed something else.