Re: How to use IntelliJ debug code generated by janino?

2023-01-25 Thread Benchao Li
Hi guangyuan, I've created a PR[1] for CALCITE-5442. You can try it now with this patch. [1] https://github.com/apache/calcite/pull/3045 Benchao Li 于2022年12月19日周一 20:47写道: > For the record, I've logged > https://issues.apache.org/jira/browse/CALCITE-5442 for this issue. > Contributions are

Re: How to use IntelliJ debug code generated by janino?

2022-12-19 Thread Benchao Li
For the record, I've logged https://issues.apache.org/jira/browse/CALCITE-5442 for this issue. Contributions are welcome. Benchao Li 于2022年12月16日周五 09:19写道: > Thanks Stamatis for mentioning of CALCITE-2196. > > +1 for doing it in other places, especially the EnumerableInterpretable. > It would

Re: How to use IntelliJ debug code generated by janino?

2022-12-15 Thread Benchao Li
Thanks Stamatis for mentioning of CALCITE-2196. +1 for doing it in other places, especially the EnumerableInterpretable. It would be much easier for starters to learn how Calcite works. Stamatis Zampetakis 于2022年12月16日周五 01:21写道: > The changes in Janino were done explicitly to allow debugging

Re: How to use IntelliJ debug code generated by janino?

2022-12-15 Thread Stamatis Zampetakis
The changes in Janino were done explicitly to allow debugging [1]. If necessary we can do the same in other places as well. Best, Stamatis [1] https://issues.apache.org/jira/browse/CALCITE-2196 On Thu, Dec 15, 2022 at 3:45 PM Benchao Li wrote: > Hi guangyuan, have you done this successfully

Re: How to use IntelliJ debug code generated by janino?

2022-12-15 Thread Benchao Li
Hi guangyuan, have you done this successfully now? >From my experience, this is not only a configuring problem. I'm not sure if anyone who really has done this before in IDEA. There are several places in Calcite which uses Janino for codegen, such as JaninoRelMetadataProvider[1] and

Re: How to use IntelliJ debug code generated by janino?

2022-12-12 Thread Alessandro Solimando
Hi, apache ML strips attachments, so it's normal we can't see it, you can either use an external system and link to them, or better describe with plain text so it's also searchable. Best regards, Alessandro On Mon, 12 Dec 2022 at 09:33, Zou Dan wrote: > Hi wangguangyuan > You could just right

Re: How to use IntelliJ debug code generated by janino?

2022-12-12 Thread Zou Dan
Hi wangguangyuan You could just right click the debug dir in IDEA and you could see the option: “Mark Directory as" -> "Generated Source Root" Best, Dan Zou > 2022年12月12日 16:19,guangyuan wang 写道: > > Hello Dan > Thank you very much. > And I'd like to know how could I configure the debug dir

Re: How to use IntelliJ debug code generated by janino?

2022-12-12 Thread guangyuan wang
Hello Dan Thank you very much. And I'd like to know how could I configure the debug dir as the "Generated Source Root"? "2. Mark the debug dir you configured in step 1 as the "Generated Source Root". Zou Dan 于2022年12月12日周一 15:33写道: > Hi wangguangyuan, the picture in your email are not displayed

Re: How to use IntelliJ debug code generated by janino?

2022-12-11 Thread Zou Dan
Hi wangguangyuan, the picture in your email are not displayed normally. And I used to debug the generated code in IDEA follow the steps below: 1. Add two debug configurations: "-Dorg.codehaus.janino.source_debugging.enable=true" and "-Dorg.codehaus.janino.source_debugging.dir=/your_own_path" 2.

How to use IntelliJ debug code generated by janino?

2022-12-10 Thread guangyuan wang
Dear all I am trying to use IntelliJ debug code generated by janino, according to the link: https://calcite.apache.org/docs/howto.html#debugging-generated-classes-in-intellij . But I can not step into the generated source code, just like this below. Only could see the