{"action":"created","issue":{"url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/72","repository_url":"https://api.github.com/repos/xtext/xtext-gradle-plugin","labels_url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/72/comments","events_url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/72/events","html_url":"https://github.com/xtext/xtext-gradle-plugin/issues/72","id":198247851,"number":72,"title":"Avoiding \"The type ... is already defined\" errors","user":{"login":"szarnyasg","id":1402801,"avatar_url":"https://avatars.githubusercontent.com/u/1402801?v=3","gravatar_id":"","url":"https://api.github.com/users/szarnyasg","html_url":"https://github.com/szarnyasg","followers_url":"https://api.github.com/users/szarnyasg/followers","following_url":"https://api.github.com/users/szarnyasg/following{/other_user}","gists_url":"https://api.github.com/users/szarnyasg/gists{/gist_id}","starred_url":"https://api.github.com/users/szarnyasg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szarnyasg/subscriptions","organizations_url":"https://api.github.com/users/szarnyasg/orgs","repos_url":"https://api.github.com/users/szarnyasg/repos","events_url":"https://api.github.com/users/szarnyasg/events{/privacy}","received_events_url":"https://api.github.com/users/szarnyasg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-31T21:51:14Z","updated_at":"2017-01-01T09:25:03Z","closed_at":null,"body":"I keep getting \"Type type ... is already defined\" errors in Eclipse. The [Xtend Compiler](http://xtext.github.io/xtext-gradle-plugin/xtend.html) page states that:\r\n> Hooks into 'gradle eclipse', so the Xtend compiler is configured for your project when you import it into Eclipse\r\n\r\nHowever, this does not work for me. I created a simple project that reproduces the issue: https://github.com/szarnyasg. If I execute the `eclipse` task manually with `./gradlew build eclipse` (as shown in [this isse](https://bugs.eclipse.org/bugs/show_bug.cgi?id=462172#c1)), the problem goes away. Another workaround is do delete the build directory (either from Eclipse or from another application), which also fixes the issue.\r\n\r\nIs there a way to avoid these errors without explicitly invoking the `eclipse` task?\r\n\r\nI use the latest Gradle (3.2.1) and the latest version of the Xtext Gradle plug-in (1.0.15)."},"comment":{"url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/comments/269896786","html_url":"https://github.com/xtext/xtext-gradle-plugin/issues/72#issuecomment-269896786","issue_url":"https://api.github.com/repos/xtext/xtext-gradle-plugin/issues/72","id":269896786,"user":{"login":"oehme","id":1191797,"avatar_url":"https://avatars.githubusercontent.com/u/1191797?v=3","gravatar_id":"","url":"https://api.github.com/users/oehme","html_url":"https://github.com/oehme","followers_url":"https://api.github.com/users/oehme/followers","following_url":"https://api.github.com/users/oehme/following{/other_user}","gists_url":"https://api.github.com/users/oehme/gists{/gist_id}","starred_url":"https://api.github.com/users/oehme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oehme/subscriptions","organizations_url":"https://api.github.com/users/oehme/orgs","repos_url":"https://api.github.com/users/oehme/repos","events_url":"https://api.github.com/users/oehme/events{/privacy}","received_events_url":"https://api.github.com/users/oehme/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T09:25:03Z","updated_at":"2017-01-01T09:25:03Z","body":"The problem is that the Xtend Gradle plugin has no way of configuring the Xtend compiler settings in eclipse, it's a missing API in Gradle. The Gradle plugin uses a different default than the Eclipse plugin, which is why you get those duplicate type errors. \r\n\r\nThe only way to fix that is an api in Gradle that allows us to model preferences. If you are interested in contributing that let me know."}}
{"actor":{"display_login":"oehme"}}