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 #3001

Open
killerddd3 opened this issue Nov 12, 2024 · 2 comments
Open

Error installing clang in windows #3001

killerddd3 opened this issue Nov 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@killerddd3
Copy link

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.
@killerddd3 killerddd3 added the bug Something isn't working label Nov 12, 2024
@moniquelive
Copy link

Same error, different language:

🍎 ❯ mise install --verbose ruby
DEBUG ARGS: /opt/homebrew/bin/mise install --verbose ruby
DEBUG config: ~/.config/mise/config.toml
DEBUG install_versions: ruby@latest
INFO  [email protected]      installing
DEBUG [vfox:ruby] pre_install
DEBUG Getting metadata for ruby
DEBUG starting new connection: https://github.com/
Error: 
   0: failed to install core:[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/cyber/.local/share/mise/plugins/ruby/lib/util.lua:8: in function 'fetchManifest'
      	...rs/cyber/.local/share/mise/plugins/ruby/lib/util.lua:23: in main chunk
      	[C]: in function 'require'
      	...r/.local/share/mise/plugins/ruby/hooks/available.lua:1: in main chunk

Location:
   src/backend/vfox.rs:68

Version:
   2024.11.18 macos-arm64 (2024-11-19)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

mise doctor output:

🍎 ❯ mise doctor
version: 2024.11.18 macos-arm64 (2024-11-19)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Tue, 19 Nov 2024 22:00:56 +0000
  Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15) (Homebrew)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (arm64-apple-darwin24.0)

dirs:
  data: ~/.local/share/mise
  config: ~/.config/mise
  cache: ~/Library/Caches/mise
  state: ~/.local/state/mise
  shims: ~/.local/share/mise/shims

config_files:
  ~/.config/mise/config.toml

backends:
  aqua
  asdf
  cargo
  core
  go
  npm
  pipx
  spm
  ubi
  vfox
  unknown

plugins:
  cabal          https://github.com/sestrella/asdf-ghcup.git#a6407a2
  crystal        https://github.com/asdf-community/asdf-crystal.git#7af37cf
  elixir         https://github.com/mise-plugins/mise-elixir.git#7b06439
  elixir-ls      https://github.com/juantascon/asdf-elixir-ls#faf921f
  ghc            https://github.com/sestrella/asdf-ghcup.git#a6407a2
  golangci-lint  https://github.com/hypnoglow/asdf-golangci-lint.git#fee877b
  hls            https://github.com/sestrella/asdf-ghcup.git#a6407a2
  lua            https://github.com/Stratus3D/asdf-lua.git#e0c15ea
  stack          https://github.com/sestrella/asdf-ghcup.git#a6407a2
  usage          https://github.com/jdx/mise-usage.git#fe3888a

toolset:
  core:[email protected]
  asdf:sestrella/[email protected]
  asdf:Stratus3D/[email protected]
  asdf:Stratus3D/[email protected]
  asdf:sestrella/[email protected]
  asdf:sestrella/[email protected]
  aqua:commercialhaskell/[email protected]
  ubi:golangci/[email protected]
  core:[email protected]
  asdf:mise-plugins/[email protected]
  core:[email protected]
  core:[email protected]       (missing)
  ubi:jdx/[email protected]

env_vars:
  MISE_SHELL=zsh

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = false
  cache_prune_age = "30d"
  ci = false
  color = true
  debug = false
  disable_backends = []
  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
  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
2 warnings found:

1. plugin node overrides a core plugin

2. plugin ruby overrides a core plugin

No problems found

@jeremy
Copy link

jeremy commented Nov 20, 2024

Happening with Node, Ruby, and Python, at least. Mise is now auto-installing the vfox plugin for each core plugin.

Disable vfox as a workaround:

mise settings set vfox false

This was working as recently as v2024.11.4.

Note that downgrading to earlier releases won't fix it unless you also remove the vfox plugin, e.g. mise plugins rm ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants