You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running topgrade, it fails with a TOML parse error for an unknown field deno in the configuration file. The specific error is:
ERROR Failed to deserialize /home/username/.config/topgrade.toml: TOML parse error at line 226, column 2
|
226 | [deno]
| ^^^^
unknown field `deno`, expected one of `include`, `misc`, `pre_commands`, `post_commands`, `commands`, `python`, `composer`, `brew`, `linux`, `git`, `containers`, `windows`, `npm`, `yarn`, `vim`, `firmware`, `vagrant`, `flatpak`, `distrobox`, `lensfun`
Expected Behavior
The configuration file should either accept the deno configuration section (since Deno is a supported tool that can be upgraded), or provide a clear error message about how to properly configure Deno updates if they are supported through a different configuration section.
Steps to reproduce
I used the example configuration wget "https://raw.githubusercontent.com/topgrade-rs/topgrade/main/config.example.toml" -O "$config_dir/topgrade.toml"
Run topgrade command
Observe the TOML parse error
Possible Cause
The error suggests that while there is recent support for Deno in the codebase (as evidenced by recent commits mentioning Deno features), the configuration parser doesn't yet recognize the deno configuration section as valid.
Problem persists without calling from topgrade
No
Did you run topgrade through Remote Execution
No
Configuration file
[deno]
Additional Details
Operation System/Version
Linux
Installation
cargo install topgrade
Topgrade version (topgrade -V)
topgrade v16.0.1
Verbose Output (topgrade -v)
ERROR Failed to deserialize /home/username/.config/topgrade.toml: TOML parse error at line 226, column 2
|
226 | [deno]
| ^^^^
unknown field `deno`, expected one of `include`, `misc`, `pre_commands`, `post_commands`, `commands`, `python`, `composer`, `brew`, `linux`, `git`, `containers`, `windows`, `npm`, `yarn`, `vim`, `firmware`, `vagrant`, `flatpak`, `distrobox`, `lensfun`
The text was updated successfully, but these errors were encountered:
I just recalled that Topgrade has a cli option that will print the example configuration file out, you can use it, the printed file should be exactly right for the Topgrade binary you use.
Thanks for the quick response, so it was just an unfortunate timing from my side.
If somebody will have the same problem I can recommend to use this command to generate a default config for topgrade:
Erroneous Behavior
When running topgrade, it fails with a TOML parse error for an unknown field
deno
in the configuration file. The specific error is:Expected Behavior
The configuration file should either accept the
deno
configuration section (since Deno is a supported tool that can be upgraded), or provide a clear error message about how to properly configure Deno updates if they are supported through a different configuration section.Steps to reproduce
wget "https://raw.githubusercontent.com/topgrade-rs/topgrade/main/config.example.toml" -O "$config_dir/topgrade.toml"
topgrade
commandPossible Cause
The error suggests that while there is recent support for Deno in the codebase (as evidenced by recent commits mentioning Deno features), the configuration parser doesn't yet recognize the
deno
configuration section as valid.Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
Configuration file
[deno]
Additional Details
topgrade -V
)Verbose Output (
topgrade -v
)The text was updated successfully, but these errors were encountered: