gama-platform / gama.experimental

Home of experimental plugins for GAMA
13 stars 6 forks source link

[irit.gama.switchproject] Upgrade from StringUtils.tokenize #33

Open RoiArthurB opened 1 year ago

RoiArthurB commented 1 year ago

Hi @benoitgaudou ! :wave:

Since https://github.com/gama-platform/gama/commit/7f328e8d1183cfa9098187dd9a1bc1090ee1b011 @AlexisDrogoul removed from StringUtils the tokenize function.

Therefore, the plugin Switch doesn't compile anymore for GAMA 1.9.2...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  30.409 s
[INFO] Finished at: 2023-07-19T10:29:17+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:3.0.3:compile (default-compile) on project irit.gama.switchproject: Compilation failure: Compilation failure: 
[ERROR] /home/roiarthurb/Documents/GAMA/Extra/experimental/irit.gama.switchproject/src/irit/gaml/types/GamaQueueType.java:[108] 
[ERROR]     return new GamaQueue(contentsType, StringUtils.tokenize((String) obj));
[ERROR]                                                    ^^^^^^^^
[ERROR] The method tokenize(String) is undefined for the type StringUtils
[ERROR] /home/roiarthurb/Documents/GAMA/Extra/experimental/irit.gama.switchproject/src/irit/gaml/types/GamaStackType.java:[108] 
[ERROR]     return new GamaStack(contentsType, StringUtils.tokenize((String) obj));
[ERROR]                                                    ^^^^^^^^
[ERROR] The method tokenize(String) is undefined for the type StringUtils
[ERROR] 3. INFO: GAML: GAML Processor: creating file:/home/roiarthurb/Documents/GAMA/Extra/experimental/irit.gama.switchproject/target/gaml/additions/package-info.java
[ERROR] 4. INFO: GAML: GAML Processor: Java sources produced for irit.gama.switchproject in 35ms
[ERROR] 5. INFO: GAML: GAML Processor: GAMA tests produced for irit.gama.switchproject in 0ms
[ERROR] 6. INFO: GAML: GAML Processor: Complete processing of irit.gama.switchproject in 35ms
[ERROR] 6 problems (2 errors, 0 warnings, 4 infos)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :irit.gama.switchproject
RoiArthurB commented 1 year ago

Here's the failing compilation log : https://github.com/gama-platform/gama.experimental/actions/runs/5596292150/jobs/10233136580

I'm removing this plugin from GAMA_1.9.2 branch to have it compiling, feel free to re-add it when the plugin is fixed or close this issue if this plugin is abandonned :)