raml-org / raml-java-parser-2

Other
19 stars 5 forks source link

parser can only handle absolute paths to a raml definition file #11

Open mutsys opened 8 years ago

mutsys commented 8 years ago

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
sichvoge commented 8 years ago

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

jschamburger commented 8 years ago

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

sichvoge commented 8 years ago

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.

jschamburger commented 8 years ago

Great, thanks. Looking forward to it!