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

Link errors to relevant project #69

Merged
merged 2 commits into from
Dec 9, 2022
Merged

Link errors to relevant project #69

merged 2 commits into from
Dec 9, 2022

Conversation

hauntsaninja
Copy link
Owner

Fixes #67

@AlexWaygood
Copy link
Contributor

AlexWaygood commented Dec 6, 2022

Thoughts on doing something like this, so we can see the failure message from pip itself if --debug is passed? AlexWaygood@f3b073c (i.e., pass output=True to the run() call on line 365, then debug_print() the captured stderr from the pip command)

mypy_primer.py Outdated
cwd=ARGS.projects_dir / self.name,
env=env,
)
except subprocess.CalledProcessError as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think CalledProcessError can be raised here, since we're passing check=False to run()

@hauntsaninja hauntsaninja merged commit e4a785f into master Dec 9, 2022
@hauntsaninja hauntsaninja deleted the error branch December 9, 2022 08:53
@hauntsaninja
Copy link
Owner Author

Thanks for the reviews!

@AlexWaygood
Copy link
Contributor

Thanks for the quick fix!

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.

Primer crashes with an unfriendly traceback if requirements for a project can't be installed
3 participants