An internal error occurred during: "Requesting Java AST from selection". 'boolean com.ibm.icu.text.UTF16.isSurrogate(char)' "Requesting Java AST from selection"
I installed Spring Tool Suite in Eclipse. Although I uninstalled the tool, the error is still there. What should I do?

--Solution 1 : Go to : window > preferences > java > Editor > mark occurrences and disable : mark occurrences ...
--Solution 2 (deeply recommended) : if you need to use mark occurences, use eclipse 2022-12 and this will fix the error. Then choose the type of ide that you want, if you use JEE dowload Eclipse IDE for Enterprise Java and Web Developers 2022-12
Check the plugins folder of your STS installation. In my case a plugin I had installed and downloaded a newer version of the com.ibm.icu class (v71) which has a different signature than v67.1 which includes issurrogate method. Even after uninstalling the plugin the newer class was still there - actually both versions were - so I continued to get the isSurrogate error. After deleting the v71 class from my plugins folder the problem disappeared and I was able to leave Mark Occurrences enabled. This is the version I left in my plugins folder com.ibm.icu_67.1.0.v20200706-1749.jar
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