This error comes up in an alert box when I try saving my js file in eclipse:
Compilation unit name must end with .java, or one of the registered Java-like extensions
In the breakpoints view I see this:
/module-foo/src/main/resources/frontend/foo/foo_base.js [entry] - ___anonymous()
I had an errant breakpoint set in the file. Removing the breakpoint resolved the problem.
The answer comes from a comment in another post, but was a bit obscure in the comments of a lower ranked answer here: JavaScript editor within Eclipse
Hopefully putting it here will make it easier to find as I didn't find much when I was trying to resolve this before.
I also fixed this by removing breakpoints. The interesting thing was, I wasn't able to remove the breakpoint by double clicking on it as you normally would.
I had to go into the Breakpoint View and right click and remove the breakpoint from this file. Directly afterwards, I tried to save again, and it was the first time the task completed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With