Skip to content

feat: Improve error message at missing pixi section#3516

Merged
Hofer-Julian merged 14 commits intoprefix-dev:mainfrom
joyanedel:feat/improve-error-message-at-missing-pixi-section
Apr 11, 2025
Merged

feat: Improve error message at missing pixi section#3516
Hofer-Julian merged 14 commits intoprefix-dev:mainfrom
joyanedel:feat/improve-error-message-at-missing-pixi-section

Conversation

@joyanedel
Copy link
Copy Markdown
Contributor

@joyanedel joyanedel commented Apr 5, 2025

Problem

Help message displayed by pixi when pixi.toml is missing [project] or pyproject.toml is missing a pixi block is misleading as users in issue #3202 mentioned

Solution

Add a new TomlError to improve error message in this aspect.

pixi.toml

image

pyproject.toml

No explicit manifest-path

It will use the well-formed pixi.toml manifest file from parent directory and, therefore, no display error message
image

Explicit manifest-path

image

@joyanedel joyanedel changed the title Feature: improve error message at missing pixi section feat: Improve error message at missing pixi section Apr 5, 2025
@joyanedel joyanedel marked this pull request as draft April 5, 2025 23:08
@joyanedel joyanedel marked this pull request as ready for review April 7, 2025 03:03
Copy link
Copy Markdown
Contributor

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

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

I love the error message! Just left one comment.

Copy link
Copy Markdown
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

Great improvement, thanks a lot @joyanedel 🎉

@Hofer-Julian Hofer-Julian merged commit 347279a into prefix-dev:main Apr 11, 2025
33 checks passed
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.

3 participants