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

Unable to compile "Hello, world!" #37

Open
c71n93 opened this issue Jan 15, 2024 · 5 comments
Open

Unable to compile "Hello, world!" #37

c71n93 opened this issue Jan 15, 2024 · 5 comments

Comments

@c71n93
Copy link
Member

c71n93 commented Jan 15, 2024

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
Copy link
Member

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

@c71n93
Copy link
Member Author

c71n93 commented Jan 15, 2024

@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
Copy link
Member

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

@c71n93
Copy link
Member Author

c71n93 commented Jan 15, 2024

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

@yegor256
Copy link
Member

@c71n93 I think so, yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants