Community
Participate
Working Groups
This happened when I tried to open some projects (which had been closed when switching to an old branch): java.lang.IllegalArgumentException: can't parse argument number: at java.base/java.text.MessageFormat.makeFormat(MessageFormat.java:1454) at java.base/java.text.MessageFormat.applyPattern(MessageFormat.java:492) at java.base/java.text.MessageFormat.<init>(MessageFormat.java:371) at java.base/java.text.MessageFormat.format(MessageFormat.java:860) at org.eclipse.egit.core.internal.efs.HiddenResources.initialize(HiddenResources.java:185) at org.eclipse.egit.core.internal.efs.HiddenResources.initialize(HiddenResources.java:128) at org.eclipse.core.runtime.jobs.Job$2.run(Job.java:187) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.lang.NumberFormatException: For input string: "" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) at java.base/java.lang.Integer.parseInt(Integer.java:678) at java.base/java.lang.Integer.parseInt(Integer.java:786) at java.base/java.text.MessageFormat.makeFormat(MessageFormat.java:1452) ... 7 more
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/192492
Gerrit change https://git.eclipse.org/r/c/egit/egit/+/192492 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=c49b98b3ad9a6cc18dc3172fe543a9307c181d59
Exception is fixed. But why did we run into this at all? You write about closed projects. So we can't remove hidden linked resources if the link target is in a closed project? Why was there a CoreException at all? I guess now that the NumberFormatException is fixed we should see the CoreException, and then be able to figure out what's going on.
Of course I've also looked for anything else pointing to the root exception, but there was nothing. Trouble is, I don't understand what HiddenResources is _intended_ to do at the place where the exception is thrown, so I can't even speculate.
HiddenResources manages linked resources for the Compare Editor in two cases: comparisons with non-workspace files, and comparisons when the mode is "Work Tree Pre-Merged with 'Ours'". The Compare editor cleans up these linked resources when it is closed. But if not closed, it's possible that some links remain when the workbench closes. At start-up, HiddenResources tries to remove such left-over links.