objectionary / eoc

Command-line toolkit for parsing, compiling, transpiling, optimizing, linking, dataizing, and running EOLANG programs
https://www.npmjs.com/package/eolang
MIT License
17 stars 11 forks source link

Processing terminated by xsl:message when compiling and example #221

Closed GoogeTan closed 6 days ago

GoogeTan commented 9 months ago

I've installed EOc. After that I've tried to compile an example application and it has failed:


C:\eotest>npm install -g eolang

removed 2 packages, changed 55 packages, and audited 56 packages in 8s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

C:\eotest>eoc dataize game.eo
EO objects registered in .eoc\eo-foreign.json
Assembling into .eoc
[ERROR] net.sf.saxon.style.XSLMessage@62230875: This transformation must be applied only after you remove @method attributes from objects, using 'wrap-method-calls.xsl'
[ERROR] #fatalError(): Processing terminated by xsl:message at line 82 in set-locators.xsl; SystemID: file:///org/eolang/parser/set-locators.xsl; Line#: 82; Column#: 36
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[ERROR] 'org.eolang.maven.ShakeMojo@5bae40a' execution failed
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.34.1:assemble (default-cli) on project eoc: 'org.eolang.maven.AssembleMojo@314b9e4b' execution failed: java.lang.IllegalStateException: org.apache.maven.plugin.MojoFailureException: 'org.eolang.maven.ShakeMojo@5bae40a' execution failed: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Failed to transform by net.sf.saxon.jaxp.TransformerImpl: Processing terminated by xsl:message at line 82 in set-locators.xsl; SystemID: file:///org/eolang/parser/set-locators.xsl; Line#: 82; Column#: 36 -> [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
The command "C:\Users\Googl\AppData\Roaming\npm\node_modules\eolang\mvnw\mvnw.cmd eo:assemble -Deo.version=0.34.1 -Deo.hash=0.34.1 --quiet -Deo.sourcesDir=C:\eotest -Deo.targetDir=C:\eotest\.eoc -Deo.outputDir=C:\eotest\.eoc\classes -Deo.generatedDir=C:\eotest\.eoc\generated-sources -Deo.placed=C:\eotest\.eoc\eo-placed.csv -Deo.placedFormat=csv --batch-mode --color=never --update-snapshots --fail-fast --strict-checksums" exited with #1 code
C:\eotest>

The code:

[args] > hello
  QQ.io.stdout > @
    "Hello, world!\n"
yegor256 commented 9 months ago

@GoogeTan try eoc --version and show what you see

GoogeTan commented 8 months ago
C:\eotest>eoc --version
0.15.1
C:\eotest>
maxonfjvipon commented 7 months ago

@GoogeTan please update eolang (new version is released) and try again. If it'll fail - please show us the program you're trying to run

GoogeTan commented 7 months ago

It still fails:


[args] > hello
  QQ.io.stdout > @
    "Hello, world!\n"
maxonfjvipon commented 7 months ago

@GoogeTan which version of eolang do you use? Could you please also provide the full error message?

GoogeTan commented 7 months ago

C:\eotest>eoc --version
0.18.0

C:\eotest>eoc dataize game.eo
EO objects registered in .eoc\eo-foreign.json
Assembling into .eoc
[ERROR] net.sf.saxon.style.XSLMessage@10a9a437: This transformation must be applied only after you remove @method attributes from objects, using 'wrap-method-calls.xsl'
[ERROR] #fatalError(): Processing terminated by xsl:message at line 82 in set-locators.xsl; SystemID: file:///org/eolang/parser/set-locators.xsl; Line#: 82; Column#: 36
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[ERROR] 'org.eolang.maven.ShakeMojo@123b086f' execution failed
[ERROR] Processing terminated by xsl:message at line 82 in set-locators.xsl
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.35.6:assemble (default-cli) on project eoc: 'org.eolang.maven.AssembleMojo@49cb1baf' execution failed: java.lang.IllegalStateException: org.apache.maven.plugin.MojoFailureException: 'org.eolang.maven.ShakeMojo@123b086f' execution failed: java.io.UncheckedIOException: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Failed to transform by net.sf.saxon.jaxp.TransformerImpl: Processing terminated by xsl:message at line 82 in set-locators.xsl; SystemID: file:///org/eolang/parser/set-locators.xsl; Line#: 82; Column#: 36 -> [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
The command "C:\Users\Googl\AppData\Roaming\npm\node_modules\eolang\mvnw\mvnw.cmd eo:assemble -Deo.version=0.35.6 -Deo.hash=130afdd1456a0cbafd52aee8d7bc612e1faac547 --quiet -Deo.sourcesDir=C:\eotest -Deo.targetDir=C:\eotest\.eoc -Deo.outputDir=C:\eotest\.eoc\classes -Deo.generatedDir=C:\eotest\.eoc\generated-sources -Deo.placed=C:\eotest\.eoc\eo-placed.csv -Deo.placedFormat=csv --batch-mode --color=never --update-snapshots --fail-fast --strict-checksums" exited with #1 code

C:\eotest>
yegor256 commented 6 days ago

@GoogeTan I believe, it's all fixed in the latest version