java in codemirror not working

the java mode is not working. can someone tell me how to use correctly the java mode in codemirror?

There’s an example Java editor on this page. You can view source and compare with what you are doing.

can you give another example? i really need it

Hey @marijn, I believe the @codemirror/lang-java language extension stopped working.

Most likely your dependency tree got duplicate packages in it. Remove package lock, reinstall, and upgrade to a recent npm to avoid the problem in the future.

Thanks, Marijn! Also, it looks like I no longer need to install @codemirror/language.