eclipse-launcher icon indicating copy to clipboard operation
eclipse-launcher copied to clipboard

Problem with Mars.2 not showing workspace label

Open KarlEilebrecht opened this issue 9 years ago • 24 comments

After using your awesome plugin for a long time with Eclipse Mars.1, I upgraded (Eclipse-internal-update) to Mars.2. Since this time the tiny workspace label does no longer stay(!) on top of the eclipse logo on the Mac OS dock. In other words: after showing up for a moment it vanishes. I uninstalled the eclipse-launcher and re-installed it - no change. Is there any workaround?

Confirmed: Same problem for my colleage right after updating to Mars.2.

KarlEilebrecht avatar Mar 09 '16 06:03 KarlEilebrecht

How did you install Eclipse? I've seen that Oomph sometimes creates problems with the label.

turesheim avatar Mar 11 '16 19:03 turesheim

I downloaded Eclipse Mars.1 edition for Java development from eclipse.orghttp://eclipse.org. Later I updated to Mars.2 inside Eclipse. Same for my colleague.

Am 11.03.2016 um 20:32 schrieb Torkild U. Resheim <[email protected]mailto:[email protected]>:

How did you install Eclipse? I've seen that Oomph sometimes creates problems with the label.

Reply to this email directly or view it on GitHubhttps://github.com/turesheim/eclipse-launcher/issues/5279#issuecomment-195513203.

KarlEilebrecht avatar Mar 11 '16 21:03 KarlEilebrecht

Could you please check the log for any exceptions that are suspicious? Also make sure that you're running Eclipse under Java 1.7 or newer.

turesheim avatar Mar 11 '16 21:03 turesheim

eclipse.buildId=4.5.2.M20160212-1500 Java version is 1.8.0_72 (Oracle)

workspace/.metadata/.log does not contain any related error or warning.

KarlEilebrecht avatar Mar 12 '16 13:03 KarlEilebrecht

I attempted to reproduce the issue by the following procedure:

  1. Install "Eclipse IDE for Java Developers" Mars.1
  2. Install "OS X Eclipse Launcher Utility"
  3. Set the workspace name to "TEST"
  4. Upgrade to "Eclipse IDE for Java Developers" Mars.2

I was not able to reproduce the problem. Could there be some special characters in the workspace name that causes this? Either in the file path or in the preference. I tried some Unicode for fun but could not break it. If you send me your .log file I might be able to spot the problem. i-heart-eclipse

For the record what OS X version are you using? It could be related to SWT and OS version. However I cannot see any SWT bugs fixed for 4.5.2 that may be related: https://bugs.eclipse.org/bugs/buglist.cgi?classification=Eclipse&component=SWT&order=Importance&product=Platform&query_format=advanced&target_milestone=4.5.2&target_milestone=4.5.2%2B

turesheim avatar Mar 13 '16 20:03 turesheim

Hi,

Thank you for your quick reply.

Just to be sure not to be on the wrong page, I just took my other mac, already on El Capitain and completely unrelated to my usual work and used "Eclipse -> Help -> Check for Updates", ran the update, restarted and got the exact same behavior: the label above the ecliipse Icon appears at start and vanishes a moment (maybe 1 or 2 seconds) later.

My Mac at work, where I observed the problem first, is Yosemite 10.10.5

At home (same problem): El Capitan 10.11.3

Here is the .log-file from the computer (El Capitan) I just upgraded: https://www.evernote.com/l/AIz4j2fdZdNMcrjrXoI_2ykyPrFrMDaVotk

KarlEilebrecht avatar Mar 13 '16 22:03 KarlEilebrecht

The log file contained nothing interesting. Could you try opening a new fresh workspace and see what happens? What other plug-ins do you have installed?

turesheim avatar Mar 14 '16 13:03 turesheim

I've improved the way the WorkspaceDecorator obtains the handle to the TaskBar and TaskItem. Please try to install from https://resheim.net/p2/eclipse-launcher_test/.

turesheim avatar Mar 14 '16 14:03 turesheim

Unfortunately the new version shows same behavior. After a few seconds the label is gone. Here I have attached now my full configuration: https://www.evernote.com/l/AIz4j2fdZdNMcrjrXoI_2ykyPrFrMDaVotk

KarlEilebrecht avatar Mar 14 '16 18:03 KarlEilebrecht

Have the same problem. Icon (badge) appears sometimes (mainly after -clean option) but most of time it's invisible.

FoxyBOA avatar Mar 15 '16 06:03 FoxyBOA

I'm looking into this. Still trying to reproduce the behavior. Thanks for the configuration Karl. I did not see anything strange in there except that Oomph is installed. I'll have a close look at the Oomph source code as I suspect that it does attempts to set the icon badge when on OS X.

turesheim avatar Mar 15 '16 07:03 turesheim

Yes, so Oomph appears to interfering in it's TaskItemDecorator. However it only uses the workspace name preference setting. So if the name has not been set, the badge will be cleared. Try actively setting the workspace name in General > Workspace > Workspace name.

turesheim avatar Mar 15 '16 08:03 turesheim

Thanks, Torkild, actively setting the workspace name did the trick. Field was empty… Bernd

bee256 avatar Mar 15 '16 15:03 bee256

Fantastic! Made my day! :-)

KarlEilebrecht avatar Mar 15 '16 17:03 KarlEilebrecht

Thanks for the tip. Setting the workspace name is in someways cleaner than long workspace folder names that get trun…ted.

richardliechty avatar Mar 25 '16 13:03 richardliechty

I think I can close this as resolved although Oomph will interfere.

turesheim avatar Apr 08 '16 22:04 turesheim

I've just done the upgrade and have the same issue. Manually inserting the names of workspaces is a good work around but not the solution. Will I always have to manually put this in all the time now?

F4154LK avatar Jun 20 '16 15:06 F4154LK

Yes, until I can convince the Oomph team to not override what this plug-in does or implement the same mechanism for showing the badge. Sorry about that.

turesheim avatar Jun 20 '16 20:06 turesheim

Do you have a bug on Oomph? I'd be happy to comment/vote there.

colemarkham avatar Jun 20 '16 21:06 colemarkham

I've added bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=496450

turesheim avatar Jun 21 '16 09:06 turesheim

It seems that the workaround doesn't work around anymore with Neon.2, at least for me. Does it still work for somebody else in Neon.2?

jfrantzius avatar Jan 23 '17 11:01 jfrantzius

Yes, it's broken. Probably for other reasons. See bug #5281.

turesheim avatar Jan 23 '17 11:01 turesheim

My temporary workaround: setting: General > Startup and Shutdown And there I have unchecked Oomph related pugins (not to activate on startup.

takacsot avatar Feb 06 '18 13:02 takacsot

FYI, the badge wasn't showing for me on Oxygen.3a. Disabling Oomph as @takacsot mentioned above "fixed" it for me.

edfink avatar Jun 06 '18 20:06 edfink