You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rake::TestTask job is executing an external ruby process.
The external process calls rake_test_loader.rb with ruby's command -I option.
When the current directory path includes non-ascii character, require fails because of ruby's bug reported below.
Right, I figured that would be the case, but since the crashing code is no longer hit with #357 I figured it was worth trying just to make sure! In any case, it wouldn't have really fixed the root cause, only circumvent it.
Activity
masa-kunikata commentedon Dec 26, 2019
I think the cause of this error is Ruby's bug.
The
Rake::TestTask
job is executing an external ruby process.The external process calls
rake_test_loader.rb
with ruby's command-I
option.When the current directory path includes non-ascii character,
require
fails because of ruby's bug reported below.Non-ASCII characters in the path to ruby executable break require paths
https://bugs.ruby-lang.org/issues/9737
A case "require" fails when current directory path contains Japanese character
https://bugs.ruby-lang.org/issues/13863#note-5
deivid-rodriguez commentedon Jun 12, 2020
Do you still have this problem? Could you check whether #357 fixes it?
masa-kunikata commentedon Jun 14, 2020
@deivid-rodriguez
Thank you for your reply!!!
It seems that the error occurs even with the #357 patch.
Though the error message is different from the original one,
I think the root cause is the same and it lies in Ruby itself.
Summary
"あいうえお"
"abcde"
File does not exist: target
patched #357 PR
cannot load such file -- target (LoadError)
Details
Non ascii path current directory
C:\temp\rake_test_task_non_ascii_path\あいうえお>rake
(Error) rake v13.0.1
(Error) rake v13.0.1 patched #357 PR
Ascii path current directory
C:\temp\rake_test_task_non_ascii_path\abcde>rake
(OK) rake v13.0.1
(OK) rake v13.0.1 patched #357 PR
deivid-rodriguez commentedon Jun 14, 2020
Right, I figured that would be the case, but since the crashing code is no longer hit with #357 I figured it was worth trying just to make sure! In any case, it wouldn't have really fixed the root cause, only circumvent it.
I hope your issue gets fixed!