-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: #<Gem::Requirement::BadRequirementError: Illformed requirement [">=>= 0"]> on startup using -RubyStartupArgs setup #233
Comments
Original Ruby console logs on startup:
Dev setup: file(GENERATE OUTPUT Run_Tests.rb CONTENT "require 'testup'
TestUp::API.run_suite_without_gui('${CMAKE_CURRENT_BINARY_DIR}')")
add_custom_target(Tests ALL)
add_dependencies(Tests ${tests})
set_target_properties(Tests PROPERTIES
VS_DEBUGGER_COMMAND "C:/Program Files/SketchUp/SketchUp ${SKETCHUP_VERSION}/SketchUp.exe"
VS_DEBUGGER_COMMAND_ARGUMENTS "-RubyStartup \"${CMAKE_CURRENT_BINARY_DIR}/Run_Tests.rb\""
XCODE_SCHEME_EXECUTABLE "/Applications/SketchUp ${SKETCHUP_VERSION}/SketchUp.app"
XCODE_SCHEME_ARGUMENTS "-RubyStartup '${CMAKE_CURRENT_BINARY_DIR}/Run_Tests.rb'"
) |
This should be fixed by this hotfix: #234 |
Released 2.5.2 that should fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following line is causing Ruby Error on
run_tests_without_gui
:testup-2/src/testup/gem_helper.rb
Line 17 in b5a28cd
The fix would have to be applied for line 27 as well:
testup-2/src/testup/gem_helper.rb
Line 27 in b5a28cd
The error is as follows:
This is caused because the default value of the keyword argument
version
isGem::Requirement.default
which is#<Gem::Requirement:0x00000002bf5d7688 @requirements=[[">=", #<Gem::Version "0">]]>
. Therefore when the">="
is added manually on lines 17 and 27 it becomes">=>= 0"
which causes the error.This is reproducible with the latest release (2.5.1 using the .rbz file) on both Sketchup 2023 and Sketchup 2024 using Ruby 2.7 and Ruby 3.2 respectively.
Found while running the testup-2 using
-RubyStartupArgs
setup from the ReadMe. Apparentlyrun_tests_without_gui
is being called and it reaches line 17 where it all goes down. Confirmed the source by doingTestUp::GemHelper.require('minitest-reporters-json_reporter', 'minitest/reporters/json_reporter')
(as written heretestup-2/src/testup/json_ci_reporter.rb
Line 13 in b5a28cd
testup-2/src/testup/api.rb
Line 49 in b5a28cd
The text was updated successfully, but these errors were encountered: