-
Notifications
You must be signed in to change notification settings - Fork 46
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
Unable to select custom launcher with the new CLI #2554
Comments
Can you run it in verbose mode? |
Sure, 16:02:52.025 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Visiting: {} searching for Constant
LOGBACK: No context given for ch.qos.logback.core.ConsoleAppender[null]
16:02:52.039 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over incarnation
16:02:52.039 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over protelis
16:02:52.039 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over launcher
16:02:52.040 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over type
16:02:52.040 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over AlchemistServer
16:02:52.040 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- New model: {incarnation=protelis, launcher={type=AlchemistServer}}
16:02:52.040 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- 0 constants: {}
16:02:52.040 [main] INFO it.unibo.alchemist.boundary.loader.SimulationModel -- 0 constants: {}
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Visiting: null searching for DependentVariable
16:02:52.041 [main] INFO it.unibo.alchemist.boundary.loader.SimulationModel -- Dependent variables: {}
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over incarnation
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over protelis
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over launcher
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over type
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over AlchemistServer
16:02:52.041 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- New model: {incarnation=protelis, launcher={type=AlchemistServer}}
16:02:52.042 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Visiting: null searching for Variable
16:02:52.042 [main] INFO it.unibo.alchemist.boundary.loader.SimulationModel -- Variables: {}
16:02:52.307 [main] DEBUG it.unibo.alchemist.boundary.loader.util.JVMConstructor -- Building a HeadlessSimulationLauncher with []
16:02:52.373 [main] INFO it.unibo.alchemist.boundary.loader.util.JVMConstructor -- Constructor HeadlessSimulationLauncher(int, List) failed for the following reasons:
16:02:52.373 [main] INFO it.unibo.alchemist.boundary.loader.util.JVMConstructor -- - InstancingImpossibleException: Could not create an instance with public it.unibo.alchemist.boundary.launch.HeadlessSimulationLauncher(int,java.util.List): discarded because incompatible with provided parameters []
16:02:52.374 [main] INFO it.unibo.alchemist.boundary.loader.util.JVMConstructor -- Constructor HeadlessSimulationLauncher(int, List, int, DefaultConstructorMarker) failed for the following reasons:
16:02:52.374 [main] INFO it.unibo.alchemist.boundary.loader.util.JVMConstructor -- - InstancingImpossibleException: Could not create an instance with public it.unibo.alchemist.boundary.launch.HeadlessSimulationLauncher(int,java.util.List,int,kotlin.jvm.internal.DefaultConstructorMarker): discarded because incompatible with provided parameters []
16:02:52.379 [main] DEBUG it.unibo.alchemist.boundary.loader.util.JVMConstructor -- Building a AlchemistServer with []
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over incarnation
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over protelis
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over launcher
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over type
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over AlchemistServer
16:02:52.416 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- New model: {incarnation=protelis, launcher={type=AlchemistServer}}
16:02:52.417 [main] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Trying to build a String from {} (syntax: null)
16:02:52.417 [main] INFO it.unibo.alchemist.boundary.loader.SimulationModel -- Remote dependencies: []
16:02:52.427 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Known values: {}
16:02:52.427 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over incarnation
16:02:52.427 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over protelis
16:02:52.427 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over launcher
16:02:52.428 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over type
16:02:52.428 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Could not replace nor iterate over AlchemistServer
16:02:52.428 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- New model: {incarnation=protelis, launcher={type=AlchemistServer}}
16:02:52.428 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Complete simulation model: {incarnation=protelis, launcher={type=AlchemistServer}}
16:02:52.435 [alchemist-executor-0] WARN it.unibo.alchemist.boundary.loader.SimulationModel -- No seeds specified, defaulting to 0 for both scenario and simulation
16:02:52.451 [alchemist-executor-0] WARN it.unibo.alchemist.boundary.loader.SimulationModel -- No environment specified, defaulting to Continuous2DEnvironment
16:02:52.464 [alchemist-executor-0] INFO it.unibo.alchemist.boundary.loader.SimulationModel -- Created environment: Continuous2DEnvironment
16:02:52.466 [alchemist-executor-0] DEBUG it.unibo.alchemist.boundary.loader.SimulationModel -- Trying to build a LinkingRule from {} (syntax: it.unibo.alchemist.boundary.loader.syntax.DocumentRoot$JavaType@71446e11)
16:02:52.468 [alchemist-executor-0] WARN it.unibo.alchemist.boundary.loader.SimulationModel -- There are no displacements in the specification, the environment won't have any node
16:02:52.491 [alchemist-executor-0] INFO it.unibo.alchemist.core.Engine -- No more reactions.
16:02:52.492 [alchemist-executor-0] INFO it.unibo.alchemist.boundary.launch.HeadlessSimulationLauncher -- Simulation with {} completed successfully |
Definitely a bug. Can you please open a PR with a test that "fails correctly"? |
@kelvin-olaiya the test looks partially broken:
You are missing a string parameter. Still, the system should fail and not fallback to headless silently |
I see, I'll add the configuration file with another PR. Anyway, |
Only if the constructor is annotated with |
Since very likely I'll move away from Ignite, I'll add the config file to fix the test. I'll consider this aspect for the new implementation. |
## [28.0.0](27.0.0...28.0.0) (2023-08-24) ### ⚠ BREAKING CHANGES * fix #2554 and contextually refactor the launchers ### Bug Fixes * fix [#2554](#2554) and contextually refactor the launchers ([6c52d55](6c52d55)) * **loading:** improve the explanation of loading errors ([a240c8c](a240c8c)) ### Dependency updates * **deps:** update dependency com.soywiz.korlibs.korim:korim to v4.0.10 ([5248e72](5248e72)) * **deps:** update kotlin to v1.9.10 ([8b7c9f4](8b7c9f4)) * **deps:** update react to v18.2.0-pre.620 ([05a5c0a](05a5c0a)) ### Tests * **alchemist-grid:** launcher should be correctly selected ([a0cfc71](a0cfc71)) * **grid:** add a trailing newline ([7b9f94c](7b9f94c)) ### Build and continuous integration * **deps:** update actions/checkout action to v3.6.0 ([83193b3](83193b3)) * **loading:** sort dependencies ([8980737](8980737))
🎉 This issue has been resolved in version 28.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
I was trying to run Alchemist in server mode with the following configuration file:
(here
AlchemistServer
refers toIgniteServerLauncher
).The problem is that it launches with the
HeadlessSimulationLauncher
which I understand is the default.Here's the output
The text was updated successfully, but these errors were encountered: