Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [statet-users] An internal error occurred during: "File Search Worker".

Hi Marco,

this error occurs if a newer, incompatible version of the Eclipse IDE search plug-in (org.eclipse.search.core) is installed in Eclipse 2023-12.

The plug-in is probably installed (updated) during the installation of an other features (like StatET) and "Contact all update sites during install to find required software" is enabled in the installation wizard. (AFAIK the UI does not show if such plug-ins are updated during the installation.)

The concrete problem is caused by:
 1. The mentioned search plug-in does not correctly specify its
    requirements (Eclipse IDE >= 2024-03).
 2. Some plug-in providers work uncleanly with regard to update sites:
    - plug-ins add automatically update sites of other versions of the
      Eclipse IDE to the list of update sites in your IDE.
    - update sites can refer/include other update sites which makes it
      hard to control which update sites are used.
    - Maybe some update also redistribute the faulty plug-in
Both are not in the area of responsibility and influence of StatET.

You can avoid the problem by:
A) Disable the option "Contact all update sites during install to find required software" (may require the manual installation of required dependencies), or B) Use "Contact all update sites during install to find required software" but only enable the update sites which are really required (disable all other). For the installation of StatET you only need the update site of StatET and the site of the Eclipse IDE release (for Eclipse 2023-12 https://download.eclipse.org/releases/2023-12).

Because of this problem I also recommend to disable the automatic update of plug-ins.

Regards,
Stephan


[22.10.2024 02:25] Hofmann, Marco via statet-users wrote:
Hello,

after installing the CDT plugin yesterday in addition to StatET, searching for files in the workspace does not work anymore.

This results to problems with the details:

Text Search
An internal error occurred during: "File Search Worker".
'byte[] org.eclipse.core.resources.IFile.readNBytes(int)'
An internal error occurred during: "File Search Worker".
'byte[] org.eclipse.core.resources.IFile.readNBytes(int)'

Also a new installation of Eclipse 2023-12 in a clean folder and workspace does not fix the problem. I can search then in imported projects, but after installing StatET 4.9 from the update site

https://download.eclipse.org/statet/releases/4.9/E202312

the file search is broken again. I tried the new installation also on a different computer (both windows) without success.

The internet search shows that this error occured recently with Copilot4Eclipse (which I had not installed), but also a reinstallation of Eclipse and installing Copilot as suggested in this fix did not work: https://github.com/Genuitec/Copilot4Eclipse-community/discussions/23

To avoid such problems it seems (currently) advisable not to run updates or to make changes on running Eclipse StatET IDEs.

Best regards,

Marco


Back to the top