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

poetry shell not use nushell when spawning shell for virtual environment #5349

Closed
3 tasks done
gunungpw opened this issue Mar 24, 2022 · 3 comments · Fixed by #6063
Closed
3 tasks done

poetry shell not use nushell when spawning shell for virtual environment #5349

gunungpw opened this issue Mar 24, 2022 · 3 comments · Fixed by #6063
Labels
kind/bug Something isn't working as expected

Comments

@gunungpw
Copy link
Contributor

gunungpw commented Mar 24, 2022

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Windows 10
  • Poetry version: 1.1.13
  • Link of a Gist with the contents of your pyproject.toml file:
[tool.poetry]
name = "demo-shellingham"
version = "0.1.0"
description = ""
authors = ["Gunung Pambudi W. <gunungpambudiw@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.10"
shellingham = "^1.4.0"

[tool.poetry.dev-dependencies]
pytest = "^5.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

Issue

Poetry shell command doesn't spawn virtual environment with intended shell. In this case poetry not use Nushell. This problem is caused by shellingham dependency not detect nushell in this case nu.exe but detect other shell like pwsh.exe or cmd.exe following COMSPEC env variable in Windows.
I make PR in shellingham to include nushell

sarugaku/shellingham#56

edit: PR already merge

@gunungpw gunungpw added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 24, 2022
@Secrus
Copy link
Member

Secrus commented Mar 24, 2022

shellingham might have merged your PR, but it still didn't make new release (since 2019 from the looks of it). I doubt Poetry core team will be willing to source package from repo master.

@gunungpw
Copy link
Contributor Author

gunungpw commented Mar 24, 2022

shellingham last release was Feb 2021, and the maintainer is very active in python packaging community, also that package used in PDM, poetry, and Pipenv. the aim for this issue is not to pressure poetry to vendor the package, because it's not an urgent matter. it is just info, for other people that use nushell so they can just patch the lib for themself

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Aug 4, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants