uv icon indicating copy to clipboard operation
uv copied to clipboard

activate.nu error

Open Arengard opened this issue 1 year ago • 3 comments

Scripts\activate.nu:95:1] 95 │ export alias pydoc = python -m pydoc 96 │ export alias deactivate = overlay hide activate · ───┬─── · ╰── not allowed in pipeline ╰──── help: 'overlay' keyword is not allowed in pipeline. Use 'overlay' by itself, outside of a pipeline.

Arengard avatar Feb 16 '24 13:02 Arengard

Mmm this is a virtualenv issue, which is caused by upstream nushell shell script. to better readability, I copy and paste in a monospaced font

  × Statement used in pipeline.
    ╭─[C:\Users\aucac\repos\exp-python\uv\.venv\Scripts\activate.nu:95:1]
 95 │ export alias pydoc = python -m pydoc
 96 │ export alias deactivate = overlay hide activate
    ·                           ───┬───
    ·                              ╰── not allowed in pipeline
    ╰────
  help: 'overlay' keyword is not allowed in pipeline. Use 'overlay' by itself, outside of a pipeline.

I could track this issue firstly in virtualenv and then in the issues of nushell/nushell

I think is solvable, but it has nothing to do with uv

AucaCoyan avatar Feb 16 '24 15:02 AucaCoyan

Thank you! I think we vendor this script so we'd need to update once fixed upstream.

zanieb avatar Feb 16 '24 16:02 zanieb

Hi,

Nushell user here, and I partly wrote that script. What version of nushell are you on?

I'm currently refactoring the script but it should still work as is in nushell 0.89+

melMass avatar Feb 17 '24 18:02 melMass

Hi! I'm using uv and venv in nushell with no errors. Do you keep getting issues @Arengard ?

AucaCoyan avatar Apr 29 '24 15:04 AucaCoyan