You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/unit/src/test/scala/tests/imports/FileSuite.scala
+8-7
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package tests.imports
3
3
importtests.markdown.BaseMarkdownSuite
4
4
importtests.cli.BaseCliSuite
5
5
importscala.meta.io.RelativePath
6
+
importjava.io.File
6
7
7
8
classFileSuiteextendsBaseCliSuite {
8
9
@@ -126,10 +127,10 @@ class FileSuite extends BaseCliSuite {
126
127
assertNoDiff(
127
128
stdout,
128
129
"""|info: Compiling 3 files to <output>
129
-
|error: <input>/readme.md:2:14: illegal cyclic dependency. To fix this problem, refactor the code so that no transitive $file imports end up depending on the original file.
130
-
| -- root --> <input>/readme.md:1
131
-
| -- depends on --> <input>/hello1.sc:0
132
-
| -- depends on --> <input>/hello2.sc:0
130
+
|error: readme.md:2:14: illegal cyclic dependency. To fix this problem, refactor the code so that no transitive $file imports end up depending on the original file.
131
+
| -- root --> readme.md:1
132
+
| -- depends on --> hello1.sc:0
133
+
| -- depends on --> hello2.sc:0
133
134
| -- cycle --> <input>/hello1.sc
134
135
|import $file.hello1
135
136
| ^^^^^^
@@ -170,7 +171,7 @@ class FileSuite extends BaseCliSuite {
170
171
| required: Int
171
172
|val number: Int = ""
172
173
| ^^
173
-
|error: <input>/readme.md:3:22: type mismatch;
174
+
|error: readme.md:3:22: type mismatch;
174
175
| found : String("")
175
176
| required: Int
176
177
|val something: Int = ""
@@ -262,7 +263,7 @@ class FileSuite extends BaseCliSuite {
262
263
assertNoDiff(
263
264
stdout,
264
265
"""|info: Compiling 2 files to <output>
265
-
|error: <input>/readme.md:2:16: unimports are not supported for $file imports. To fix this problem, remove the unimported symbol.
266
+
|error: readme.md:2:16: unimports are not supported for $file imports. To fix this problem, remove the unimported symbol.
266
267
|import $file.{ hello0 => _ }
267
268
| ^^^^^^^^^^^
268
269
|""".stripMargin
@@ -288,7 +289,7 @@ class FileSuite extends BaseCliSuite {
288
289
assertNoDiff(
289
290
stdout,
290
291
"""|info: Compiling 2 files to <output>
291
-
|error: <input>/readme.md:2:14: wildcards are not supported for $file imports. To fix this problem, explicitly import files using the `import $file.FILENAME` syntax.
292
+
|error: readme.md:2:14: wildcards are not supported for $file imports. To fix this problem, explicitly import files using the `import $file.FILENAME` syntax.
0 commit comments