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

path.extension returns incorrect result #2005

Closed
xq114 opened this issue Jan 24, 2022 · 1 comment
Closed

path.extension returns incorrect result #2005

xq114 opened this issue Jan 24, 2022 · 1 comment
Labels
Milestone

Comments

@xq114
Copy link
Contributor

xq114 commented Jan 24, 2022

描述问题

当文件没有扩展名时path.extension返回值错误
image

期待的结果

path.extension能正确识别路径分隔符,返回空字符串

错误信息

如果是xmake相关编译问题,请加上-vD参数运行,并给出完整编译输出信息以及执行的完整命令,例如:

$ xmake l -vD path.extension 1.1\abc
running builtin module path.extension with args:
dump from _print_vlog @.\C:\Users\xq114\xmake\plugins\lua\main.lua:55 
"1.1\abc"
dump from <anonymous> @.\C:\Users\xq114\xmake\plugins\lua\main.lua:125
".1\abc"

相关环境

请提供编译和运行环境信息,下面是一些必须填写的基础信息,便于我们针对性排查问题:

  • xmake版本:2.6.3
  • xmake运行平台:windows
  • xmake目标平台:windows
@xq114 xq114 added the bug label Jan 24, 2022
@waruqi
Copy link
Member

waruqi commented Jan 24, 2022

可以了 再试试

@waruqi waruqi added this to the v2.6.4 milestone Jan 24, 2022
@xq114 xq114 closed this as completed Jan 24, 2022
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

2 participants