Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Syntax validation for Java is not working #162

Open
yogitaAP opened this issue Dec 5, 2016 · 7 comments
Open

Syntax validation for Java is not working #162

yogitaAP opened this issue Dec 5, 2016 · 7 comments

Comments

@yogitaAP
Copy link

yogitaAP commented Dec 5, 2016

I am using ace editor in an angular application and I have initialized the editor in Java mode. The syntax highlighting for Java is not working. However, if I change the mode to javascript, it works fine. Why is that so?. Also, I set "$scope.editor.getSession().setUseWorker(true);" explicitly.

Attaching the screenshot for reference.
Java code

screen shot 2016-12-05 at 12 08 46 pm

Javascript Code

screen shot 2016-12-05 at 12 06 09 pm

@mmohdnowfal
Copy link

same issue in python mode too, is there any other settings to enable the validation

@bfaf
Copy link

bfaf commented Apr 16, 2018

For React only 10 languages have support for syntax validation. Java is not among them. I guess the same is true for Angular.

Pretty much the directories in this repo correspond to the languages that have syntax validation out of the box.

@sheshit
Copy link

sheshit commented Dec 20, 2019

@yogitaAP Have you tried integrating java syntax checking to ace editor in angular? Any inputs will be useful.

@yogitaAP
Copy link
Author

yogitaAP commented Dec 20, 2019 via email

@sheshit
Copy link

sheshit commented Dec 20, 2019

@yogitaAP How did you do it? I have tried adding my custom syntax checker for JAVA in the ace package. But couldn't find a linter file for JAVA. which linter have you used?

@yogitaAP
Copy link
Author

yogitaAP commented Dec 20, 2019 via email

@sheshit
Copy link

sheshit commented Dec 20, 2019

No, ace doesn't provide support for JAVA. We need to write our own syntax checker as a web worker. Ok. Thanks Yogita.

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

No branches or pull requests

4 participants