You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2023/09/06 00:20:28 UTC

[GitHub] [incubator-pekko] pjfanning opened a new pull request, #632: scala 3.3.1

pjfanning opened a new pull request, #632:
URL: https://github.com/apache/incubator-pekko/pull/632

   * an experiment
   * not sure if we need to merge this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#issuecomment-1707492133

   Result of 3.3.1 con be consumed by 3.3.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on code in PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#discussion_r1317178665


##########
multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala:
##########
@@ -215,8 +215,9 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
     case Event(msg: NetworkOp, _) =>
       log.error("received {} instead of Done", msg)
       goto(Failed)
-    case Event(_: ServerOp, _) =>
-      stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
+    // Scala 3.3.1 compiler says this is unreachable
+    // case Event(_: ServerOp, _) =>
+    //  stay().replying(Status.Failure(new IllegalStateException("not connected yet")))

Review Comment:
   Do a swap
   ```scala
       case Event(msg: ServerOp, _) =>
         log.error("received {} instead of Done", msg)
         goto(Failed)
       case Event(_: NetworkOp, _) =>
         stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin merged pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on code in PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#discussion_r1317175149


##########
multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala:
##########
@@ -215,8 +215,9 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
     case Event(msg: NetworkOp, _) =>
       log.error("received {} instead of Done", msg)
       goto(Failed)
-    case Event(_: ServerOp, _) =>
-      stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
+    // Scala 3.3.1 compiler says this is unreachable
+    // case Event(_: ServerOp, _) =>
+    //  stay().replying(Status.Failure(new IllegalStateException("not connected yet")))

Review Comment:
   I think this line can be removed, the compiler is right.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on code in PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#discussion_r1317178665


##########
multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala:
##########
@@ -215,8 +215,9 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
     case Event(msg: NetworkOp, _) =>
       log.error("received {} instead of Done", msg)
       goto(Failed)
-    case Event(_: ServerOp, _) =>
-      stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
+    // Scala 3.3.1 compiler says this is unreachable
+    // case Event(_: ServerOp, _) =>
+    //  stay().replying(Status.Failure(new IllegalStateException("not connected yet")))

Review Comment:
   Do a swap
   ```scala
       case Event(msg: ServerOp, _) =>
         log.error("received {} instead of Done", msg)
         goto(Failed)
       case Event(_: NetworkOp, _) =>
         stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
   ```
   Done in a separated pr: https://github.com/apache/incubator-pekko/pull/635



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin closed pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin closed pull request #632: scala 3.3.1
URL: https://github.com/apache/incubator-pekko/pull/632


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on code in PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#discussion_r1316668767


##########
multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala:
##########
@@ -215,8 +215,9 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
     case Event(msg: NetworkOp, _) =>
       log.error("received {} instead of Done", msg)
       goto(Failed)
-    case Event(_: ServerOp, _) =>
-      stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
+    // Scala 3.3.1 compiler says this is unreachable
+    // case Event(_: ServerOp, _) =>
+    //  stay().replying(Status.Failure(new IllegalStateException("not connected yet")))

Review Comment:
   I checked it and I think the compiler is right, reported it at https://github.com/lampepfl/dotty/issues/18519 too



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#issuecomment-1708717384

   Why github close this...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin closed pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin closed pull request #632: scala 3.3.1
URL: https://github.com/apache/incubator-pekko/pull/632


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #632: scala 3.3.1

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on code in PR #632:
URL: https://github.com/apache/incubator-pekko/pull/632#discussion_r1317178665


##########
multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala:
##########
@@ -215,8 +215,9 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
     case Event(msg: NetworkOp, _) =>
       log.error("received {} instead of Done", msg)
       goto(Failed)
-    case Event(_: ServerOp, _) =>
-      stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
+    // Scala 3.3.1 compiler says this is unreachable
+    // case Event(_: ServerOp, _) =>
+    //  stay().replying(Status.Failure(new IllegalStateException("not connected yet")))

Review Comment:
   Do a swap
   ```scala
       case Event(msg: ServerOp, _) =>
         log.error("received {} instead of Done", msg)
         goto(Failed)
       case Event(_: NetworkOp, _) =>
         stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
   ```
   Done in a separated pr: https://github.com/apache/incubator-pekko/pull/635



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org