-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error in IntelliJ opening RAML: Boolean cannot be cast to String #97
Comments
Can you please post your RAML file? Or is it happening with any RAML file you are trying to open? |
The attached RAML file is sufficient to reproduce the issue. The error popup only seems to appear the first time the editor is opened for that file, after starting up the IDE. (File renamed with .TXT extension for purposes of passing GitHub upload filter) |
OK, so the problem is that the parser doesn't like the fact that your discriminator value is boolean. I'm not sure yet if this is a bug in parser or is it that discriminator can only be string by design. I'm trying to get some answers from the RAML Parser team. |
I don't know if it's any help, but the API Workbench plugin for the Atom text editor seems able to handle this file correctly. Not sure if it's using a different parser? |
Looks like a Java parser bug after all: raml-org/raml-java-parser#404 |
When I open a RAML file in the IDE with the RAML Plugin for IntelliJ installed, I see an error dialog from the IDE.
IntelliJ IDEA 2017.1.4
Build #IU-171.4694.23, built on June 6, 2017
...
JRE: 1.8.0_112-release-736-b21 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
RAML plugin version: 0.10
The following Details are provided.
The text was updated successfully, but these errors were encountered: