-
Notifications
You must be signed in to change notification settings - Fork 2.1k
register does not accept true constant arguments #8208
Copy link
Copy link
Closed
Labels
A:parserIssues related to parsingIssues related to parsingcategory:enhancementNew feature or requestNew feature or requestdeprecated:pr-pluginsDeprecated: use the A:plugins label insteadDeprecated: use the A:plugins label instead
Milestone
Description
Related problem
i've got the nu_plugin_query from nushell installed in my $env.CARGO_HOME/bin/ which is ~/.local/share/cargo/bin/
i can not define a constant with the full absolute path and register from the constant
>_ const foo = "/home/amtoine/.local/share/cargo/bin/nu_plugin_query"
>_ register $foo
Error: nu::parser::registered_file_not_found
× File not found
╭─[entry #14:1:1]
1 │ register $foo
· ──┬─
· ╰── File not found: $foo
╰────
help: registered files need to be available before your script is runNote
see the original discussion over on Discord
Describe the solution you'd like
i would like
>_ const foo = "/home/amtoine/.local/share/cargo/bin/nu_plugin_query"
>_ register $footo register the plugin as just as register ~/.local/share/cargo/bin/nu_plugin_query already does 😋
Describe alternatives you've considered
No response
Additional context and details
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:parserIssues related to parsingIssues related to parsingcategory:enhancementNew feature or requestNew feature or requestdeprecated:pr-pluginsDeprecated: use the A:plugins label insteadDeprecated: use the A:plugins label instead