Re: Developing groovyScripts in the IDE

2021-01-21 Thread Pawan Verma
Thanks dan for the details, I am also more inclined to have an automated way. Looking forward for the solution. Have a great day, buddy On Thu, Jan 21, 2021, 7:13 PM Daniel Watford wrote: > Another CON to the global library approach, I'm afraid. > > When using a global Groovy SDK I can no

Re: Developing groovyScripts in the IDE

2021-01-21 Thread Daniel Watford
Another CON to the global library approach, I'm afraid. When using a global Groovy SDK I can no longer hit break points in groovy script files when debugging. If I remove the global library, even while ofbiz is running, I can hit break points again. Thanks, Dan. On Thu, 21 Jan 2021 at 12:44,

Re: Developing groovyScripts in the IDE

2021-01-21 Thread Daniel Watford
Hi Pawan, I had to carry out one more step to get your solution to work for me. I'm running IntelliJ Ultimate 2020.3.1. I find that I get asked to configure a Groovy SDK for the first groovyScript file that I open in the IDE for any particular module. I tried two Groovy SDKs, 'Gradle:

Re: Developing groovyScripts in the IDE

2021-01-21 Thread Pawan Verma
Hi Dan, I use IntelliJ 2019.1 Ultimate Edition(I know it's too old) and have a Groovy SDK setup(groovy-2.5.7). For me it works well, I am also able to navigate between other OFBiz Classes from GroovyScript files. I've tried removing the Groovy SDK and set it up as a fresh one and recorded a

Re: Developing groovyScripts in the IDE

2021-01-20 Thread Daniel Watford
Hello, I spent some more time trying to see if I could get IntelliJ to handle groovyScript files without making changes to build.gradle, but cannot find any other workarounds. Although we don't generally want to put lots of IDE specific code into our sources, we do seem to do this occasionally

Re: Developing groovyScripts in the IDE

2021-01-20 Thread Jacques Le Roux
Hi Daniel, All, I use only Eclipse (for 15+ years and 2020-12 currently) with[1]+[2] and I have no problems with classpath nor navigation to Java classes from Groovy scripts [1] Buildship: Eclipse Plug-ins for Gradle, provided as part of the Gradle Platform. [2] Eclipse Groovy Development

Re: Developing groovyScripts in the IDE

2021-01-18 Thread Girish Vasmatkar
Hi Daniel I am on Eclipse most of the time and use the gradle eclipse plug-in to just build the classpath. I have not faced this issue on Eclipse so can't speak to that. That said, I see no issues with selecting SDK or compiler for the Groovy files. I do it on eclipse and it works without

Re: Developing groovyScripts in the IDE

2021-01-18 Thread Pritam Kute
Hello Emad, I have tried those changes and can confirm that those are working as expected. Thanks! Kind Regards, -- Pritam Kute On Sun, Jan 17, 2021 at 9:01 PM Daniel Watford wrote: > Hello, > > I use IntelliJ for ofbiz development, but have found it awkward to work > with groovyScript