-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
MatchError when do mill.idea.GenIdea/idea
#3168
Comments
I can't reproduce:
I also can't make any sense of your other comments. Maybe, you have some local changes? Can you elaborate? |
Thanks for look in,There is a pr in the cask repo, you can check it out. And I'm using windows 11. |
Please provide the link to the PR. I see two.
|
@lefou com-lihaoyi/cask#125 |
I still can't reproduce on my Linux machine. But the stacktrace/error message you've shown doesn't make sense to me, since it points me to mill/idea/src/mill/idea/GenIdeaImpl.scala Line 538 in 18d1444
Vector of PathRef .
Does running with |
hang@vm:~/work/lx00lib/mill$ mill mill.idea.GenIdea/idea I also encountered this issue on the Ubuntu system running on my virtual machine, which cannot be resolved |
hang@vm:~/work/lx00lib/rocket-chip$ make verilog at the same time my mill's Cross cant work |
@Amagicman Your last comment looks totally unrelated. Please make sure your |
@lefou the twril part is commented out, you need turn it on to reproduce that issue. |
Still not reproducible.
diff --git a/.mill-version b/.mill-version
index 2b96086..429ca70 100644
--- a/.mill-version
+++ b/.mill-version
@@ -1 +1 @@
- 0.11.7-107-9ec9bc
+0.11.7-107-9ec9bc
diff --git a/build.sc b/build.sc
index 397e947..c7daf5b 100644
--- a/build.sc
+++ b/build.sc
@@ -168,7 +168,7 @@ object example extends Module{
object todoDb extends Cross[TodoDbModule](scala213) // uses quill, can't enable for Dotty yet
trait TwirlModule extends millbuild.example.twirl.build.AppModule with LocalModule
-// object twirl extends Cross[TwirlModule](scalaVersions)
+ object twirl extends Cross[TwirlModule](scalaVersions)
trait VariableRoutesModule extends millbuild.example.variableRoutes.build.AppModule with LocalModule
object variableRoutes extends Cross[VariableRoutesModule](scalaVersions)
|
@lefou run with |
I see an rather old |
[1/1] mill.idea.GenIdea.idea > [10/14] example.twirl[2.12.19].compileTwirl
1 targets failed
mill.idea.GenIdea.idea scala.MatchError: Vector(Vector(ref:v0:c984eca8:C:\Users\hepin\IdeaProjects\cask\example\twirl\app\resources)) (of class scala.collection.immutable.Vector1)
mill.idea.GenIdeaImpl.$anonfun$xmlFileLayout$101(GenIdeaImpl.scala:516)
scala.collection.immutable.List.flatMap(List.scala:294)
scala.collection.immutable.List.flatMap(List.scala:79)
mill.idea.GenIdeaImpl.xmlFileLayout(GenIdeaImpl.scala:489)
mill.idea.GenIdeaImpl.run(GenIdeaImpl.scala:37)
I tested it with the latest version 0.11.8, same error. |
@lefou I tried with WSL too, same problem. |
With mill 0.11.12 mill.idea.GenIdea.idea scala.MatchError: Vector(Vector(ref:v0:c984eca8:C:\Users\hepin\IdeaProjects\cask\example\twirl\app\resources)) (of class scala.collection.immutable.Vector1)
mill.idea.GenIdeaImpl.$anonfun$xmlFileLayout$97(GenIdeaImpl.scala:510)
scala.collection.immutable.List.flatMap(List.scala:294)
scala.collection.immutable.List.flatMap(List.scala:79)
mill.idea.GenIdeaImpl.xmlFileLayout(GenIdeaImpl.scala:483)
mill.idea.GenIdeaImpl.run(GenIdeaImpl.scala:39)
hepin@LAPTOP-057IVKOG:/mnt/c/Users/hepin/IdeaProjects/cask$ |
I think I now have an idea what's happening. The code at the stack trace location assumes the result of |
Instead, a |
@He-Pin I have a fix ready. But I wonder why you didn't see the issue when building the project from cli? |
…kport com-lihaoyi#3754) We simply don't swallow the error but propagate it. Fix com-lihaoyi#3168 Backport of pull request: com-lihaoyi#3754
Error when call
mill mill.idea.GenIdea/idea
oncask
.Mill version: the latest snapshot: 0.11.7-86-18d144
./mill mill.scalalib.GenIdea/idea
works too, but IDEA can recognize it.The text was updated successfully, but these errors were encountered: