Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn 3.1.1 does not support list command line argument #12848

Open
simkoc opened this issue Jul 24, 2022 · 7 comments
Open

yarn 3.1.1 does not support list command line argument #12848

simkoc opened this issue Jul 24, 2022 · 7 comments
Labels
bug status:Closing as Answered The issue will be closed soon as answered unless there is further follow-up.

Comments

@simkoc
Copy link

simkoc commented Jul 24, 2022

Description

The current build relies on an yarn command line argument list which is not supported.

Reproduce

Install jupyter-lab using pip on an archlinux system.

I looked at the command line output when running jupyter-lab and got the error:

$> jupyter-lab --version
Fail to get yarn configuration. Unknown Syntax Error: Extraneous positional argument ("list").

$ yarn config [-v,--verbose] [--why] [--json]

3.4.4

Expected behavior

No yarn error.

Context

  • up to date arch linux
  • yarn 3.1.1
  • python 3.10.5
  • pip 22.1.2
  • jupyterlab 3.4.4

The mistake seems to be here. Simply deleting "list" solves the issue without any side effects as far as I can tell.

$> yarn config --help
Display the current configuration

━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$ yarn config

━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  -v,--verbose    Print the setting description on top of the regular key/value information
  --why           Print the reason why a setting is set a particular way
  --json          Format the output as an NDJSON stream

━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This command prints the current active configuration settings.

━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Print the active configuration settings
  $ yarn config

@simkoc simkoc added the bug label Jul 24, 2022
@welcome
Copy link

welcome bot commented Jul 24, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Jul 24, 2022
@simkoc
Copy link
Author

simkoc commented Jul 24, 2022

There seems to be a general yarn issue. You are using "--non-interactive" as a flag. This flag has been deprecated!

$> yarn install --non-interactive
➤ YN0050: The --non-interactive option is deprecated

@jtpio
Copy link
Member

jtpio commented Jul 25, 2022

Thanks @simkoc for opening this.

yarn 3 is not yet supported although there is a draft PR to update to it, which requires a couple of changes: #10929

@JasonWeill
Copy link
Contributor

Currently, JupyterLab uses "Classic" Yarn 1.x, which we provide as jlpm. Resolving this issue in favor of #10929 per @jtpio.

@JasonWeill JasonWeill reopened this Jul 28, 2022
@JasonWeill JasonWeill removed status:Duplicate status:Needs Triage Applied to new issues that need triage labels Jul 28, 2022
@JasonWeill
Copy link
Contributor

JupyterLab should depend on Yarn 1.x, but it looks like the packaged version in pip is depending on your local Yarn instead. We may need to update the packaged version to have the "classic" Yarn as a dependency.

@raffaem
Copy link

raffaem commented Aug 31, 2022

so what we do as a workaround in the meantime?

@jtpio
Copy link
Member

jtpio commented Sep 1, 2023

@simkoc looks like this issue can be closed now that JupyterLab uses Yarn 3 for its jlpm? #13875

@jtpio jtpio added the status:Closing as Answered The issue will be closed soon as answered unless there is further follow-up. label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Closing as Answered The issue will be closed soon as answered unless there is further follow-up.
Projects
None yet
Development

No branches or pull requests

4 participants