Closed engeir closed 2 weeks ago
NOTE: it seems the toml is also not correct as setting the env var to true causes a parsing error, but that is perhaps worth its own issue.
you've used an integer for an env var but env vars are only ever strings. You also can't use env vars to set settings inside of mise.toml files I don't think. There isn't a need for that since you can use settings instead.
Okay, I see. However the bug I described does persist though, even if I use
# ~/.config/mise/config.toml
[settings]
pipx_uvx = true
experimental = true
[tools]
uv = "latest"
Now running mise use -g "pipx:black"
results in the same execute command
error as before.
Same, here, if done with pipx all goes well, i download the pipx tool, and then the dependent tools (in my case pipx:sqlfluff/sqlfluff
).
But if i activate uvx pipx_uvx = true
uv gets installed and tries to use pipx, if i retry the install it starts using uv tool but it errors out with No such file or directory (os error 2)
First run with uvx active:
[DEBUG] ARGS: mise install --verbose
[DEBUG] Config {
Config Files: [
"~/devs/music-follower/.mise.toml",
"~/.config/mise/config.toml",
],
}
[DEBUG] ToolRequestSet.build(67.051µs): ToolRequestSet: usage@latest uv@latest sqlite@3.46.0 yamllint@latest deno@1.46 yamlfmt@latest pipx:sqlfluff/sqlfluff@latest
[DEBUG] install_versions: uv@latest pipx:sqlfluff/sqlfluff@latest
downloading
~/.local/share/mise/plugins/uv/bin/download
[DEBUG] $ ~/.local/share/mise/plugins/uv/bin/download
[DEBUG] $ pipx install git+https://github.com/sqlfluff/sqlfluff.git@2.0.7
* Downloading uv release 0.3.5...
installing
~/.local/share/mise/plugins/uv/bin/install
[DEBUG] $ ~/.local/share/mise/plugins/uv/bin/install
uv 0.3.5 installation was successful!
mise uv@0.3.5 ✓ installed
Error:
0: failed to execute command: pipx install git+https://github.com/sqlfluff/sqlfluff.git@2.0.7
1: No such file or directory (os error 2)
Location:
src/cmd.rs:253
Version:
2024.8.14 linux-x64 (2ed1258 2024-08-27)
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Second run with uvx active:
[DEBUG] ARGS: mise install --verbose
[DEBUG] Config {
Config Files: [
"~/devs/music-follower/.mise.toml",
"~/.config/mise/config.toml",
],
}
[DEBUG] ToolRequestSet.build(60.75µs): ToolRequestSet: usage@latest uv@latest sqlite@3.46.0 yamllint@latest deno@1.46 yamlfmt@latest pipx:sqlfluff/sqlfluff@latest
[DEBUG] install_versions: uv@latest pipx:sqlfluff/sqlfluff@latest
[DEBUG] $ uv tool install git+https://github.com/sqlfluff/sqlfluff.git@2.0.7
Error:
0: failed to execute command: uv tool install git+https://github.com/sqlfluff/sqlfluff.git@2.0.7
1: No such file or directory (os error 2)
Location:
src/cmd.rs:253
Version:
2024.8.14 linux-x64 (2ed1258 2024-08-27)
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Also do not know if this is related with pipx/uvx, but i have sqlfluff tool @latest
but is gets resolved to 2.2.0 which i think it is not correct, as the latest version is 3.1.1
because the patch has not yet been released
Are you referring to https://github.com/jdx/mise/pull/2516? If so, does this also addresses the issue i am having with sqlfluff? or is this not related with mise?
no https://github.com/jdx/mise/commit/b608a736d94f3a97c4cd06226b194bef41b15d9d
I'm not sure why the version is out of date there
Describe the bug When using mise to install uv/uvx, I get an error when trying to further install via the pipx backend:
Just like described here.
To Reproduce Install uv and for example black via mise:
Installing uv manually and commenting out
uv = "latest"
will install black as expected.NOTE: it seems the toml is also not correct as setting the env var to true causes a parsing error, but that is perhaps worth its own issue.
Expected behavior Both uv and black would be installed with no issue.
mise doctor
outputAdditional context Add any other context about the problem here. Consider running mise with
--debug
or--trace
for extra debug info.Output of
mise i --debug
: