You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Atri Sharma <at...@gmail.com> on 2017/01/07 09:27:45 UTC

Running and debugging tests in Calcite

Hi All,

I wanted to check on how to run Calcite tests and attach debugger in
tests in Intellij.

Please advise.

Regards,

Atri

Re: Running and debugging tests in Calcite

Posted by Julian Hyde <jh...@apache.org>.
I’ve never got that error. I just open pom.xml as a project. Yes, you need to “mvn -DskipTests package” first, just to do code generation. When you’ve built once intellij can handle incremental builds of java code.

Maybe you need to start from a clean sandbox.

Julian

> On Jan 7, 2017, at 9:45 PM, Atri Sharma <at...@gmail.com> wrote:
> 
> I tried doing that but I got an error saying g that a couple of
> dependencies were not resolved (linq4j for one). I built using mvn install.
> 
> Anything I need to explicitly load please ?
> 
> On 08-Jan-2017 11:11 AM, "Julian Hyde" <jh...@apache.org> wrote:
> 
>> Very easy. Just click on the method name or class name and type
>> alt-shift-f9 (debug on the Run menu). You don’t need to “attach”.
>> 
>>> On Jan 7, 2017, at 1:27 AM, Atri Sharma <at...@gmail.com> wrote:
>>> 
>>> Hi All,
>>> 
>>> I wanted to check on how to run Calcite tests and attach debugger in
>>> tests in Intellij.
>>> 
>>> Please advise.
>>> 
>>> Regards,
>>> 
>>> Atri
>> 
>> 


Re: Running and debugging tests in Calcite

Posted by Atri Sharma <at...@gmail.com>.
I tried doing that but I got an error saying g that a couple of
dependencies were not resolved (linq4j for one). I built using mvn install.

Anything I need to explicitly load please ?

On 08-Jan-2017 11:11 AM, "Julian Hyde" <jh...@apache.org> wrote:

> Very easy. Just click on the method name or class name and type
> alt-shift-f9 (debug on the Run menu). You don’t need to “attach”.
>
> > On Jan 7, 2017, at 1:27 AM, Atri Sharma <at...@gmail.com> wrote:
> >
> > Hi All,
> >
> > I wanted to check on how to run Calcite tests and attach debugger in
> > tests in Intellij.
> >
> > Please advise.
> >
> > Regards,
> >
> > Atri
>
>

Re: Running and debugging tests in Calcite

Posted by Julian Hyde <jh...@apache.org>.
Very easy. Just click on the method name or class name and type alt-shift-f9 (debug on the Run menu). You don’t need to “attach”.

> On Jan 7, 2017, at 1:27 AM, Atri Sharma <at...@gmail.com> wrote:
> 
> Hi All,
> 
> I wanted to check on how to run Calcite tests and attach debugger in
> tests in Intellij.
> 
> Please advise.
> 
> Regards,
> 
> Atri