Coder Social home page Coder Social logo

Comments (15)

amtoine avatar amtoine commented on July 30, 2024 1

@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.

fdncred avatar fdncred commented on July 30, 2024 1

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.

fdncred avatar fdncred commented on July 30, 2024 1

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.

amtoine avatar amtoine commented on July 30, 2024

this looks like an issue with the completion of nushell itself to me 🤔

from nu_scripts.

TechWatching avatar TechWatching commented on July 30, 2024

Anyone suceeded to make it work or find a workaround?

from nu_scripts.

amtoine avatar amtoine commented on July 30, 2024

@TechWatching
dumping

export alias gcam = git commit --all --message

into the REPL of the latest revision of Nushell appears to work 🤔

from nu_scripts.

TechWatching avatar TechWatching commented on July 30, 2024

@amtoine Yet I still have the error using 0.85.0 👉
image

In my config.nu file I am doing nu_scripts\aliases\git\git-aliases.nu *

from nu_scripts.

amtoine avatar amtoine commented on July 30, 2024

@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.

fnuttens avatar fnuttens commented on July 30, 2024

@TechWatching @amtoine
Huh very strange I'm also on version 0.85.0 and I don't have this error anymore…

from nu_scripts.

amtoine avatar amtoine commented on July 30, 2024

@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.

TechWatching avatar TechWatching commented on July 30, 2024

@amtoine still an issue with 0.86 on my windows laptop.

image

from nu_scripts.

amtoine avatar amtoine commented on July 30, 2024

maybe that's a windows issue? 🤔

from nu_scripts.

fnuttens avatar fnuttens commented on July 30, 2024

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.

fdncred avatar fdncred commented on July 30, 2024

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.

fdncred avatar fdncred commented on July 30, 2024

It looks like it's a conflict between git-completions.nu and git-aliases.nu
image
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.
image

from nu_scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.