Skip to content
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

msys2 | path.translate("~") 返回 nil #6013

Open
q962 opened this issue Dec 27, 2024 · 4 comments
Open

msys2 | path.translate("~") 返回 nil #6013

q962 opened this issue Dec 27, 2024 · 4 comments
Labels

Comments

@q962
Copy link

q962 commented Dec 27, 2024

Xmake 版本

xmake v2.9.6+20241110

操作系统版本和架构

MINGW64_NT-10.0-19045

描述问题

xmake show 的输出中 globaldir 包含 nil 值

期待的结果

工程配置

附加信息和错误日志

$ xmake show
The information of xmake:
    version: 2.9.6+20241110
    host: windows/x64
    programdir: D:\msys64\mingw64\share\xmake
    programfile: D:\msys64\mingw64\share\xmake\xmake.exe
    globaldir: nil\.xmake
    tmpdir: D:\msys64\tmp\.xmake\241227
    workingdir: D:\msys64\home\q962_\project\demo\clipboard-server-2
    packagedir: nil\.xmake\packages
    packagedir(cache): nil\.xmake\cache\packages\2412
@q962 q962 added the bug label Dec 27, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: msys2 | path.translate("~") returns nil

@q962
Copy link
Author

q962 commented Dec 27, 2024

APPDATA 和 LOCAL_APPDATA 还可以尝试从环境变量获取啊

APPDATA=C:\Users\q962_\AppData\Roaming
LOCALAPPDATA=C:\Users\q962_\AppData\Local

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


You can also try to obtain APPDATA and LOCAL_APPDATA from environment variables.

APPDATA=C:\Users\q962_\AppData\Roaming
LOCALAPPDATA=C:\Users\q962_\AppData\Local

@waruqi
Copy link
Member

waruqi commented Dec 30, 2024

这边正常,没法复现。

wangrunqing@IIGS-A8825-D MINGW64 /d/projects/personal/xmake
$ xmake show
The information of xmake:
    version: 2.9.7+dev.5665dc8df
    host: windows/x64
    programdir: C:\msys64\mingw64\share\xmake
    programfile: C:\msys64\mingw64\share\xmake\xmake.exe
    globaldir: C:\Users\wangrunqing\AppData\Local\.xmake
    tmpdir: C:\msys64\tmp\.xmake\241230
    workingdir: D:\projects\personal\xmake
    packagedir: C:\Users\wangrunqing\AppData\Local\.xmake\packages
    packagedir(cache): C:\Users\wangrunqing\AppData\Local\.xmake\cache\packages\2412


wangrunqing@IIGS-A8825-D MINGW64 /d/projects/personal/xmake
$ xmake l path.translate "~"
"C:\Users\wangrunqing\AppData\Local"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants