Skip to content
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

Merge Small_Integer and Big_Integer types #7636

Merged
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@
- [Use `numpy` & co. from Enso!][7678]
- [Changed layout of local libraries directory, making it easier to reference
projects next to each other][7634]
- [Merge `Small_Integer` and `Big_Integer` types][7636]

[3227]: https://github.com/enso-org/enso/pull/3227
[3248]: https://github.com/enso-org/enso/pull/3248
Expand Down Expand Up @@ -1076,6 +1077,7 @@
[7613]: https://github.com/enso-org/enso/pull/7613
[7678]: https://github.com/enso-org/enso/pull/7678
[7634]: https://github.com/enso-org/enso/pull/7634
[7636]: https://github.com/enso-org/enso/pull/7636

# Enso 2.0.0-alpha.18 (2021-10-12)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4985,7 +4985,7 @@
)
)
)
context.receiveN(3) should contain theSameElementsAs Seq(

Check failure on line 4988 in engine/runtime-with-instruments/src/test/scala/org/enso/interpreter/test/instrument/RuntimeServerTest.scala

View workflow job for this annotation

GitHub Actions / Engine Tests (linux)

org.enso.interpreter.test.instrument.RuntimeServerTest ► RuntimeServer should return error with a stack trace

Failed test found in: /runner/_work/enso/enso/target/test-results/TEST-org.enso.interpreter.test.instrument.RuntimeServerTest.xml Error: org.scalatest.exceptions.TestFailedException: List(Response(Some(05ab4158-6e64-4151-a1a3-296064bfe32a), PushContextResponse(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, ExecutionComplete(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(05ab4158-6e64-4151-a1a3-296064bfe32a), PushContextResponse(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, ExecutionFailed(92c5f2dd-f12e-465d-871c-f3bf353ea36d, Diagnostic(Error, Some("Type_Error.Error"), Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None, Vector(StackTraceElement("Main.baz", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None), StackTraceElement("Main.bar", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(7, 8), Position(7, 11))), None), StackTraceElement("Main.foo", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(4, 8), Position(4, 11))), None), StackTraceElement("Main.main", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(1, 4), Position(1, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
Raw output
      org.scalatest.exceptions.TestFailedException: List(Response(Some(05ab4158-6e64-4151-a1a3-296064bfe32a), PushContextResponse(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, ExecutionComplete(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(05ab4158-6e64-4151-a1a3-296064bfe32a), PushContextResponse(92c5f2dd-f12e-465d-871c-f3bf353ea36d)), Response(None, ExecutionFailed(92c5f2dd-f12e-465d-871c-f3bf353ea36d, Diagnostic(Error, Some("Type_Error.Error"), Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None, Vector(StackTraceElement("Main.baz", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None), StackTraceElement("Main.bar", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(7, 8), Position(7, 11))), None), StackTraceElement("Main.foo", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(4, 8), Position(4, 11))), None), StackTraceElement("Main.main", Some(/tmp/enso-test-packages13821351917506341412/src/Main.enso), Some(Range(Position(1, 4), Position(1, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
      at org.scalatest.matchers.MatchersHelper$.indicateFailure(MatchersHelper.scala:392)
      at org.scalatest.matchers.dsl.ResultOfContainWord.theSameElementsAs(ResultOfContainWord.scala:205)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.$anonfun$new$55(RuntimeServerTest.scala:4988)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.org$scalatest$BeforeAndAfterEach$$super$runTest(RuntimeServerTest.scala:25)
      at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
      at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.runTest(RuntimeServerTest.scala:25)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1686)
      at org.scalatest.Suite.run(Suite.scala:1114)
      at org.scalatest.Suite.run$(Suite.scala:1096)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1686)
      at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
      at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
      at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:833)

Check failure on line 4988 in engine/runtime-with-instruments/src/test/scala/org/enso/interpreter/test/instrument/RuntimeServerTest.scala

View workflow job for this annotation

GitHub Actions / Engine Tests (windows)

org.enso.interpreter.test.instrument.RuntimeServerTest ► RuntimeServer should return error with a stack trace

Failed test found in: C:/runner/_work/enso/enso/target/test-results/TEST-org.enso.interpreter.test.instrument.RuntimeServerTest.xml Error: org.scalatest.exceptions.TestFailedException: List(Response(Some(95ec5a9b-a742-423b-bcb5-15d23086bf21), PushContextResponse(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, ExecutionComplete(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(95ec5a9b-a742-423b-bcb5-15d23086bf21), PushContextResponse(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, ExecutionFailed(6698fe87-3d8e-4866-bff1-6b7955be09e4, Diagnostic(Error, Some("Type_Error.Error"), Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None, Vector(StackTraceElement("Main.baz", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None), StackTraceElement("Main.bar", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(7, 8), Position(7, 11))), None), StackTraceElement("Main.foo", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(4, 8), Position(4, 11))), None), StackTraceElement("Main.main", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(1, 4), Position(1, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
Raw output
      org.scalatest.exceptions.TestFailedException: List(Response(Some(95ec5a9b-a742-423b-bcb5-15d23086bf21), PushContextResponse(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, ExecutionComplete(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(95ec5a9b-a742-423b-bcb5-15d23086bf21), PushContextResponse(6698fe87-3d8e-4866-bff1-6b7955be09e4)), Response(None, ExecutionFailed(6698fe87-3d8e-4866-bff1-6b7955be09e4, Diagnostic(Error, Some("Type_Error.Error"), Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None, Vector(StackTraceElement("Main.baz", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(10, 8), Position(10, 17))), None), StackTraceElement("Main.bar", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(7, 8), Position(7, 11))), None), StackTraceElement("Main.foo", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(4, 8), Position(4, 11))), None), StackTraceElement("Main.main", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4050458406864133555\src\Main.enso), Some(Range(Position(1, 4), Position(1, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
      at org.scalatest.matchers.MatchersHelper$.indicateFailure(MatchersHelper.scala:392)
      at org.scalatest.matchers.dsl.ResultOfContainWord.theSameElementsAs(ResultOfContainWord.scala:205)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.$anonfun$new$55(RuntimeServerTest.scala:4988)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.org$scalatest$BeforeAndAfterEach$$super$runTest(RuntimeServerTest.scala:25)
      at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
      at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.runTest(RuntimeServerTest.scala:25)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1686)
      at org.scalatest.Suite.run(Suite.scala:1114)
      at org.scalatest.Suite.run$(Suite.scala:1096)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1686)
      at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
      at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
      at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:833)
Api.Response(requestId, Api.PushContextResponse(contextId)),
Api.Response(
Api.ExecutionFailed(
Expand Down Expand Up @@ -5086,13 +5086,13 @@
)
)
)
context.receiveNIgnoreStdLib(3) should contain theSameElementsAs Seq(

Check failure on line 5089 in engine/runtime-with-instruments/src/test/scala/org/enso/interpreter/test/instrument/RuntimeServerTest.scala

View workflow job for this annotation

GitHub Actions / Engine Tests (linux)

org.enso.interpreter.test.instrument.RuntimeServerTest ► RuntimeServer should return error with a stack trace (pretty print)

Failed test found in: /runner/_work/enso/enso/target/test-results/TEST-org.enso.interpreter.test.instrument.RuntimeServerTest.xml Error: org.scalatest.exceptions.TestFailedException: List(Response(Some(808fcc3f-4a8a-4de2-9505-7aeb80ef1ba6), PushContextResponse(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, ExecutionComplete(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(808fcc3f-4a8a-4de2-9505-7aeb80ef1ba6), PushContextResponse(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, ExecutionFailed(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79, Diagnostic(Error, Some("Type error: expected `that` to be Integer, but got Function."), Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None, Vector(StackTraceElement("Main.baz", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None), StackTraceElement("Main.bar", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(8, 8), Position(8, 11))), None), StackTraceElement("Main.foo", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(5, 8), Position(5, 11))), None), StackTraceElement("Main.main", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(2, 4), Position(2, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
Raw output
      org.scalatest.exceptions.TestFailedException: List(Response(Some(808fcc3f-4a8a-4de2-9505-7aeb80ef1ba6), PushContextResponse(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, ExecutionComplete(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(808fcc3f-4a8a-4de2-9505-7aeb80ef1ba6), PushContextResponse(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79)), Response(None, ExecutionFailed(c2ff6b84-e3a6-4cdb-afa8-36f0966ffc79, Diagnostic(Error, Some("Type error: expected `that` to be Integer, but got Function."), Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None, Vector(StackTraceElement("Main.baz", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None), StackTraceElement("Main.bar", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(8, 8), Position(8, 11))), None), StackTraceElement("Main.foo", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(5, 8), Position(5, 11))), None), StackTraceElement("Main.main", Some(/tmp/enso-test-packages6888334704753002686/src/Main.enso), Some(Range(Position(2, 4), Position(2, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
      at org.scalatest.matchers.MatchersHelper$.indicateFailure(MatchersHelper.scala:392)
      at org.scalatest.matchers.dsl.ResultOfContainWord.theSameElementsAs(ResultOfContainWord.scala:205)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.$anonfun$new$56(RuntimeServerTest.scala:5089)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.org$scalatest$BeforeAndAfterEach$$super$runTest(RuntimeServerTest.scala:25)
      at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
      at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.runTest(RuntimeServerTest.scala:25)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1686)
      at org.scalatest.Suite.run(Suite.scala:1114)
      at org.scalatest.Suite.run$(Suite.scala:1096)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1686)
      at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
      at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
      at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:833)

Check failure on line 5089 in engine/runtime-with-instruments/src/test/scala/org/enso/interpreter/test/instrument/RuntimeServerTest.scala

View workflow job for this annotation

GitHub Actions / Engine Tests (windows)

org.enso.interpreter.test.instrument.RuntimeServerTest ► RuntimeServer should return error with a stack trace (pretty print)

Failed test found in: C:/runner/_work/enso/enso/target/test-results/TEST-org.enso.interpreter.test.instrument.RuntimeServerTest.xml Error: org.scalatest.exceptions.TestFailedException: List(Response(Some(75d168b7-93fa-4f91-869c-187444d7bb66), PushContextResponse(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, ExecutionComplete(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(75d168b7-93fa-4f91-869c-187444d7bb66), PushContextResponse(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, ExecutionFailed(71be0b21-6b5a-4d50-b39c-90f81ccbb317, Diagnostic(Error, Some("Type error: expected `that` to be Integer, but got Function."), Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None, Vector(StackTraceElement("Main.baz", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None), StackTraceElement("Main.bar", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(8, 8), Position(8, 11))), None), StackTraceElement("Main.foo", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(5, 8), Position(5, 11))), None), StackTraceElement("Main.main", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(2, 4), Position(2, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
Raw output
      org.scalatest.exceptions.TestFailedException: List(Response(Some(75d168b7-93fa-4f91-869c-187444d7bb66), PushContextResponse(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, ExecutionComplete(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, BackgroundJobsStartedNotification())) did not contain the same elements as List(Response(Some(75d168b7-93fa-4f91-869c-187444d7bb66), PushContextResponse(71be0b21-6b5a-4d50-b39c-90f81ccbb317)), Response(None, ExecutionFailed(71be0b21-6b5a-4d50-b39c-90f81ccbb317, Diagnostic(Error, Some("Type error: expected `that` to be Integer, but got Function."), Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None, Vector(StackTraceElement("Main.baz", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(11, 8), Position(11, 17))), None), StackTraceElement("Main.bar", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(8, 8), Position(8, 11))), None), StackTraceElement("Main.foo", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(5, 8), Position(5, 11))), None), StackTraceElement("Main.main", Some(C:\Users\ContainerAdministrator\AppData\Local\Temp\enso-test-packages4304725490877418538\src\Main.enso), Some(Range(Position(2, 4), Position(2, 7))), None))))), Response(None, BackgroundJobsStartedNotification()))
      at org.scalatest.matchers.MatchersHelper$.indicateFailure(MatchersHelper.scala:392)
      at org.scalatest.matchers.dsl.ResultOfContainWord.theSameElementsAs(ResultOfContainWord.scala:205)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.$anonfun$new$56(RuntimeServerTest.scala:5089)
      at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
      at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
      at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
      at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.org$scalatest$BeforeAndAfterEach$$super$runTest(RuntimeServerTest.scala:25)
      at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
      at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
      at org.enso.interpreter.test.instrument.RuntimeServerTest.runTest(RuntimeServerTest.scala:25)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
      at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
      at scala.collection.immutable.List.foreach(List.scala:333)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
      at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
      at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1686)
      at org.scalatest.Suite.run(Suite.scala:1114)
      at org.scalatest.Suite.run$(Suite.scala:1096)
      at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1686)
      at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
      at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
      at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
      at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1686)
      at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
      at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
      at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:833)
Api.Response(requestId, Api.PushContextResponse(contextId)),
Api.Response(
Api.ExecutionFailed(
contextId,
Api.ExecutionResult.Diagnostic.error(
"Type error: expected `that` to be Number, but got Function.",
"Type error: expected `that` to be Integer, but got Function.",
Some(mainFile),
Some(model.Range(model.Position(11, 8), model.Position(11, 17))),
None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,15 @@ class RuntimeVisualizationsTest
Api.ExpressionUpdate(
Main.idMainZ,
Some(ConstantsGen.INTEGER),
None,
Some(
Api.MethodCall(
Api.MethodPointer(
"Standard.Base.Data.Numbers",
"Standard.Base.Data.Numbers.Integer",
"+"
)
)
),
Vector(Api.ProfilingInfo.ExecutionTime(0)),
fromCache,
typeChanged,
Expand All @@ -209,7 +217,15 @@ class RuntimeVisualizationsTest
Api.ExpressionUpdate(
Main.idFooY,
Some(ConstantsGen.INTEGER),
None,
Some(
Api.MethodCall(
Api.MethodPointer(
"Standard.Base.Data.Numbers",
"Standard.Base.Data.Numbers.Integer",
"+"
)
)
),
Vector(Api.ProfilingInfo.ExecutionTime(0)),
fromCache,
typeChanged,
Expand All @@ -231,7 +247,15 @@ class RuntimeVisualizationsTest
Api.ExpressionUpdate(
Main.idFooZ,
Some(ConstantsGen.INTEGER),
None,
Some(
Api.MethodCall(
Api.MethodPointer(
"Standard.Base.Data.Numbers",
"Standard.Base.Data.Numbers.Integer",
"*"
)
)
),
Vector(Api.ProfilingInfo.ExecutionTime(0)),
fromCache,
typeChanged,
Expand Down Expand Up @@ -973,12 +997,30 @@ class RuntimeVisualizationsTest
contextId,
context.Main.idFooY,
ConstantsGen.INTEGER,
methodCall = Some(
Api.MethodCall(
Api.MethodPointer(
"Standard.Base.Data.Numbers",
"Standard.Base.Data.Numbers.Integer",
"+"
)
)
),
typeChanged = false
),
TestMessages.update(
contextId,
context.Main.idFooZ,
ConstantsGen.INTEGER,
methodCall = Some(
Api.MethodCall(
Api.MethodPointer(
"Standard.Base.Data.Numbers",
"Standard.Base.Data.Numbers.Integer",
"*"
)
)
),
typeChanged = false
),
context.executionComplete(contextId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ boolean doAnyType(Object expectedType, Object payload) {
@Specialization
boolean doLongCheck(Type expectedType, long payload) {
var numbers = EnsoContext.get(this).getBuiltins().number();
return checkParentTypes(numbers.getSmallInteger(), expectedType);
return checkParentTypes(numbers.getInteger(), expectedType);
}

@Specialization
Expand All @@ -97,7 +97,7 @@ boolean doDoubleCheck(Type expectedType, double payload) {
@Specialization
boolean doBigIntegerCheck(Type expectedType, EnsoBigInteger value) {
var numbers = EnsoContext.get(this).getBuiltins().number();
return checkParentTypes(numbers.getBigInteger(), expectedType);
return checkParentTypes(numbers.getInteger(), expectedType);
}

@Specialization
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading