-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: proper unicode characters in error messages (#30)
Co-authored-by: Adolfo Ochagavía <[email protected]>
- Loading branch information
1 parent
4c04afc
commit 18ae192
Showing
16 changed files
with
323 additions
and
135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/snapshots/solver__merge_installable_non_continuous_range.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: tests/solver.rs | ||
expression: "solve_snapshot(provider, &[\"a 1\", \"a 2..20\"])" | ||
--- | ||
The following packages are incompatible | ||
├─ a >=2, <20 can be installed with any of the following options: | ||
│ └─ a 19 | >=16, <=17 | >=9, <=14 | >=2, <=7 | ||
└─ a >=1, <2 cannot be installed because there are no viable options: | ||
└─ a 1, which conflicts with the versions reported above. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 605 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- b * can be installed with any of the following options: | ||
|-- b 6 | 7 would require | ||
|-- d >=1, <2, which can be installed with any of the following options: | ||
|-- d 1 | ||
|-- c * cannot be installed because there are no viable options: | ||
|-- c 1 | 2 would require | ||
|-- d >=2, <3, which cannot be installed because there are no viable options: | ||
|-- d 2, which conflicts with the versions reported above. | ||
├─ b * can be installed with any of the following options: | ||
│ └─ b 6 | 7 would require | ||
│ └─ d >=1, <2, which can be installed with any of the following options: | ||
│ └─ d 1 | ||
└─ c * cannot be installed because there are no viable options: | ||
└─ c 1 | 2 would require | ||
└─ d >=2, <3, which cannot be installed because there are no viable options: | ||
└─ d 2, which conflicts with the versions reported above. | ||
|
17 changes: 8 additions & 9 deletions
17
tests/snapshots/solver__unsat_applies_graph_compression.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 671 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- a * can be installed with any of the following options: | ||
|-- a 9 | 10 would require | ||
|-- b *, which can be installed with any of the following options: | ||
|-- b 42 | 100 would require | ||
|-- c >=0, <100, which can be installed with any of the following options: | ||
|-- c 99 | ||
|-- c >=101, <104 cannot be installed because there are no viable options: | ||
|-- c 101 | 103, which conflicts with the versions reported above. | ||
├─ a * can be installed with any of the following options: | ||
│ └─ a 9 | 10 would require | ||
│ └─ b *, which can be installed with any of the following options: | ||
│ └─ b 42 | 100 would require | ||
│ └─ c >=0, <100, which can be installed with any of the following options: | ||
│ └─ c 99 | ||
└─ c >=101, <104 cannot be installed because there are no viable options: | ||
└─ c 101 | 103, which conflicts with the versions reported above. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 638 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- bluesky-widgets >=0, <100 can be installed with any of the following options: | ||
|-- bluesky-widgets 42 would require | ||
|-- suitcase-utils >=0, <54, which can be installed with any of the following options: | ||
|-- suitcase-utils 53 | ||
|-- suitcase-utils >=54, <100 cannot be installed because there are no viable options: | ||
|-- suitcase-utils 54, which conflicts with the versions reported above. | ||
├─ bluesky-widgets >=0, <100 can be installed with any of the following options: | ||
│ └─ bluesky-widgets 42 would require | ||
│ └─ suitcase-utils >=0, <54, which can be installed with any of the following options: | ||
│ └─ suitcase-utils 53 | ||
└─ suitcase-utils >=54, <100 cannot be installed because there are no viable options: | ||
└─ suitcase-utils 54, which conflicts with the versions reported above. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 687 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- a * can be installed with any of the following options: | ||
|-- a 9 | 10 would require | ||
|-- b >=50, <100, which can be installed with any of the following options: | ||
|-- b 50 | ||
|-- c * cannot be installed because there are no viable options: | ||
|-- c 8 | 10 would constrain | ||
|-- b >=0, <50 , which conflicts with any installable versions previously reported | ||
├─ a * can be installed with any of the following options: | ||
│ └─ a 9 | 10 would require | ||
│ └─ b >=50, <100, which can be installed with any of the following options: | ||
│ └─ b 50 | ||
└─ c * cannot be installed because there are no viable options: | ||
└─ c 8 | 10 would constrain | ||
└─ b >=0, <50 , which conflicts with any installable versions previously reported | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
tests/snapshots/solver__unsat_incompatible_root_requirements.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 612 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- a >=5, <10 can be installed with any of the following options: | ||
|-- a 5 | ||
|-- a >=0, <4 cannot be installed because there are no viable options: | ||
|-- a 2, which conflicts with the versions reported above. | ||
├─ a >=5, <10 can be installed with any of the following options: | ||
│ └─ a 5 | ||
└─ a >=0, <4 cannot be installed because there are no viable options: | ||
└─ a 2, which conflicts with the versions reported above. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 557 | ||
expression: error | ||
expression: "solve_snapshot(provider, &[\"asdf\"])" | ||
--- | ||
The following packages are incompatible | ||
|-- asdf * can be installed with any of the following options: | ||
|-- asdf 1 would require | ||
|-- c >=2, <3, which can be installed with any of the following options: | ||
|-- c 2 | ||
|-- c 1 is locked, but another version is required as reported above | ||
└─ asdf * can be installed with any of the following options: | ||
└─ asdf 1 would require | ||
└─ c >=2, <3, which can be installed with any of the following options: | ||
└─ c 2 | ||
└─ c 1 is locked, but another version is required as reported above | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 565 | ||
expression: error | ||
--- | ||
asdf * cannot be installed because there are no viable options: | ||
|-- asdf 1 would require | ||
|-- c >=2, <3, for which no candidates were found. | ||
└─ asdf 1 would require | ||
└─ c >=2, <3, for which no candidates were found. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 573 | ||
expression: error | ||
--- | ||
a >=0, <1000 cannot be installed because there are no viable options: | ||
|-- a 41 would require | ||
|-- B >=0, <20, for which no candidates were found. | ||
└─ a 41 would require | ||
└─ B >=0, <20, for which no candidates were found. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
--- | ||
source: tests/solver.rs | ||
assertion_line: 655 | ||
expression: error | ||
--- | ||
The following packages are incompatible | ||
|-- menu * can be installed with any of the following options: | ||
|-- menu 10 would require | ||
|-- dropdown >=1, <2, which can be installed with any of the following options: | ||
|-- dropdown 1 would require | ||
|-- intl >=3, <4, which can be installed with any of the following options: | ||
|-- intl 3 | ||
|-- icons >=1, <2 can be installed with any of the following options: | ||
|-- icons 1 | ||
|-- intl >=5, <6 cannot be installed because there are no viable options: | ||
|-- intl 5, which conflicts with the versions reported above. | ||
├─ menu * can be installed with any of the following options: | ||
│ └─ menu 10 would require | ||
│ └─ dropdown >=1, <2, which can be installed with any of the following options: | ||
│ └─ dropdown 1 would require | ||
│ └─ intl >=3, <4, which can be installed with any of the following options: | ||
│ └─ intl 3 | ||
├─ icons >=1, <2 can be installed with any of the following options: | ||
│ └─ icons 1 | ||
└─ intl >=5, <6 cannot be installed because there are no viable options: | ||
└─ intl 5, which conflicts with the versions reported above. | ||
|