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
[gdb] cannot not open source file with Chinese/Unicode characters in path when debugging #602
Comments
@magicsong If you remove the Chinese characters in the path, does it work? |
@pieandcakes I still got this error when i change the path.I also change my OS language to English, and rebuild again, it still does not work. |
@magicsong So you get the file not found after you change the path? Can you post the updated error when you remove the Chinese characters from the path? |
Unable to open 'raise.c': File not found (/build/glibc-9tT8Do/glibc-2.23/sysdeps/unix/sysv/linux/raise.c). After i google, it seems that the debug is OK now because this new error is different from my first error. So it does not work when i have chinese characters in my file path. |
I've marked this as a bug so we can go investigate and fix the Chinese characters in path issue. Thank you for reporting it. |
What is the new error? |
@sean-mcmanus Its the first sentence in @magicsong's last post. |
But that sounds the same as the first error. Both errors are about not being able to open the file. |
The second error seems like the user is trying to step into library code and doesn't have the source files on their machine so the error is expected. The first is that the path is converting the Chinese characters into a series of numbers which is unexpected and a bug. |
@magicsong Are you able to solve the error "Unable to open 'raise.c': File not found (/build/glibc-9tT8Do/glibc-2.23/sysdeps/unix/sysv/linux/raise.c)". I got the same one and coincidentally (or not) I'm also a Chinese user. |
@ygrayson that isn't an issue with Chinese users. That is |
@pieandcakes Do I have any way to have the glibc source under the correct directory? My debugger works fine right now without any seg fault or other errors, but do I have any way to solve this error? |
@ygrayson If you want to have the source for glibc, you can add mappings to it using |
I'd like to know how to avoid this bug. If it is something about gdb, is removing Chinese the only solution? |
@coffee-sgr As far as I know that is the only solution. We have the same problem with any Unicode characters, whether it be Chinese or not. If you find another workaround, please let us know. |
@pieandcakes I'm a Chinese user. |
@LOVELIBERTY1314 |
@mxdh @LOVELIBERTY1314 the issue is with |
@pieandcakes Has anyone reported this issue to gnu? |
I am glad to receive for your reply. Thank you very much. Let’s wait for the soultion of gnu.
Best wishes to you!
发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
…________________________________
发件人: Pierson Lee <notifications@github.com>
发送时间: Sunday, May 5, 2019 12:30:16 AM
收件人: Microsoft/vscode-cpptools
抄送: LOVELIBERTY; Mention
主题: Re: [Microsoft/vscode-cpptools] cannot not open source file with Chinese/Unicode characters in path when debugging (#602)
Closed #602<#602>.
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#602 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIO7CF6RDVE3DI3HC3WF4BDPTW2ZRANCNFSM4DFWC2AA>.
|
and even i got into the debug process, the breakpoints don't seem to work. so when will gdb supports non-ascii characters on file names. |
Try solution with
and with installed |
From @magicsong on March 29, 2017 14:22
Steps to Reproduce:
I'm a chinese user, so maybe my issue is relative with language support problem.
1.debug a c++ project with cpptool
2.then VS Code reminds me cannot open some file like this:无法打开“PointTransformer.cpp”: 找不到文件(/home/magicsong/346226207346241243/Codes/DataTransform/GeoDataTransformer/PointTransformer.cpp)。In my computer, the file above is located in "/home/magicsong/文档/Codes/DataTransform/GeoDataTransformer/PointTransformer.cpp", does cpptool not support chinese? or something i miss when i debug?
Copied from original issue: microsoft/vscode#23575
The text was updated successfully, but these errors were encountered: