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

Improve error message when python fails in develop #1644

Merged
merged 2 commits into from
Jun 2, 2023

Conversation

konstin
Copy link
Member

@konstin konstin commented Jun 1, 2023

Inspired by https://www.youtube.com/live/zepPZ6MFiGs?feature=share&t=648, i wanted to improve the error message when maturin develop fails because python doesn't work.

I unfortunately failed to reproduce the error in the video, but i'm nonetheless confident that this is the correct change: It shouldn't say "The given list of python interpreters is invalid" when you didn't provide any list. iirc the error message comes from a time when i assumed users would provide a list like python3.5 python3.6 python3.7 instead of building for one version per CI job.

I thought about redoing the error system around interpreters but i think just pointing out the faulty interpreter is all a user needs to understand and debug the problem

Inspired by https://www.youtube.com/live/zepPZ6MFiGs?feature=share&t=648, i wanted to improve the error message when `maturin develop` fails because `python` doesn't work.

I unfortunately failed to reproduce the error in the video, but i'm nonetheless confident that this is the correct change: It shouldn't say "The given list of python interpreters is invalid" when you didn't provide any list. iirc the error message comes from a time when i assumed users would provide a list like python3.5 python3.6 python3.7 instead of building for one version per CI job.
@netlify
Copy link

netlify bot commented Jun 1, 2023

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit 2612df1
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/64793bd83398a800081bdbad
😎 Deploy Preview https://deploy-preview-1644--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@konstin
Copy link
Member Author

konstin commented Jun 1, 2023

looks to me like it's a new lint that's broken, the lint doesn't fire on 1.69 and removing the clone results in a "borrow of partially moved value"

@messense messense enabled auto-merge June 2, 2023 00:46
@messense messense added this pull request to the merge queue Jun 2, 2023
Merged via the queue into main with commit 6fe618b Jun 2, 2023
31 checks passed
@messense messense deleted the improve_error_message branch June 2, 2023 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants