-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
.yardopts
refuses filenames containing non-ASCII characters
#1517
Comments
corrige le fait que la documentation sur rubydoc.info soit vide car le chemin de la bibliothèque n'est pas standard cependant plante .yardopts ne supporte pas les caractères non-ASCII lsegal/yard#1517
Weird, I pushed this Is yard info using a special / patched version of yard? A different configuration? Using last commit from master and not the release? It must take my |
I can't seem to reproduce the issue in ruby 3.3.0 on my machine. Given that rubydoc.info also does not have the issue you're reporting, could there be something in your environment? I'm thinking about marking this as closed given the failure to repro. |
I can reproduce on ruby 3.3.0, both the minimal example and running |
I made a minimal repository to reproduce: https://github.com/noraj/yard-issue-1517 |
Thanks for the repro. This is now fixed and will be in the next release. |
.yardopts
refuses filenames containing non-ASCII charactersSteps to reproduce
Taking the following file:
Name it
testé.rb
and runyard doc testé.rb --no-yardopts
: everything is fine.Now create a file named
.yardopts
with the following contentIt gives the following error (see Actual Output).
Actual Output
Expected Output
No error.
Environment details:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
yard 0.9.34
(Un)related issues
All issues I found for that error are from Ruby 1.9.3 from 2013. But since Ruby 2.0 there is no need to provide an encoding comment to specify the source encoding. Generally there is no issue with encoding with yard even if my files are full of non-ASCII characters in the comments, content and file names. There only issue is when the file name contains non-ASCII chars in
.yardopts
.Debug
This where yard seems to crash
yard/lib/yard/logging.rb
Line 104 in 2d197a3
However, running
print("\e[2K\e[?25l\e[1mtesté\e[0m\r")
does not seem to crash.The text was updated successfully, but these errors were encountered: