6

I'm using EGit with mylyn. When I used to commit my code to git repository, the commit dialog would be filled by default message showing the task ID, task description, etc.

Now I don't see the default commit message any more.

I looked it up online and people suggest that EGit Mylyn plugin need to be installed, and I do have that plugin installed.

Shuo
  • 4,749
  • 9
  • 45
  • 63
  • What platform you running on? I'm having the same issue and none of the suggestions have helped. I wonder if it is because I'm using a shared Linux installation where eclipse is installed by root in a read-only directory. I have had issues with other plugins because of this. – Lee Ballard Apr 10 '14 at 04:02
  • Did you already find a solution? I also have the problem that after switching between tasks, the commit-message is not changed. It only works after restarting eclipse,... – Edward Jun 24 '15 at 09:35
  • I'm having this issue in Eclipse Mars despite having all the plugins installed. Possibly because I have per-project commit templates. A workaround is to select the project in Project explorer and hit `Ctrl`+`#` to open the commit dialog, and then click the "Open Git Staging view" link in the bottom right. That will insert the correct template into the commit message. – Sam Hasler Aug 11 '15 at 09:27

4 Answers4

3

Do you have a useful value at Preferences -> Mylyn -> Team -> Commit Comment Template and is the checkbox "Automatically manage (change set) with task context" directly above that message checked?

Bananeweizen
  • 21,797
  • 8
  • 68
  • 88
  • Hi Thanks for pointing that out. It turns out I don't have the "Team" tab under Mylyn. That can be the issue. Do you know which plugin I should install? – Shuo Nov 23 '12 at 18:32
  • 1
    It's in the plugin org.eclipse.mylyn.team.ui. That might be in the feature "Mylyn Task-focused interface". – Bananeweizen Nov 23 '12 at 21:52
0

The commit message will only show up when you try to check in at least one file that has been changed while the task in question is active and you have this task active (the blue ball).

This behavior has been changed in one of the last releases (3.7 ?), before it was sufficient to just have the task active.

Torsten
  • 6,184
  • 1
  • 34
  • 31
  • 2
    Thanks. I have the task activated, and also have changes to commit. But the message wouldn't show up. I'm familiar with the basic workflow since I've been using it all the time. I suspect some particular eclipse plugin got screwed up which causes this issue. – Shuo Nov 22 '12 at 22:11
0

If you don't have Team options under Preferences -> Mylyn, you need to install the Mylyn task focussed interface from http://download.eclipse.org/mylyn/releases/latest

Once done, set something sensible for the Commit Comment Template. I use

${connector.task.prefix} ${task.key}: 
John Oxley
  • 14,698
  • 18
  • 53
  • 78
0

I had the same issue on a fresh Eclipse 2021-12 installation after adding the Mylyn connector for our bug tracker.

The issue was a missing plugin, I did:

  • Help -> Install new software
  • Select the relevant version under "Work With"
  • Under "Collaboration" select "Git integration for Eclipse - Task focused interface"
  • Install the plugin

Strangely this happens with the "Java" edition of Eclipse but not with the "Enterprise" edition where the plugin is bundled by default

Guillaume
  • 14,306
  • 3
  • 43
  • 40