objectionary / sandbox

A simple EO program together with an environment to compile and run it
MIT License
6 stars 8 forks source link

Unable to compile "Hello, world!" #37

Open c71n93 opened 9 months ago

c71n93 commented 9 months ago

While compiling this program:

+package sandbox
+alias org.eolang.io.stdout

[args...] > app
  stdout > @
    "Hello, world!\n"

I got such an error:

[ERROR] An empty sequence is not allowed as the first argument of eo:class-name()
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.605 s
[INFO] Finished at: 2024-01-15T15:59:23+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.32.0:transpile (default) on project sandbox: 'org.eolang.maven.TranspileMojo@630b6190' execution failed: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Failed to transform by net.sf.saxon.jaxp.TransformerImpl: An empty sequence is not allowed as the first argument of eo:class-name(); SystemID: file:///org/eolang/maven/pre/to-java.xsl; Line#: 158; Column#: 19 -> [Help 1]

The error message is confusing and contains too little information. What could be the problem?

yegor256 commented 9 months ago

@c71n93 we don't support varargs anymore. Feel free to submit a PR to fix this.

c71n93 commented 9 months ago

@yegor256 okay, understood. But this code doesn't work either (the same error):

+package sandbox
+alias org.eolang.io.stdout

[] > app
  stdout > @
    "Hello, world!\n"

What should the hello-world program look like now?

yegor256 commented 9 months ago

@c71n93 the sandbox should use the latest EO version. Now, it uses 0.32.0 (see the log above.

c71n93 commented 9 months ago

@yegor256 should we update version here to the newest 0.34.3?

yegor256 commented 9 months ago

@c71n93 I think so, yes