rascal icon indicating copy to clipboard operation
rascal copied to clipboard

parse error in Rascal module in terminal reported with internal stack trace

Open jurgenvinju opened this issue 2 years ago • 0 comments

Describe the bug

rascal>import lang::rascal::tutor::apidoc::GenerateMarkdown;
|prompt:///|(0,53,<1,0>,<1,53>):Could not load lang::rascal::tutor::apidoc::GenerateMarkdown due to: Parse error at |prompt:///|(0,53,<1,0>,<1,53>)
Parse error
at file:///Users/jurgenv/git/rascal-tutor/src/lang/rascal/tutor/apidoc/GenerateMarkdown.rsc offset=5556 length=1 begin=131:5 end=131:6
        at org.rascalmpl.parser.gtd.SGTDBF.parse(SGTDBF.java:1197)
        at org.rascalmpl.parser.gtd.SGTDBF.parse(SGTDBF.java:1235)
        at org.rascalmpl.parser.gtd.SGTDBF.parse(SGTDBF.java:1240)
        at org.rascalmpl.parser.gtd.SGTDBF.parse(SGTDBF.java:1252)
        at org.rascalmpl.semantics.dynamic.Import.parseModuleAndFragments(Import.java:402)
        at org.rascalmpl.interpreter.Evaluator.parseModuleAndFragments(Evaluator.java:1404)
        at org.rascalmpl.interpreter.Evaluator.parseModuleAndFragments(Evaluator.java:1398)
        at org.rascalmpl.semantics.dynamic.Import.buildModule(Import.java:375)
        at org.rascalmpl.semantics.dynamic.Import.loadModule(Import.java:307)
        at org.rascalmpl.semantics.dynamic.Import.importModule(Import.java:241)
        at org.rascalmpl.semantics.dynamic.Import$Default.interpret(Import.java:207)
        at org.rascalmpl.semantics.dynamic.Command$Import.interpret(Command.java:81)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:1094)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:955)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:908)
        at org.rascalmpl.repl.RascalInterpreterREPL.evalStatement(RascalInterpreterREPL.java:132)
        at org.rascalmpl.repl.BaseRascalREPL.handleInput(BaseRascalREPL.java:105)
        at org.rascalmpl.vscode.lsp.terminal.LSPTerminalREPL$1.handleInput(LSPTerminalREPL.java:195)
        at org.rascalmpl.repl.BaseREPL.handleInput(BaseREPL.java:180)
        at org.rascalmpl.repl.BaseREPL.run(BaseREPL.java:347)
        at org.rascalmpl.vscode.lsp.terminal.LSPTerminalREPL.main(LSPTerminalREPL.java:273)
|prompt:///|(0,53,<1,0>,<1,53>): Could not import module lang::rascal::tutor::apidoc::GenerateMarkdown: Parse error
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/ModuleImport|
ok
rascal>

jurgenvinju avatar Jul 03 '23 13:07 jurgenvinju