|
Hi,
I'm getting this error every time I save one of the Groovy files in a Grails project within Eclipse: An internal error occurred during: "Building workspace". BUG! exception in phase 'conversion' in source unit '...' Error: duplicate class declaration for name: ... and class: org.codehaus.groovy.ast.ClassNode@...[name:...] That second line of output looks like it comes from Groovy, but I don't know what the problem might be. Does anyone else have this problem or know what I might do to fix it? I have the Groovy eclipse plugin installed. Thanks, Peter --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Could be that eclipse is picking up the files in tmp/war too, hence
there are two sets of the same classes. Graeme On 8/6/06, Peter Ledbrook <[hidden email]> wrote: > Hi, > > I'm getting this error every time I save one of the Groovy files in a > Grails project within Eclipse: > > An internal error occurred during: "Building workspace". > BUG! exception in phase 'conversion' in source unit '...' Error: > duplicate class declaration for name: ... and class: > org.codehaus.groovy.ast.ClassNode@...[name:...] > > That second line of output looks like it comes from Groovy, but I > don't know what the problem might be. Does anyone else have this > problem or know what I might do to fix it? I have the Groovy eclipse > plugin installed. > > Thanks, > > Peter > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
On 06/08/06, Graeme Rocher <[hidden email]> wrote:
> Could be that eclipse is picking up the files in tmp/war too, hence > there are two sets of the same classes. > > Graeme Ok, I'll check that out. Thanks Graeme. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
I've experienced same problem before. Check following instruction:
* Right click on package explorer's project name and open "Properties..." dialog * Select "Builders" and make sure that "Groovy Builder" is checked * Select "Java Compiler/Building" and check "Enable project specific settings" * Append "*.groovy" to "Filtered Resources" text field, to prevent "*.groovy" files being copied to the output directory. Note that the path separator is "," not ";" * Apply changes and close dialog. * Clean your project. Make sure that the output directory doesn't contains "*.groovy" files Regards On 8/7/06, Peter Ledbrook <[hidden email]> wrote: > On 06/08/06, Graeme Rocher <[hidden email]> wrote: > > Could be that eclipse is picking up the files in tmp/war too, hence > > there are two sets of the same classes. > > > > Graeme > > Ok, I'll check that out. Thanks Graeme. > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
On 06/08/06, Alan Kang <[hidden email]> wrote:
> I've experienced same problem before. Check following instruction: > > * Right click on package explorer's project name and open > "Properties..." dialog > * Select "Builders" and make sure that "Groovy Builder" is checked > * Select "Java Compiler/Building" and check "Enable project specific settings" > * Append "*.groovy" to "Filtered Resources" text field, to prevent > "*.groovy" files being copied to the output directory. Note that the > path separator is "," not ";" > * Apply changes and close dialog. > * Clean your project. Make sure that the output directory doesn't > contains "*.groovy" files Cool, that works! Thanks for the info. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Alan Kang
Hi Alan,
Thats a great tip, could you add it to the wiki on the IDE integration page? http://grails.org/IDE+Integration Cheers Graeme On 8/6/06, Alan Kang <[hidden email]> wrote: > I've experienced same problem before. Check following instruction: > > * Right click on package explorer's project name and open > "Properties..." dialog > * Select "Builders" and make sure that "Groovy Builder" is checked > * Select "Java Compiler/Building" and check "Enable project specific settings" > * Append "*.groovy" to "Filtered Resources" text field, to prevent > "*.groovy" files being copied to the output directory. Note that the > path separator is "," not ";" > * Apply changes and close dialog. > * Clean your project. Make sure that the output directory doesn't > contains "*.groovy" files > > Regards > > On 8/7/06, Peter Ledbrook <[hidden email]> wrote: > > On 06/08/06, Graeme Rocher <[hidden email]> wrote: > > > Could be that eclipse is picking up the files in tmp/war too, hence > > > there are two sets of the same classes. > > > > > > Graeme > > > > Ok, I'll check that out. Thanks Graeme. > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Done. Thank you for encouraging me.
Regards On 8/7/06, Graeme Rocher <[hidden email]> wrote: > Hi Alan, > > Thats a great tip, could you add it to the wiki on the IDE integration page? > > http://grails.org/IDE+Integration > > Cheers > Graeme > > On 8/6/06, Alan Kang <[hidden email]> wrote: > > I've experienced same problem before. Check following instruction: > > > > * Right click on package explorer's project name and open > > "Properties..." dialog > > * Select "Builders" and make sure that "Groovy Builder" is checked > > * Select "Java Compiler/Building" and check "Enable project specific settings" > > * Append "*.groovy" to "Filtered Resources" text field, to prevent > > "*.groovy" files being copied to the output directory. Note that the > > path separator is "," not ";" > > * Apply changes and close dialog. > > * Clean your project. Make sure that the output directory doesn't > > contains "*.groovy" files > > > > Regards > > > > On 8/7/06, Peter Ledbrook <[hidden email]> wrote: > > > On 06/08/06, Graeme Rocher <[hidden email]> wrote: > > > > Could be that eclipse is picking up the files in tmp/war too, hence > > > > there are two sets of the same classes. > > > > > > > > Graeme > > > > > > Ok, I'll check that out. Thanks Graeme. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
