Using pipes on windows does not work on 64-bit Sketchup, works on 32-bit SketchUp

A small other test showing that stdout have an other behavior on SketchUp for window:

SketchUp 2016 mac version:
%{ifconfig}

SketchUp 2016 windows version:
%{ipconfig}

Ruby for windows:
%{ipconfig}

The ipconfig is just a test, we don’t need this result. We need the stdout send from an external application.

However %x strings work fine for me, Win7 64-bit, SketchUp 2016 Pro 64-bit.

The Kernel backquote method was bugged early in SketchUp with Ruby 2.0, I think either v2014 or v2015 initial release. But I thought it was fixed in a later maintenance release. (%x strings use the Kernel backquote method.)

See my post: [code] Backquote method patch as Mixin module

Works fine for me (with the Ruby Console open,) on the latest versions of both SU2015 and SU2016 (both 64-bit.)

The exit code for staus is 0, and the stdout var contains the complete listing of my ENV["HOME"] folder.

However the listing is not sorted. EDIT: I take this back. It IS sorted in REVERSE order.

And I see the two command shell windows popping up when the script runs.

Dan,

The output itself is not important we are just looking to get output back to ruby. I tested this code on 3 different computer and none gives any feedback.

computer 1 (VMWare)
SketchUp Pro 2014 32bit
SketchUp Pro 2015 64bit
SketchUp Pro 2016 32bit

computer 2 Windows 10
SketchUp Pro 2014 32bit
SketchUp Pro 2015 64bit
SketchUp Make 2016 64bit

computer 3 Windows 7
SketchUp Pro 2016 32 bit (clean install)

What is different on your system that this seams to work on your system and not at any of my systems?

Besides that I’m running 64-bit on Win7 for v14,15 and 16, …

I cannot know unless you run ThomThom’s diagnostics tool:

Dan,

This are two diagnostic files from two SU versions where we don’t get any data back on the stdout.
Thanks for your help!

SketchUp-Diagnostic win10 SU2016Make64bit.txt (19.8 KB)
SketchUp-Diagnostic win7(vmware)SU2016Pro32bit.txt (23.3 KB)

I see something weird with Ruby installs…

Your Win10 64-bit machine has a path to C:\Ruby200\bin which might normally be a 32-bit Ruby install. That is OK on a 64-bit machine running either 32-bit or 64-bit Windows. (I actually have both installed as well as both the 32-bit and 64-bit DevKits, but only one is “active” at a time.)

However, on your Win7 32-bit machine, it has a path to C:\Ruby200-x64\bin which normally would be a 64-bit Ruby install.

I also notice that your user name has a space in it. Any Unicode characters ?

You start SketchUp from the shortcut correct ? And it is set to “Run as administrator” ?
IE, My report has:
__COMPAT_LAYER : RunAsAdmin
just below the output for the %windir% environment variable. Neither of your reports do.

Another issue. Your Windows 10 machine is not running the latest v16.
You should update it to 16M1.

I am not running this tracing:

windows_tracing_flags         : 3
windows_tracing_logfile       : C:\BVTBin\Tests\installpackage\csilogfile.log

I am not running these extensions:

Ruby Code Editor               (3.2) LOADED
Skalp                          (1.5.0031_beta) LOADED

I am running these extension in common with you:

Ruby Console+                  (2.1.7) 
Advanced Camera Tools          (1.3.0) LOADED
SketchUp Diagnostics Tools     (1.2.0) LOADED
Dynamic Components             (1.4.0) LOADED
Sandbox Tools                  (2.3.0) LOADED
Trimble Connect                (1.1.1) LOADED
Photo Textures                 (1.1.2) LOADED

I am not loading these Standard Ruby Library files:

e2mmap.rb
open-uri.rb
Date.rb
Matrix.rb
SecureRandom.rb
rubygems/path_support.rb
win32/registry.rb