eishub / eis

The Environment Interface Standard (EIS) is a Java-based interface standard for connecting agents to controllable entities in an environment such as a game. The interface provides support for managing the connection (e.g., for pausing and terminating an environment) and for interaction between agents and entities that are available in an environment (e.g., bots in a game). An agent that is connected to a controllable entity receives percepts from and can send actions to that entity. Percepts inform the agent about the state of the entity and its environment. Actions tell the entity which actions to perform in its environment. Several example implementations of environments are available @github.com/eishub. A default implementation of the EIS interface is also provided.
GNU General Public License v3.0
9 stars 4 forks source link

improve version incompatibility error message #37

Open Wouter1 opened 10 years ago

Wouter1 commented 10 years ago

If some component is using the wrong EIS version you now get this

....
Caused by: java.io.IOException: Loaded environment interface version does not match the required one "0.3" vs. "0.4"
    at eis.EILoader.fromJarFile(EILoader.java:90)
    at goal.core.runtime.service.environment.EnvironmentService.launchLocalMessaginEnvironment(EnvironmentService.java:276)
    ... 45 more

From this message it is not clear who is expecting what. What was GOAL looking for? What was the env using? You can guess that GOAL is on 0.4 and the env on 0.3 in this case but that's just because I know that we have GOAL on 0.4 at this moment. The message should not require guessing IMHO