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

New documentation failures in release 0.30.0 of rascal (0.7.0 of rascal-language-servers) #1795

Closed
jurgenvinju opened this issue May 17, 2023 · 4 comments
Assignees
Labels

Comments

@jurgenvinju
Copy link
Member

Describe the bug

[INFO] Tutor is done, reporting errors now.
[ERROR]   Recipes/demo/vis/StaticSite.rsc:022:0: Code execution failed:
    |file:///Users/jurgenv/Sites/rascal-website/courses/Recipes/demo/vis/StaticSite.rsc|(1260,11,<38,0>,<38,11>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   Recipes/demo/vis/StaticSite.rsc:023:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/lang/html/IO.rsc|(632,391,<26,0>,<32,106>): No such Java method: org.rascalmpl.library.lang.html.IO.readHTMLFile(io.usethesource.vallang.ISourceLocation, io.usethesource.vallang.ISourceLocation, io.usethesource.vallang.IBool, io.usethesource.vallang.IBool)
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredJavaMethod/UndeclaredJavaMethod.html|

[ERROR]   Recipes/demo/vis/StaticSite.rsc:025:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: serve
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   Recipes/Toys/WebPage/WebPage.md:015:0: rascal-commands block failed: |lib://rascal/org/rascalmpl/library/lang/html/IO.rsc|(632,391,<26,0>,<32,106>): No such Java method: org.rascalmpl.library.lang.html.IO.readHTMLFile(io.usethesource.vallang.ISourceLocation, io.usethesource.vallang.ISourceLocation, io.usethesource.vallang.IBool, io.usethesource.vallang.IBool)
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredJavaMethod/UndeclaredJavaMethod.html|

[ERROR]   Recipes/Toys/WebPage/WebPage.md:032:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: serve
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[WARNING] Recipes/Languages/Pico/UseDef/UseDef.md:029:0: TODO: : should we not use locations more directly in our examples?
[WARNING] Recipes/Languages/Pico/Uninit/Uninit.md:031:0: TODO: :this description does not fit the example anymore
[ERROR]   Recipes/Common/CallAnalysis/CallAnalysis.md:059:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Graphs.rsc|(14840,11,<416,8>,<416,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   Recipes/Common/CallAnalysis/CallAnalysis.md:060:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   Recipes/Common/UninitializedVariables/UninitializedVariables.md:027:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Graphs.rsc|(14840,11,<416,8>,<416,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   Recipes/Common/UninitializedVariables/UninitializedVariables.md:028:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   Recipes/Common/CallLifting/CallLifting.md:070:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Graphs.rsc|(14840,11,<416,8>,<416,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   Recipes/Common/CallLifting/CallLifting.md:071:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   Recipes/Common/CallLifting/CallLifting.md:072:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   Recipes/Common/CountConstructors/CountConstructors.md:112:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Charts.rsc|(18069,11,<439,8>,<439,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   Recipes/Common/CountConstructors/CountConstructors.md:114:0: Code execution failed:
    |prompt:///|(0,8,<1,0>,<1,8>): Undeclared variable: barChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   GettingStarted/CreateNewProject/CreateNewProject.md:022:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/util/Reflective.rsc|(12445,76,<322,27>,<322,103>): "Folder myProjectName should have only lowercase characters, digits and dashes from [a-z0-9\\-]"
    	at newRascalProject(|lib://rascal/org/rascalmpl/library/util/Reflective.rsc|(12416,112,<321,32>,<323,5>))
    	at $shell$(|prompt:///|(0,24,<1,0>,<1,24>))

[ERROR]   GettingStarted/CreateNewProject/CreateNewProject.md:051:1: Could not read tmp:///myProjectName/pom.xml for inclusion: PathNotFound(|tmp:///myProjectName/pom.xml|)
[ERROR]   GettingStarted/CreateNewProject/CreateNewProject.md:059:1: Could not read tmp:///myProjectName/META-INF/RASCAL.MF for inclusion: PathNotFound(|tmp:///myProjectName/META-INF/RASCAL.MF|)
[ERROR]   GettingStarted/CreateNewProject/CreateNewProject.md:065:1: Could not read tmp:///myProjectName/src/main/rascal/Main.rsc for inclusion: PathNotFound(|tmp:///myProjectName/src/main/rascal/Main.rsc|)
[ERROR]   library//Exception.rsc:021:0: Ambiguous concept link: AlgebraicDataType resolves to all of these: /Rascalopedia/AlgebraicDataType/index.md /Rascal/Declarations/AlgebraicDataType/index.md 
[ERROR]   library//vis/Charts.rsc:021:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Charts.rsc|(18069,11,<439,8>,<439,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   library//vis/Charts.rsc:023:0: Code execution failed:
    |prompt:///|(0,12,<1,0>,<1,12>): Undeclared variable: scatterChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:024:0: Code execution failed:
    |prompt:///|(0,12,<1,0>,<1,12>): Undeclared variable: scatterChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:028:0: Code execution failed:
    |prompt:///|(0,8,<1,0>,<1,8>): Undeclared variable: barChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:029:0: Code execution failed:
    |prompt:///|(0,8,<1,0>,<1,8>): Undeclared variable: barChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:033:0: Code execution failed:
    |prompt:///|(0,9,<1,0>,<1,9>): Undeclared variable: lineChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:037:0: Code execution failed:
    |prompt:///|(0,9,<1,0>,<1,9>): Undeclared variable: lineChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:042:0: Code execution failed:
    |prompt:///|(0,9,<1,0>,<1,9>): Undeclared variable: lineChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Charts.rsc:046:0: Code execution failed:
    |prompt:///|(0,8,<1,0>,<1,8>): Undeclared variable: pieChart
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Graphs.rsc:031:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Graphs.rsc|(14840,11,<416,8>,<416,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   library//vis/Graphs.rsc:032:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Graphs.rsc:033:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Graphs.rsc:038:0: Code execution failed:
    |lib://rascal/org/rascalmpl/library/vis/Graphs.rsc|(14840,11,<416,8>,<416,19>): Undeclared type: HTMLElement
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredType/UndeclaredType.html|

[ERROR]   library//vis/Graphs.rsc:042:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR]   library//vis/Graphs.rsc:043:0: Code execution failed:
    |prompt:///|(0,5,<1,0>,<1,5>): Undeclared variable: graph
    Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable/UndeclaredVariable.html|

[ERROR] More than zero errors!

To Reproduce

Run mvn clean package in the website-v2 branch of the rascal-website project.

Expected behavior

No errors during the compilation of the documentation files were expected.

@jurgenvinju jurgenvinju self-assigned this May 17, 2023
@jurgenvinju
Copy link
Member Author

Most of the issues are caused by linking an older version of the .class files against a newer versions of the Rascal library sources

@jurgenvinju
Copy link
Member Author

Recompiling the website with version 0.30.0 of Rascal as the standard library for the website code examples, fixes all but these:

[INFO] Tutor is done, reporting errors now.
[WARNING] Recipes/Languages/Pico/UseDef/UseDef.md:29:0: TODO: : should we not use locations more directly in our examples?
[WARNING] Recipes/Languages/Pico/Uninit/Uninit.md:31:0: TODO: :this description does not fit the example anymore
[ERROR]   library//Exception.rsc:21:0: Ambiguous concept link: AlgebraicDataType resolves to all of these: /Rascalopedia/AlgebraicDataType/index.md /Rascal/Declarations/AlgebraicDataType/index.md 
[ERROR] More than zero errors!

@jurgenvinju
Copy link
Member Author

Note to self: there is a chance that in the next release cycle, the fix for #1789 prevents this behavior from happening again. We were looking at a new rascal file from the library, being linked against an old .class file from lang::html::IO.java (and other chances in a similar vain).

jurgenvinju added a commit to usethesource/rascal-website that referenced this issue May 20, 2023
@jurgenvinju
Copy link
Member Author

Solved by bootstrapping.

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

No branches or pull requests

1 participant