Skip to content

Commit

Permalink
merge: Do not explicitly set encoding in build (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jun 19, 2024
2 parents c18e5df + 8bc6de4 commit 3482274
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 69 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ subprojects {
modularity.inferModulePath.set(true)

options.apply {
encoding = "UTF-8"
isDeprecation = true
release.set(javaVersion)
compilerArgs.addAll(listOf("-Xlint:unchecked", "--enable-preview"))
Expand Down Expand Up @@ -126,7 +125,6 @@ subprojects {
options.addBooleanOption("-enable-preview", true)
options.addStringOption("-source", javaVersion.toString())
options.addStringOption("Xdoclint:none", "-quiet")
options.encoding("UTF-8")
options.tags(
"apiNote:a:API Note:",
"implSpec:a:Implementation Requirements:",
Expand Down
4 changes: 2 additions & 2 deletions cli-impl/src/main/java/org/aya/cli/single/CompilerFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public record Message(
@NotNull String successNotion,
@NotNull String failNotion
) {
public static final Message EMOJI = new Message("\uD83D\uDC02\uD83C\uDF7A", "\uD83D\uDD28");
public static final Message ASCII = new Message("That looks right!", "What are you doing?");
public static final Message EMOJI = new Message("🎉", "🥲");
public static final Message ASCII = new Message("That looks right!", "Let's learn from that.");
}
}
22 changes: 11 additions & 11 deletions cli-impl/src/test/resources/negative/ExprTyckError.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Error: Cannot check the expression
Nat

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

IllTypedApp:
In file $FILE:2:22 ->
Expand All @@ -36,7 +36,7 @@ In file $FILE:2:4 ->
Error: Unsolved meta _

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

WantButNo:
In file $FILE:2:19 ->
Expand All @@ -51,7 +51,7 @@ Error: Unable to accept the expression
Type 0

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

CringeReturnType:
In file $FILE:2:11 ->
Expand Down Expand Up @@ -80,7 +80,7 @@ Error: Cannot check the expression
(Normalized: \ p0 ⇒ p0)

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

BadInterval:
In file $FILE:2:16 ->
Expand All @@ -93,7 +93,7 @@ Error: The point `2` does not live in interval
note: Did you mean: `0` or `1`

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

BadPrim:
In file $FILE:1:0 ->
Expand All @@ -116,7 +116,7 @@ Error: The prim declaration
Type 0

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

PrimNoResult:
In file $FILE:2:5 ->
Expand All @@ -136,7 +136,7 @@ In file $FILE:2:5 ->
Error: `prim Path` is expected to have a return type

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

PiDom:
In file $FILE:2:28 ->
Expand All @@ -151,7 +151,7 @@ Error: The type
Type 0

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

PiDomMeta:
In file $FILE:4:19 ->
Expand Down Expand Up @@ -181,7 +181,7 @@ Error: The meta (denoted ? below) is supposed to satisfy:
X

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

ConReturn:
In file $FILE:2:14 ->
Expand All @@ -198,7 +198,7 @@ Error: Cannot make sense of the return type of the constructor
X

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

NoRule:
In file $FILE:1:9 ->
Expand All @@ -216,5 +216,5 @@ In file $FILE:1:4 ->
Error: Unsolved meta _

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

12 changes: 6 additions & 6 deletions cli-impl/src/test/resources/negative/GoalAndMeta.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In file $FILE:2:18 ->
Error: Unsolved meta _

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Goal:
In file $FILE:2:28 ->
Expand All @@ -32,7 +32,7 @@ In file $FILE:2:28 ->
Error: Unsolved meta _

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

UnsolvedMetaLit:
In file $FILE:5:17 ->
Expand Down Expand Up @@ -92,7 +92,7 @@ Error: Unable to solve the type of this literal:
`Nat`, `Nat2`

5 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Daylily:
In file $FILE:5:12 ->
Expand Down Expand Up @@ -163,7 +163,7 @@ Error: Unsolved meta _
in `^0 (?_ ^0) → ^1 (Neg <X>)`

4 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

ScopeCheck:
In file $FILE:5:14 ->
Expand Down Expand Up @@ -198,7 +198,7 @@ In file $FILE:5:14 ->
Error: Unsolved meta _

3 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

LiteralAmbiguous3:
In file $FILE:6:11 ->
Expand All @@ -214,7 +214,7 @@ Error: Unable to solve the type of this literal:
`List`, `List2`

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

NonPattern:
In file $FILE:9:3 ->
Expand Down
10 changes: 5 additions & 5 deletions cli-impl/src/test/resources/negative/OperatorError.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Error: Ambiguous operator precedence detected between `==` and `+`
note: Use `tighter/looser` clause or insert parentheses to make it clear.

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Cyclic:
In file $FILE:3:28 ->
Expand All @@ -24,7 +24,7 @@ Error: Circular precedence found between b, c, d

Resolving interrupted due to:
1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Issue677:
In file $FILE:3:27 ->
Expand All @@ -46,7 +46,7 @@ In file $FILE:3:4 ->
Error: Unsolved meta _

2 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

NoAssoc:
In file $FILE:9:21 ->
Expand All @@ -61,7 +61,7 @@ Error: Cannot figure out computation order because `=` (Infix) and `=` (Infix)
note: Make them both left/right-associative to resolve this problem.

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

SelfBind:
In file $FILE:2:9 ->
Expand All @@ -74,7 +74,7 @@ Error: Self bind is not allowed

Resolving interrupted due to:
1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

ModuleImportRename:
That looks right!
Expand Down
4 changes: 2 additions & 2 deletions cli-impl/src/test/resources/negative/ParseError.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ In file $FILE:1:0 ->
Error: Expect a name

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Modifier:
In file $FILE:1:0 ->
Expand All @@ -18,7 +18,7 @@ In file $FILE:1:0 ->
Error: The modifier overlap is not suitable here.

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

IgnoredModifier:
In file $FILE:1:0 ->
Expand Down
20 changes: 10 additions & 10 deletions cli-impl/src/test/resources/negative/PatCohError.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Error: I'm unsure if there should be a case for constructor
Fin+1 m

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Confl:
In file $FILE:2:12 ->
Expand All @@ -34,7 +34,7 @@ Error: The 2nd and the 1st clauses are not confluent because we failed to unify
suc zero

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

ConflLiteral:
In file $FILE:2:12 ->
Expand Down Expand Up @@ -225,7 +225,7 @@ Warning: The 2nd clause dominates the 6th clause. The 6th clause will be
unreachable

6 error(s), 7 warning(s).
What are you doing?
Let's learn from that.

ConflLiteral2:
In file $FILE:2:12 ->
Expand Down Expand Up @@ -529,7 +529,7 @@ Warning: The 5th clause dominates the 4th clause. The 4th clause will be
unreachable

11 error(s), 12 warning(s).
What are you doing?
Let's learn from that.

FirstMatchDomination:
In file $FILE:6:2 ->
Expand Down Expand Up @@ -619,7 +619,7 @@ Warning: The 5th clause dominates the 4th clause. The 4th clause will be
unreachable

2 error(s), 4 warning(s).
What are you doing?
Let's learn from that.

NestedMissing:
In file $FILE:2:0 ->
Expand Down Expand Up @@ -651,7 +651,7 @@ In file $FILE:7:2 ->
Warning: The 5th clause is dominated by the other clauses, hence unreachable

1 error(s), 1 warning(s).
What are you doing?
Let's learn from that.

IApplyConfluence:
In file $FILE:4:4 ->
Expand All @@ -675,7 +675,7 @@ Error: The 3rd clause matches on a path constructor. We failed to unify
signed false 0

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Coverage:
In file $FILE:2:0 ->
Expand All @@ -694,7 +694,7 @@ Error: Unhandled case:
suc _, suc _, suc _, x'''

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

CoverageLiteral:
In file $FILE:2:0 ->
Expand All @@ -713,7 +713,7 @@ Error: Unhandled case:
1, 1, 1, x'''

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

IApplyConflReduce:
In file $FILE:8:4 ->
Expand All @@ -739,5 +739,5 @@ Error: The 4th clause matches on a path constructor. We failed to unify
pos n

1 error(s), 0 warning(s).
What are you doing?
Let's learn from that.

Loading

0 comments on commit 3482274

Please sign in to comment.