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

Streams UNPHI Does Not Work #450

Open
Tracked by #470
volodya-lombrozo opened this issue Oct 23, 2024 · 0 comments
Open
Tracked by #470

Streams UNPHI Does Not Work #450

volodya-lombrozo opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@volodya-lombrozo
Copy link
Member

The issue comes from this comment: objectionary/eo-phi-normalizer#470 (comment)

I converted the Java program with streams to PHI and got
no-normalization.zip
Then, I ran eoc unphi:

eoc --parser 0.39.2 unphi --unphi-input $PWD/no-normalization

And got an error:

[ERROR] 2 files with parsing errors were found:.
org/eolang/streams/Playground.phi:
        [76:28] no viable alternative at input 'org↦⟦eolang↦⟦streams↦⟦j$Playground↦⟦version↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-34)),access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-21)),supername↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍6A-61-76-61-2F-6C-61-6E-67-2F-4F-62-6A-65-63-74)),interfaces↦Φ.org.eolang.tuple.empty,j$d↦Φ.org.eolang.field(α0↦ξ.access-j$d,α1↦ξ.descriptor-j$d,α2↦ξ.signature-j$d,α3↦ξ.value-j$d),new-KEkpVg==↦⟦access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),descriptor↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍28-49-29-56)),signature↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍--)),exceptions↦Φ.org.eolang.tuple.empty,maxs↦⟦stack↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-02)),locals↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-02))⟧,param-SQ==-0↦Φ.org.eolang.param,φ↦Φ.org.eolang.seq(α0↦ξ.instructions),instructions↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple.empty,α1↦Φ.org.eolang.labeled(α0↦Φ.org.eolang.jeo.label(α0↦Φ.org.eolang.bytes(Δ⤍31-63-64-64-38-65-35-31-2D-65-33-34-37-2D-34-39-61-66-2D-38-32-30-35-2D-64-33-30-63-34-30-35-65-63-38-33-31)))),α1↦Φ.org.eolang.labeled(α0↦ξ(': "EOF"
        [11:13] mismatched input ',' expecting {'(', ')', '.'}: "EOF"

org/eolang/streams/Main.phi:
        [67:24] no viable alternative at input 'org↦⟦eolang↦⟦streams↦⟦j$Main↦⟦version↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-34)),access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-21)),supername↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍6A-61-76-61-2F-6C-61-6E-67-2F-4F-62-6A-65-63-74)),interfaces↦Φ.org.eolang.tuple.empty,new-KClW↦⟦access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),descriptor↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍28-29-56)),signature↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍--)),exceptions↦Φ.org.eolang.tuple.empty,maxs↦⟦stack↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),locals↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01))⟧,φ↦Φ.org.eolang.seq(α0↦ξ.instructions),instructions↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple.empty,α1↦Φ.org.eolang.labeled(α0↦Φ.org.eolang.jeo.label(α0↦Φ.org.eolang.bytes(Δ⤍65-35-37-35-31-65-34-31-2D-33-38-36-63-2D-34-38-34-31-2D-38-32-63-34-2D-35-65-65-38-64-37-32-34-38-32-63-35)))),α1↦ξ(': "EOF"
        [11:13] mismatched input ',' expecting {'(', ')', '.'}: "EOF"

[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.39.2:phi-to-xmir (default-cli) on project eoc: 'org.eolang.maven.UnphiMojo@1d4fb213' execution failed: java.lang.IllegalStateException: 2 files with parsing errors were found:
[ERROR] org/eolang/streams/Playground.phi:
[ERROR]         [76:28] no viable alternative at input 'org↦⟦eolang↦⟦streams↦⟦j$Playground↦⟦version↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-34)),access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-21)),supername↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍6A-61-76-61-2F-6C-61-6E-67-2F-4F-62-6A-65-63-74)),interfaces↦Φ.org.eolang.tuple.empty,j$d↦Φ.org.eolang.field(α0↦ξ.access-j$d,α1↦ξ.descriptor-j$d,α2↦ξ.signature-j$d,α3↦ξ.value-j$d),new-KEkpVg==↦⟦access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),descriptor↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍28-49-29-56)),signature↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍--)),exceptions↦Φ.org.eolang.tuple.empty,maxs↦⟦stack↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-02)),locals↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-02))⟧,param-SQ==-0↦Φ.org.eolang.param,φ↦Φ.org.eolang.seq(α0↦ξ.instructions),instructions↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple.empty,α1↦Φ.org.eolang.labeled(α0↦Φ.org.eolang.jeo.label(α0↦Φ.org.eolang.bytes(Δ⤍31-63-64-64-38-65-35-31-2D-65-33-34-37-2D-34-39-61-66-2D-38-32-30-35-2D-64-33-30-63-34-30-35-65-63-38-33-31)))),α1↦Φ.org.eolang.labeled(α0↦ξ(': "EOF"
[ERROR]         [11:13] mismatched input ',' expecting {'(', ')', '.'}: "EOF"
[ERROR] 
[ERROR] org/eolang/streams/Main.phi:
[ERROR]         [67:24] no viable alternative at input 'org↦⟦eolang↦⟦streams↦⟦j$Main↦⟦version↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-34)),access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-21)),supername↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍6A-61-76-61-2F-6C-61-6E-67-2F-4F-62-6A-65-63-74)),interfaces↦Φ.org.eolang.tuple.empty,new-KClW↦⟦access↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),descriptor↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍28-29-56)),signature↦Φ.org.eolang.string(α0↦Φ.org.eolang.bytes(Δ⤍--)),exceptions↦Φ.org.eolang.tuple.empty,maxs↦⟦stack↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01)),locals↦Φ.org.eolang.int(α0↦Φ.org.eolang.bytes(Δ⤍00-00-00-00-00-00-00-01))⟧,φ↦Φ.org.eolang.seq(α0↦ξ.instructions),instructions↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple(α0↦Φ.org.eolang.tuple.empty,α1↦Φ.org.eolang.labeled(α0↦Φ.org.eolang.jeo.label(α0↦Φ.org.eolang.bytes(Δ⤍65-35-37-35-31-65-34-31-2D-33-38-36-63-2D-34-38-34-31-2D-38-32-63-34-2D-35-65-65-38-64-37-32-34-38-32-63-35)))),α1↦ξ(': "EOF"
[ERROR]         [11:13] mismatched input ',' expecting {'(', ')', '.'}: "EOF"
[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
The command "/home/eyjafjallajokull/Desktop/gh/normalizer/node_modules/eolang/mvnw/mvnw eo:phi-to-xmir -Deo.version=0.39.2 -Deo.tag=130afdd1456a0cbafd52aee8d7bc612e1faac547 --quiet -Deo.sourcesDir=/home/eyjafjallajokull/Desktop/gh/normalizer -Deo.targetDir=/home/eyjafjallajokull/Desktop/gh/normalizer/.eoc -Deo.outputDir=/home/eyjafjallajokull/Desktop/gh/normalizer/.eoc/classes -Deo.generatedDir=/home/eyjafjallajokull/Desktop/gh/normalizer/.eoc/generated-sources -Deo.placed=/home/eyjafjallajokull/Desktop/gh/normalizer/.eoc/eo-placed.csv -Deo.placedFormat=csv -Deo.unphiInputDir=/home/eyjafjallajokull/Desktop/gh/normalizer/no-normalization-phi-expressions -Deo.unphiOutputDir=/home/eyjafjallajokull/Desktop/gh/normalizer/.eoc/unphi --batch-mode --color=never --update-snapshots --fail-fast --strict-checksums" exited with #1 code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant