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

The option of displaying environment path shows the output of the path without a new line #2195

Closed
2 of 3 tasks
harunyasar opened this issue Mar 18, 2020 · 1 comment · Fixed by #2196
Closed
2 of 3 tasks
Labels
kind/bug Something isn't working as expected

Comments

@harunyasar
Copy link

harunyasar commented Mar 18, 2020

  • 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: elementary OS 5.1.2 Hera
  • Poetry version: 1.0.5

Issue

Poetry environment info option gives the current path value without a new line.

$ poetry env info --path

Screenshot from 2020-03-18 14 59 19

I think that changing just a line within the EnvInfoCommand class would be fine.

Because the function writes the output with self.write(str(env.path)) It might have to be self.line(str(env.path)). I think changing the value in this way can give the expected output.

https://github.com/python-poetry/poetry/blob/master/poetry/console/commands/env/info.py#L13-L26

Copy link

github-actions bot commented Mar 3, 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 3, 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.

1 participant