xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

xrepo 很多 action 都失效了,会提示找不到 xmake.lua #5463

Closed heheda123123 closed 1 month ago

heheda123123 commented 1 month ago

Xmake 版本

v2.9.4+dev.216192e56

操作系统版本和架构

windows 11

描述问题

执行某些xrepo命令的时候,会提示找不到xmake.lua 好像是涉及到具体包的一些命令,就会这样 以下是一些例子

PS C:\Users\Administrator> xrepo search botan
note: xmake.lua not found, try generating it (pass -y or --confirm=y/n/d to skip confirm)?
please input: n (y/n)

PS C:\Users\Administrator> xrepo clean
note: xmake.lua not found, try generating it (pass -y or --confirm=y/n/d to skip confirm)?
please input: n (y/n)

PS C:\Users\Administrator> xrepo info plusaes
note: xmake.lua not found, try generating it (pass -y or --confirm=y/n/d to skip confirm)?
please input: n (y/n)

PS C:\Users\Administrator> xrepo scan
note: xmake.lua not found, try generating it (pass -y or --confirm=y/n/d to skip confirm)?
please input: n (y/n)

以下命令是正常的

xrepo
xrepo -h
xrepo env
xrepo list-repo

期待的结果

正常处理

工程配置

应该不需要

附加信息和错误日志

加了-vD没有额外的输出

Issues-translate-bot commented 1 month ago

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


Title: xrepo Many actions are invalid, and it will prompt that xmake.lua cannot be found.

waruqi commented 1 month ago

xmake l os.tmpdir 看下临时目录位置,整个删一下。

heheda123123 commented 1 month ago

今天早上就正常了,可能确实是某个临时目录出了问题,重启就能恢复

Issues-translate-bot commented 1 month ago

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


xmake l os.tmpdir Check the temporary directory location and delete it entirely.

Issues-translate-bot commented 1 month ago

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


It was normal this morning. There may indeed be a problem with a temporary directory. Restarting will restore it.