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

[Bug] Token recognition error at: '^' #285

Closed
tymur-l opened this issue Jun 3, 2021 · 9 comments
Closed

[Bug] Token recognition error at: '^' #285

tymur-l opened this issue Jun 3, 2021 · 9 comments

Comments

@tymur-l
Copy link
Contributor

tymur-l commented Jun 3, 2021

Steps to reproduce

  1. Place the following code in sandbox/eo/app.eo:
app.eo
+package sandbox
+alias stdout org.eolang.io.stdout
+alias sprintf org.eolang.txt.sprintf

[] > base
  memory > x
  [v] > n
    seq > @
      stdout
        sprintf "Calling base.n with v = %d\n" v
      x.write v
  [v] > m
    seq > @
      stdout
        sprintf "Calling base.m with v = %d\n" v
      n v

[] > derived
  base > @
  [v] > n
    seq > @
      stdout (sprintf "Calling derived.n with v = %d\n" v)
      ^[email protected] v

[args...] > app
  base > b
  derived > d
  seq > @
    b.n 10
    stdout
      sprintf
        "base:\n\tx after n = %d\n"
        b.x
    b.m 12
    stdout
      sprintf
        "\tx after m = %d\n"
        b.x
    d.n 5
    stdout
      sprintf
        "\nderived:\n\tx after n = %d\n"
        d.x
  1. Compile it

Expected output

The program is compiled successfully.

Actual output

Compiler log
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< org.eolang:quick-start >-----------------------
[INFO] Building quick-start 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- eo-maven-plugin:0.1.15:parse (default) @ quick-start ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.543 s
[INFO] Finished at: 2021-06-03T17:39:31Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.1.15:parse (default) on project quick-start: Execution default of goal org.eolang:eo-maven-plugin:0.1.15:parse failed: [23:6] token recognition error at: '^': "      ^[email protected] v": LexerNoViableAltException -> [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/PluginExecutionException
ERROR: 1
@0crat 0crat added the 0crat/new label Jun 3, 2021
@tymur-l
Copy link
Contributor Author

tymur-l commented Jun 8, 2021

Seems other some symbols are broken as well. ! doesn't work either, so it worth checking all such symbols, except @ and >, they work fine.

@yegor256
Copy link
Member

@Sitiritis still valid? Try the latest version of EO: 0.1.25

@tymur-l
Copy link
Contributor Author

tymur-l commented Jun 15, 2021

Now there is another error and I don't get it

Compiler log
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.1.25:parse (default) on project quick-start: Execution default of goal org.eolang:eo-maven-plugin:0.1.25:parse failed: [23:7] mismatched input '.' expecting EOL: "      ^[email protected] v": InputMismatchException -> [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/PluginExecutionException
ERROR: 1

yegor256 added a commit that referenced this issue Jul 14, 2021
@yegor256
Copy link
Member

@rultor release, tag is 0.1.33

@rultor
Copy link
Contributor

rultor commented Jul 14, 2021

@rultor release, tag is 0.1.33

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Jul 14, 2021

@rultor release, tag is 0.1.33

@yegor256 Done! FYI, the full log is here (took me 10min)

@yegor256
Copy link
Member

@Sitiritis I believe it's fixed, try version 0.1.33 please.

@tymur-l
Copy link
Contributor Author

tymur-l commented Jul 18, 2021

Now it fails with another error:

Compiler log
[ERROR] Failed to execute goal org.eolang:eo-maven-plugin:0.1.33:compile (default) on project quick-start: Execution default of goal org.eolang:eo-maven-plugin:0.1.33:compile failed: failed to transform by net.sf.saxon.TransformerFactoryImpl: Processing terminated by xsl:message at line 282 in file:/// -> [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/PluginExecutionException
ERROR: 1

@yegor256
Copy link
Member

yegor256 commented Aug 6, 2021

@Sitiritis this is another issue, please submit a new ticket with a full log.

@yegor256 yegor256 closed this as completed Aug 6, 2021
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

4 participants