Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filecomment for new Java types is still @author ${user} #502

Closed
hohwille opened this issue Dec 14, 2020 · 1 comment
Closed

Filecomment for new Java types is still @author ${user} #502

hohwille opened this issue Dec 14, 2020 · 1 comment
Labels
bug Something isn't working config should be configurable or configuration change eclipse related to Eclipse IDE

Comments

@hohwille
Copy link
Member

hohwille commented Dec 14, 2020

For over a year we had configured the templates such that new files should initially get this JavaDoc:

/**
 * TODO ${user} This type ...
 */

This setting can be found here:
https://github.com/devonfw/ide-settings/blob/719e0673109b16008258eddd243159cd8dcc3bc6/eclipse/workspace/update/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs#L79

However what actually gets generated is this JavaDoc:

/**
 * @author ${user}
 *
 */

Searching for @autor in ide-settings repository does not give any hits. Its magic and I do not know where this is comming from. Even searching for author or user does not lead to such magic configuration in our repository (also tested with grep on the cloned repo).
When I open up a fresh eclipse and edit the code templates for new types I however see this:

/**
 * @author ${user}
 *
 * ${tags}
 */

Is this a eclipse build-in default and the config has changed so our actual preference config does not apply?

@hohwille hohwille added bug Something isn't working eclipse related to Eclipse IDE config should be configurable or configuration change labels Dec 14, 2020
hohwille added a commit to devonfw/ide-settings that referenced this issue Dec 14, 2020
@hohwille
Copy link
Member Author

Incredible magic. It seems as if the JavaDoc line:

 * @since ${project_version}

was causing some strange error in eclipse what made it fallback to the default type-comment...
Tricky to trace down bug finally fixed.

@hohwille hohwille added this to the release:2020.12.001 milestone Dec 14, 2020
hohwille added a commit to m-m-m/settings that referenced this issue Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working config should be configurable or configuration change eclipse related to Eclipse IDE
Projects
None yet
Development

No branches or pull requests

1 participant