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

Error installing clang in windows #3901

Closed
jdx opened this issue Jan 1, 2025 Discussed in #3545 · 1 comment · Fixed by jdx/vfox.rs#76
Closed

Error installing clang in windows #3901

jdx opened this issue Jan 1, 2025 Discussed in #3545 · 1 comment · Fixed by jdx/vfox.rs#76
Labels

Comments

@jdx
Copy link
Owner

jdx commented Jan 1, 2025

Discussed in #3545

Originally posted by killerddd3 November 11, 2024
Describe the bug

 mise use -g clang
mise ERROR Failed to install clang@9.0.1
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:
  node@16.18.1
  java@adoptopenjdk-8.0.402+6
  python@3.13.0
  go@1.23.3

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  clang@9.0.1     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 clang@9.0.1
   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.
@jdx jdx added the bug label Jan 1, 2025
@jdx
Copy link
Owner Author

jdx commented Jan 1, 2025

I realize I just moved this to a discussion, but I think #3900 would make this solvable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant