mise
mise copied to clipboard
Error installing clang in windows
Describe the bug
mise use -g clang
mise ERROR Failed to install [email protected]
mise ERROR runtime error: attempt to yield across metamethod/C-call boundary
stack traceback:
[C]: in ?
[C]: in function 'yield'
[string "?"]:16: in function 'get'
...rs\zxd\AppData\Local\mise\plugins\clang\lib/util.lua:7: in function 'fetchVersions'
...rs\zxd\AppData\Local\mise\plugins\clang\lib/util.lua:23: in main chunk
[C]: in function 'require'
...AppData\Local\mise\plugins\clang\hooks\available.lua:1: in main chunk
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
To Reproduce mise use -g clang
Expected behavior clang be installed
mise doctor
output
version: 2024.11.7 windows-x64 (c1b0623 2024-11-11)
shims_on_path: yes
build_info:
Target: x86_64-pc-windows-msvc
Features: DEFAULT, NATIVE_TLS, OPENSSL
Built: Mon, 11 Nov 2024 17:01:01 +0000
Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
Profile: release
shell:
(unknown)
dirs:
data: ~\AppData\Local\mise
config: ~\.config\mise
cache: ~\AppData\Local\Temp\mise
state: ~\.local\state\mise
shims: ~\AppData\Local\mise\shims
config_files:
~\.config/mise/config.toml
~\mise.toml
backends:
cargo
core
go
npm
pipx
spm
ubi
vfox
plugins:
toolset:
[email protected]
[email protected]+6
[email protected]
[email protected]
env_vars:
(none)
settings:
activate_aggressive = false
all_compile = false
always_keep_download = false
always_keep_install = false
asdf = false
asdf_compat = false
cache_prune_age = "30d"
ci = false
color = true
debug = false
disable_backends = ["asdf"]
disable_default_registry = false
disable_hints = []
disable_tools = []
experimental = true
fetch_remote_versions_cache = "1h"
fetch_remote_versions_timeout = "10s"
go_default_packages_file = "~/.default-go-packages"
go_download_mirror = "https://dl.google.com/go"
go_repo = "https://github.com/golang/go"
go_set_gopath = false
go_set_goroot = true
go_skip_checksum = false
http_timeout = "30s"
jobs = 4
legacy_version_file = true
legacy_version_file_disable_tools = []
libgit2 = true
lockfile = false
log_level = "info"
not_found_auto_install = true
paranoid = false
pin = false
plugin_autoupdate_last_check_duration = "7d"
quiet = false
raw = false
task_timings = false
trace = false
trusted_config_paths = []
unix_default_file_shell_args = ["sh"]
unix_default_inline_shell_args = [
"sh",
"-c",
]
use_file_shell_for_executable_tasks = false
use_versions_host = true
verbose = false
vfox = true
windows_default_file_shell_args = [
"cmd",
"/c",
]
windows_default_inline_shell_args = [
"cmd",
"/c",
]
windows_executable_extensions = [
"exe",
"bat",
"cmd",
"com",
"ps1",
"vbs",
]
yes = false
[cargo]
binstall = true
[node]
[npm]
bun = false
[pipx]
uvx = false
[python]
default_packages_file = '~\.default-python-packages'
pyenv_repo = "https://github.com/pyenv/pyenv.git"
venv_auto_create = false
venv_stdlib = false
[ruby]
default_packages_file = "~/.default-gems"
ruby_build_repo = "https://github.com/rbenv/ruby-build.git"
ruby_install = false
ruby_install_repo = "https://github.com/postmodern/ruby-install.git"
[status]
missing_tools = "if_other_versions_installed"
show_env = false
show_tools = false
No warnings found
No problems found
Additional context
mise use -g clang -verbose
DEBUG ARGS: D:\userData\software\mise\bin\mise.exe use -g clang -verbose
DEBUG config: C:\Users\zxd\mise.toml
DEBUG config: C:\Users\zxd\.config/mise/config.toml
DEBUG install_versions: clang@latest
INFO [email protected] installing
DEBUG [vfox:clang] pre_install
DEBUG Getting metadata for clang
DEBUG starting new connection: https://github.com/
DEBUG proxy(http://127.0.0.1:7890) intercepts 'https://github.com/'
Error:
0: Failed to install [email protected]
1: runtime error: attempt to yield across metamethod/C-call boundary
stack traceback:
[C]: in ?
[C]: in function 'yield'
[string "?"]:16: in function 'get'
...rs\zxd\AppData\Local\mise\plugins\clang\lib/util.lua:7: in function 'fetchVersions'
...rs\zxd\AppData\Local\mise\plugins\clang\lib/util.lua:23: in main chunk
[C]: in function 'require'
...AppData\Local\mise\plugins\clang\hooks\available.lua:1: in main chunk
Location:
src\backend\vfox.rs:69
Version:
2024.11.7 windows-x64 (c1b0623 2024-11-11)
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.