Newest version broke env in templates
lespea opened this issue · 1 comments
lespea commented
Describe the bug
After installing the 2024.12.13
I'm getting the following error every time my prompt is rendered:
mise WARN error deserializing __MISE_SESSION: missing field `env`
mise ERROR failed to parse template: '{{env.HOME}}/.cache/global_venv'
mise ERROR Failed to render '__tera_one_off'
mise ERROR Variable `env.HOME` not found in context while rendering '__tera_one_off'
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
I have the following setting in my config:
[env]
_.python.venv = "{{env.HOME}}/.cache/global_venv"
To Reproduce
Add entry into config, launch terminal.
Expected behavior
No errors; can use env in the templates
mise doctor
output
version: 2024.12.13 linux-x64 (2024-12-17)
activated: yes
shims_on_path: no
build_info:
Target: x86_64-unknown-linux-gnu
Features: DEFAULT, NATIVE_TLS
Built: Tue, 17 Dec 2024 23:49:20 +0000
Rust Version: rustc 1.83.0 (90b35a623 2024-11-26)
Profile: release
shell:
/usr/bin/fish
fish, version 3.7.1
dirs:
cache: ~/.cache/mise
config: ~/.config/mise
data: ~/.local/share/mise
shims: ~/.local/share/mise/shims
state: ~/.local/state/mise
config_files:
~/.config/mise/config.toml
backends:
aqua
asdf
cargo
core
gem
go
npm
pipx
spm
ubi
vfox
plugins:
coursier ssh://git@github.com/jiahuili430/asdf-coursier.git#b8ee13d
gradle ssh://git@github.com/rfrancis/asdf-gradle.git#3af5633
grails ssh://git@github.com/weibemoura/asdf-grails.git#ba222b0
kotlin ssh://git@github.com/asdf-community/asdf-kotlin.git#a9f0dde
perl ssh://git@github.com/ouest/asdf-perl.git#2b4609b
pnpm ssh://git@github.com/jonathanmorley/asdf-pnpm.git#85221d3
sbt ssh://git@github.com/bram2000/asdf-sbt.git#33f9637
scala ssh://git@github.com/asdf-community/asdf-scala.git#0533444
toolset:
asdf:coursier@2.1.18
asdf:gradle@8.11.1
asdf:kotlin@2.1.0
asdf:pnpm@9.15.0
asdf:sbt@1.10.6
asdf:scala@3.6.2
core:bun@1.1.38
core:go@1.23.4
core:java@temurin-21.0.5+11.0.LTS
core:java@temurin-23.0.1+11
core:node@23.4.0
core:python@3.13.1
core:zig@0.13.0
go:filippo.io/age/cmd/age-keygen@1.2.0
go:filippo.io/age/cmd/age@1.2.0
go:github.com/Zxilly/go-size-analyzer/cmd/gsa@1.7.6
go:github.com/charmbracelet/gum@0.14.5
go:github.com/dmarkham/enumer@1.5.10
go:github.com/go-swagger/go-swagger/cmd/swagger@0.31.0
go:github.com/golang/mock/mockgen@1.6.0
go:github.com/golangci/golangci-lint/cmd/golangci-lint@1.62.2
go:github.com/icholy/gomajor@0.14.0
go:github.com/itchyny/gojq/cmd/gojq@0.12.17
go:github.com/johnkerl/miller/v6/cmd/mlr@6.13.0
go:github.com/marwan-at-work/mod/cmd/mod@0.7.1
go:github.com/mr-karan/doggo/cmd/doggo@1.0.5
go:github.com/muesli/duf@0.8.1
go:github.com/noperator/jqfmt/cmd/jqfmt@latest
go:github.com/noperator/sol/cmd/sol@latest
go:github.com/oligot/go-mod-upgrade@0.10.0
go:github.com/psampaz/go-mod-outdated@0.9.0
go:github.com/segmentio/golines@0.12.2
go:golang.org/x/tools/cmd/stringer@0.28.0
go:golang.org/x/tools/gopls@0.17.0
go:honnef.co/go/tools/cmd/staticcheck@0.6.0-0.dev
go:mvdan.cc/gofumpt@0.7.0
Additional context
I launch a bash process and activated mise and it had the same error so I don't think it's fish only.