poetry icon indicating copy to clipboard operation
poetry copied to clipboard

fish completions file path is likely wrong in help/documentation

Open jnik-aarhus opened this issue 7 years ago • 4 comments

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

Hello :) It looks like completions for fish have moved directory since the documentation was created. Per the fish documentation, they now reside in /usr/share/fish/completions/ (a bit dependent on installation). As such, the command is more likely to be

poetry completions fish > /usr/share/fish/completions/poetry.fish

which causes access problems :)

jnik-aarhus avatar Oct 04 '19 07:10 jnik-aarhus

Hi @jnik-aarhus. For future reference, it would have been a bit easier to help you if had you linked to the Poetry shell completion documentation to which your issue ostensibly refers. In any case, you wrote:

Per the fish documentation, [the completions] now reside in /usr/share/fish/completions/

The relevant section of those docs — Where to Put Completions — makes it very clear that /usr/share/fish/completions/ is for "completions shipped with Fish", which is therefore not an appropriate location for tools like Poetry to store their completions. While the Fish shell documentation suggests that /usr/share/fish/vendor_completions.d be used by "third-party software vendors to ship their own completions for their software", /usr/share/fish doesn't exist in some environments (e.g., macOS brew'd Fish), and /usr/share/ is owned by root and is thus associated with the access problems you mentioned in your issue description.

Running echo $fish_complete_path will show you all the paths that completions can be placed and be recognized by Fish. Of all the items in that list on my system, the ~/.config/fish/completions/ path that's mentioned in the existing Poetry documentation is indeed the most appropriate path for Poetry completions.

I hope this helps clarify things for you. Assuming it does, would you please save Poetry maintainers some time and close this issue?

justinmayer avatar Oct 09 '19 00:10 justinmayer

Hello,

Thank you very much for your comprehensive answer! I realised this after opening this issue, and I apologise for my confusion. I'll close this issue, and again, thank you for taking the time to answer me.

jnik-aarhus avatar Oct 09 '19 06:10 jnik-aarhus

Glad you found it helpful. Cheers! 😁

justinmayer avatar Oct 09 '19 19:10 justinmayer

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[bot] avatar Mar 03 '24 14:03 github-actions[bot]