-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
XMake 在windows 10 下, update 指令无效 #1232
Comments
请到非工程目录下执行update 这个问题 dev上已修复,见 #1219 |
windows 下我就在非工程目录 |
从releases里面下载 xmake-master.exe安装下再试试 |
我回头看下 |
我这里正常 无法复现你的问题,你可以执行下 xmake update -vD 给我看下栈信息 |
|
你这跑的还是老版本 master版本没生效 你看下path 是不是装了两个版本 一个32bits的 一个64bits的 分别装到不同目录了 然后path指向的还是老的版本 |
我用 Everything 搜索了, 只有一个 xmake.exe |
你可以到自己安装目录下看下,对应位置的lua脚本,package:.lua 372 行 应该是个 return ,这里 master 上我已经修复过得,但是你这还是会调用到下面的 project.requireconfs_str() 里面去,明显还是老的脚本。 xmake/xmake/actions/require/impl/package.lua Lines 368 to 373 in a3a58f8
这边测试用release里面的 xmake-master.win64.exe 安装后,我这是最新的 |
好吧, 明天我起来的时候再重新配置, 我这里晚上了 |
我下了源码, \actions\require\impl\package.lua:372 方法时这样的: function _merge_requireinfo(requireinfo, requirepath)
-- find requireconf from the given requirepath
local requireconf_result = {}
local requireconfs, requireconfs_extra = project.requireconfs_str()
if requireconfs then
for _, requireconf in ipairs(requireconfs) do
if _match_requirepath(requirepath, requireconf) then
local requireconf_extra = requireconfs_extra[requireconf]
table.insert(requireconf_result, {requireconf = requireconf, requireconf_extra = requireconf_extra})
end
end
end
-- append requireconf_extra into requireinfo
-- and the configs of add_requires have a higher priority than add_requireconfs.
--
-- e.g.
-- add_requireconfs("*", {configs = {debug = false}})
-- add_requires("foo", "bar", {configs = {debug = true}})
--
-- foo and bar will be debug mode
--
-- we can also override the configs of add_requires
--
-- e.g.
-- add_requires("zlib 1.2.11")
-- add_requireconfs("zlib", {override = true, version = "1.2.10"})
--
-- we override the version of zlib to 1.2.10
--
if #requireconf_result == 1 then
local requireconf_extra = requireconf_result[1].requireconf_extra
if requireconf_extra then
-- preprocess requireconf_extra, (debug, override ..)
local override = requireconf_extra.override
requireconf_extra.override = nil
if requireconf_extra.debug then
requireconf_extra.configs = requireconf_extra.configs or {}
requireconf_extra.configs.debug = true
requireconf_extra.debug = nil
end
-- append or override configs and extra options
for k, v in pairs(requireconf_extra.configs) do
requireinfo.configs = requireinfo.configs or {}
if override or requireinfo.configs[k] == nil then
requireinfo.configs[k] = v
end
end
for k, v in pairs(requireconf_extra) do
if k ~= "configs" then
if override or requireinfo[k] == nil then
requireinfo[k] = v
end
end
end
end
elseif #requireconf_result > 1 then
local confs = {}
for _, item in ipairs(requireconf_result) do
table.insert(confs, item.requireconf)
end
raise("package(%s) will match multiple add_requireconfs(%s)!", requirepath, table.concat(confs, " "))
end
end 安装步骤: 之前使用 xmake-v2.5.1.win64.exe 下载的: 源码 xmake-2.5.1.zip: |
你这个还是老版本哈。。我是让你下载 master 版本测试,也就是 master 分支的最新提交版本(ci日常构建的版本,还没发版),不是 2.5.1线上版本。。
https://github.com/xmake-io/xmake/releases/download/v2.5.1/xmake-master.win64.exe dev分支的版本也可以,别弄错了 |
对了 你在update一边试试呢 git能找到不 |
那可以了。已经更新了。。git 那个暂时不用管,首次装完git 可能有些case没立即绑定环境,所以后面的执行失败了,下次重新 update 就好了。。回头我可以改进下 |
谢谢了 |
描述问题
windows 10 下 xmake update 无效, xmake 忽略了update 指令.
![xmake_update](https://user-images.githubusercontent.com/62749050/106959092-fad3e980-6718-11eb-8e39-ef70e2a4f927.png)
期待的结果
希望能快点修复此bug
错误信息
相关环境
其他信息
这个问题不存在于 deepin 20.1 社区版
![xmake_update_in_deepin](https://user-images.githubusercontent.com/62749050/106959564-97968700-6719-11eb-8085-f4839d38aae5.png)
xmake 忽略了 update 指令, 而是直接寻找 xmake.lua 文件.
其它情况
如果目录下有 xmake.lua 就会显示下面的信息:
![xmake_other](https://user-images.githubusercontent.com/62749050/106963404-4d180900-671f-11eb-83aa-0db0dcf27472.png)
The text was updated successfully, but these errors were encountered: