Comments (15)
@fnuttens
i'll go ahead and close this issue then 😌
if, after the release, any of you guys can reproduce the error again, please feel free to ping here to reopen 😊
from nu_scripts.
It definitely works in Linux and does not work in Windows. I just confirmed with the latest main in Windows 11 and WSL Ubuntu.
from nu_scripts.
Ah, I think I figured it out. It's because of this in git-completions.nu
# Commit changes
export extern "git commit" [
--all(-a) # automatically stage all modified and deleted files
--amend # amend the previous commit rather than adding a new one
--message(-m): string # specify the commit message rather than opening an editor
--no-edit # don't edit the commit message (useful with --amend)
]
So, when this tries to happen
export alias gcam = git commit --all --message
It sees that --message
wants a string and pukes.
If I remove the : string
it works fine but then finds the next similar problem
Error: nu::parser::missing_flag_param
× Missing flag argument.
╭─[D:\nu_scripts\aliases\git\git-aliases.nu:51:1]
51 │ export alias gcasm = git commit --all --signoff --message
52 │ export alias gcb = git checkout -b
· ─┬
· ╰── flag missing string argument
53 │ export alias gcd = git checkout develop
╰────
from nu_scripts.
this looks like an issue with the completion of nushell
itself to me 🤔
from nu_scripts.
Anyone suceeded to make it work or find a workaround?
from nu_scripts.
@TechWatching
dumping
export alias gcam = git commit --all --message
into the REPL of the latest revision of Nushell appears to work 🤔
from nu_scripts.
@amtoine Yet I still have the error using 0.85.0 👉
In my config.nu file I am doing nu_scripts\aliases\git\git-aliases.nu *
from nu_scripts.
@TechWatching
i'm using 0.85.1
😮
the new release of Nushell goes out in a few hours, can you please try again after updating and keep me updated? 😇
from nu_scripts.
@TechWatching @amtoine
Huh very strange I'm also on version 0.85.0
and I don't have this error anymore…
from nu_scripts.
@TechWatching @amtoine Huh very strange I'm also on version
0.85.0
and I don't have this error anymore…
updates and patches come fast, i'm not really surprised 😉
from nu_scripts.
@amtoine still an issue with 0.86 on my windows laptop.
from nu_scripts.
maybe that's a windows issue? 🤔
from nu_scripts.
I'm also using Windows 11 and I don't have the bug, so I reckon it's more subtle than “just” a Windows issue.
from nu_scripts.
If I start nushell like nu -n
I can do
use d:\nu_scripts\aliases\git\git-aliases.nu
without any problems. but with my normal startup, it fails. no clue why.
from nu_scripts.
It looks like it's a conflict between git-completions.nu
and git-aliases.nu
If I use
them in this order, there are no issues. I think that means that one command is overwriting another command between these two scripts.
from nu_scripts.
Related Issues (20)
- bad template javascript characters in the release note template
- Showcase: nutils: Utilities for Nu HOT 11
- [0.83.1] format breaks for (maybe?) constructed records HOT 1
- Auto_venv breaks due to recent nushell breaking changes HOT 9
- micromamba support
- `use` of `parse-help` throws `nu::parser::expected_keyword` HOT 1
- Performance issues on man completions HOT 5
- How about nushell-completions? HOT 5
- Job.nu script no longer works HOT 2
- nu_conda list should show which environments are activated HOT 1
- Nuscript's for Pacman
- Module `rbenv` can't export command named same as module. HOT 3
- Add a basic level of CI for this repo HOT 3
- winget-completions.nu with problems? HOT 4
- Conda documentation HOT 3
- Admin commands Question HOT 1
- Fix: nushell at 0.88.0 `start` and `end` are deprecated HOT 1
- tokyo-night theme uses tokyo-storm palette HOT 7
- [new script] is dark_mode mac HOT 1
- The direnv hooks are very confusing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nu_scripts.