raml-java-parser-2 icon indicating copy to clipboard operation
raml-java-parser-2 copied to clipboard

parser can only handle absolute paths to a raml definition file

Open mutsys opened this issue 9 years ago • 4 comments

passing anything other than an absolute path to a raml file results in errors in the bundled javascript

this path reliably fails:

src/main/raml/example.raml

with the following exception:

javax.script.ScriptException: TypeError: null has no such function "isTopLevel" in <eval> at line number 4942

this path reliably fails:

~/raml/raml-1/src/main/raml/example.raml

with the following exception:

javax.script.ScriptException: TypeError: null has no such function "title" in <eval> at line number 97

the following path reliably succeeds:

/Users/mrose/raml/raml-1/src/main/raml/example.raml

mutsys avatar Dec 12 '15 06:12 mutsys

Hi @mutsys, this parser is a wrapper for the JS parser and we realised that there are couple of problems going this root. Therefore, we decided to implement a native Java parser which we will have a beta in a couple of weeks. stay tuned

sichvoge avatar Dec 12 '15 16:12 sichvoge

Hi @sichvoge, are there any news on this? I'd love to get my hands on the new Java parser. :-)

jschamburger avatar Jan 11 '16 17:01 jschamburger

Yes, we are currently finalising the alpha version, fixing couple of functional bugs, doing some refactoring, and soon publishing it. I will let you know where we are by the end of this week.

sichvoge avatar Jan 11 '16 17:01 sichvoge

Great, thanks. Looking forward to it!

jschamburger avatar Jan 12 '16 10:01 jschamburger