Re: [Codenarc-user] @Grab and IntelliJ IDEA
Brought to you by:
chrismair
From: Hamlet D'A. <ham...@gm...> - 2011-03-02 12:04:33
|
This is fixed in version 0.13 The problem is that @Grab resolves dependences at compile time. Since CodeNarc partially compiles the code, the resolution kicked in. The solution was to remove the @Grab AST Transformation from the compilation process. On Tue, Mar 1, 2011 at 10:24 AM, Hamlet DArcy <ham...@ca...> wrote: > That sounds like the problem. > > I'll try to test it locally. > > ----- Original Message ----- >> It can be so. I didn't dig into @Grab resolving code, but from the >> stacktrace, NoClassDefFoundError just means that a dependency of some >> class is ivy so you may be right that it actually doesn't try to >> download anything. I didn't try to run a unit test with CodeNarc to >> check if this happens with a simple groovy file though. >> >> Le 01/03/2011 10:12, Hamlet D'Arcy a écrit : >> > To my knowledge, CodeNarc does not trigger an @Grab resolution. >> > >> > Do you think this can be caused by CodeNarc having a Class >> > reference >> > to @Grab instead of a String reference to "groovy.Grab"? That is >> > probably what happens, is CodeNarc tries to convert this text into >> > a >> > Class file, which loads the class. >> > >> > What do you think? >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT >> data in >> Real-Time with Splunk. Collect, index and harness all the fast moving >> IT data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new >> business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Codenarc-user mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codenarc-user >> > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user > -- Hamlet D'Arcy ham...@gm... |