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

More user-friendly error message for pdm add local package. #1875

Closed
Matheus-Ribeiro-ITA opened this issue May 2, 2023 · 0 comments · Fixed by j178/pdm#1
Closed

More user-friendly error message for pdm add local package. #1875

Matheus-Ribeiro-ITA opened this issue May 2, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
⭐ enhancement Improvements for existing features

Comments

@Matheus-Ribeiro-ITA
Copy link

Matheus-Ribeiro-ITA commented May 2, 2023

Is your feature request related to a problem? Please describe.

Hi Frost and PDM team, first awesome package manager!

Could we have a more user-friendly error message for adding a local package to PDM:

Ex:
pdm add ./inexistent_path_with_typo

Returns:

[RequirementError]: Expected package name at the start of dependency specifier
    ./inexistent_path_with_typo
    ^

Describe the solution you'd like

Something like bellow, would be awesome in my opinion

No such file or package found at: file:///${PROJECT_ROOT}/inexistent_path_with_typo

Version

PDM, version 2.5.3

@Matheus-Ribeiro-ITA Matheus-Ribeiro-ITA added the ⭐ enhancement Improvements for existing features label May 2, 2023
@Matheus-Ribeiro-ITA Matheus-Ribeiro-ITA changed the title More user-friendly message for pdm add local package. More user-friendly error message for pdm add local package. May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant