你在干什么?
-
注册表里面有系统代理的相关信息,可以查看是否启用和对应的代理地址
-
> Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing).Content __ __ _ _ \ \ / / | | (_) pre-v0.0.2 \ V / | | _ _ __ __ _ ___ > < | | | || '_ \ / _ |/ __| / . \ | |____| || | | || (_| |\__ \ /_/ \_\ |______|_||_| |_| \__, ||___/ __/ | |___/ repo: https://github.com/d2learn/xlings forum: https://forum.d2learn.org --- Testing network... 警告: Unable to ping github.com Latency for github.com : 999999 ms Latency for gitee.com : 25.67 ms [xlings]: start detect environment and try to auto config... [xlings]: xmake installed [xlings]: xlings is already in PATH. error: cannot import module: xlings, cannot import module: xim.xim, cannot import module: CmdProcessor, cannot import module: xim.index.IndexManager, 21.047863 error: cannot import module: xlings, cannot import module: xim.xim, cannot import module: CmdProcessor, cannot import module: xim.index.IndexManager, 21.042031 'xvm' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'xvm' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'xvm' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'xvm' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 [xlings]: xlings installed run xlings help get more information removing directory: D:\TEMP\xlings (tmpfiles) xlings has been successfully installed. Path already contains C:\Users\Public\.xlings_data\bin Path already contains C:\Users\24123\xmake
-
我在windows上测试一下
-
我刚查了, Windows 上的Test-Connection命令也就是ping命令本身不直接支持通过系统代理进行连接测试
-
@2412322029 有可能还真是代理的问题, 你可以把代理关闭试一下
按理来说安装应该不会出错
或者直接使用clone源码的本地运行脚本的方式安装试一试
tools\install.win.bat
https://github.com/d2learn/xlings/actions/runs/12892557443/job/35947025161
-
@sunrisepeak 最新代码跑windows安装的CI测试是通过的
-
@2412322029 我现在也查一下这个错误, 看看什么原因引起的
error: cannot import module: xlings, cannot import module: xim.xim, cannot import module: CmdProcessor, cannot import module: xim.index.IndexManager, 21.047863
-
@sunrisepeak @2412322029 这种方式试一试
-
-
@2412322029 你电脑里的xmake是什么版本啊
-
一样的版本v2.9.7+master.ce35c1abd
-
-
v2.9.7+master.ce35c1abd
-
@2412322029 目前看是同样的代码, 在你的本地执行会报错, 这个还挺奇怪的。试一试手动删除这两个缓冲文件呢
-
问题在环境变量这一步
-
@2412322029 安装脚本里的吗, 还是...
-
for /f "tokens=2*" %%a in ('reg query "HKEY_CURRENT_USER\Environment" /v PATH') do set UserPath=%%b echo %UserPath% | findstr /i "xlings_data" >nul if %errorlevel% neq 0 ( echo [xlings]: set xlings to PATH setx PATH "%XLINGS_BIN_DIR%;%UserPath%" ) else ( echo [xlings]: xlings is already in PATH. )
环境变量中没有但是显示[xlings]: xlings is already in PATH.
-
@2412322029 即使环境变量有问题, 但是直接在core环境下运行代码也不应该报错啊
-
@sunrisepeak commit 是这个
-
xmake 显示error: invalid task: xlings