No output text on Windows 7 system command
-
I start an exe from ruby with system ("path\to\exe" "arg1" "arg2")
When the exe runs, the output text isn't visible in case of Windows 7. It only shows a blinking cursor. The actual task completes fine but no visible text. It works fine on Windows 8 and Windows 10.
It also shows the text if I run the exe directly on Windows 7.One thing I have noticed is the title of the command is "c:\Windows\System32\cmd.exe" on Windows 7 where as it shows the actual path of the exe on Window 8 & 10.
The output text is important to give feedback to user as sometimes the process can run for up to 1 hour. The SketchUp version is 2017. Ruby version 2.2.4.
Thanks in advance
Jiva -
The problem is the ruby build currently included in SU 2017. Not sure why output varies by Windows version.
If one replaces it with a different build, command output will appear in the console.
-
Hi Greg,
Thank you for the reply. I am not familiar with the ruby side at all. Is the sketchup ruby upgrade simple process. Is there any guide which explain it? A quick google didn't return much useful information.
Many thanks
Jiva -
Jiva,
It's complicated. I started using Ruby years ago with SketchUp. Been away from SketchUp for while, but I'm still using Ruby.
As I recall, the files get split into two locations, you have to edit the SketchUp.exe file, etc.
I've also been building Ruby for quite a while, so the files I used were my own and built with current compilers & toolchains. With SU 2017, it can only run with Ruby 2.3 due to the changes that occurred in Ruby 2.4.
There may be a publicly available build of Ruby 2.3 in the (hopefully near) future...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement