You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Gavin Ray <ra...@gmail.com> on 2022/02/09 15:53:21 UTC
Re: Failed to import gradle
Submitted a PR and Jira issue for this =)
On Thu, Jan 27, 2022 at 6:44 PM Julian Hyde <jh...@gmail.com> wrote:
> Can someone log a bug for this?
>
> I don’t run into it personally. (I just click open on the directory. I
> never invoke ‘import gradle’.) But people shouldn’t have to edit their
> Gradle files.
>
>
>
> > On Jan 27, 2022, at 6:55 AM, Gavin Ray <ra...@gmail.com> wrote:
> >
> > It didn't work for me either.
> >
> > I had to remove some of the Gradle tasks, related to checks IIRC.
> > What I did that made it work was:
> >
> > 1. Modify "gradle.properties" in the root of the repo, adding the
> following
> > line:
> >
> > skipAutostyle=true
> >
> > 2. Modify every instance of
> > "val skipAutostyle by props()"
> > to
> > "val skipAutostyle by props(true)"
> > in the Gradle build files
> >
> > (This line exists in "build.gradle.kts" and "buildSrc/build.gradle.kts")
> >
> > 3. Commented out the CheckStyle task in "core/build.gradle.kts"
> >
> > //tasks.withType<Checkstyle>().configureEach {
> > // mustRunAfter(versionClass)
> > // mustRunAfter(javaCCMain)
> > // mustRunAfter(javaCCTest)
> > //}
> >
> > 4. Commented out "releaseArtifacts" plugin in "release/build.gradle.kts"
> >
> > // releaseArtifacts {
> > // artifact(archiveTask)
> > // }
> >
> >
> > My git status looks like:
> >
> > user@MSI:~/projects/calcite$ git status
> > modified: build.gradle.kts
> > modified: buildSrc/build.gradle.kts
> > modified: core/build.gradle.kts
> > modified: gradle.properties
> > modified: release/build.gradle.kts
> >
> > Hope this helps =)
> >
> > On Thu, Jan 27, 2022 at 4:03 AM Thomas Rebele <trebele@tibco.com.invalid
> >
> > wrote:
> >
> >> Hello,
> >>
> >> the Calcite mailing list removes pictures. Could you please post the
> error
> >> message in text form?
> >>
> >> Cordialement / Best Regards,
> >> *Thomas Rebele, PhD* | R&D Developer | Germany | www.tibco.com
> >>
> >>
> >> On Thu, Jan 27, 2022 at 7:38 AM Aitozi <gj...@gmail.com> wrote:
> >>
> >>> Hi community:
> >>> I'm new to calcite community and gradle. When I followed the
> Howto.md
> >>> to import the calcite project, It always failed with the following
> error.
> >>> After some search in Google and calcite dev mail list, I stiil can't
> not
> >>> figure it out. Is there anyone can help me out? thanks in advance
> >>>
> >>> [image: image.png]
> >>> The version of the intellij IDEA is 2021.1.3.
> >>>
> >>> Atiozi.
> >>>
> >>
>
>
Re: Failed to import gradle
Posted by Julian Hyde <jh...@gmail.com>.
Thanks for the update!
> On Feb 14, 2022, at 11:46 PM, Aitozi <gj...@gmail.com> wrote:
>
> Hi Julian&Gravin
>
> Sorry for the late response, I tried the solution posted by Gravin, The
> IDE can work with calcite project now. The changed files are
>
> modified: .idea/vcs.xml
> modified: build.gradle.kts
> modified: buildSrc/build.gradle.kts
> modified: core/build.gradle.kts
> modified: gradle.properties
> modified: release/build.gradle.kts
>
> I want to reproduce it by git stash and reopen the project, but it failed
> to reproduce.
>
> The error log before is :
>
> Unresolved reference: implementation :29
> Unresolved reference: implementation :30
> Unresolved reference: testimplementation:32
> Unresolved reference: testImplementation:33
> Unresolved reference: testimplementation:34
> Unresolved reference: testimplementation:35
> Unresolved reference: testimplementation:36
> Unresolved reference: testRuntime Only :38
> Unresolved reference: source Sets > Configure project :cassandra:68
> ...
>
> So now the problem is magically disappeared. If I can reproduce again, I
> will create a ticket for it.
>
> Thanks
> Aitozi
>
>
> Gavin Ray <ra...@gmail.com> 于2022年2月9日周三 23:53写道:
>
>> Submitted a PR and Jira issue for this =)
>>
>> On Thu, Jan 27, 2022 at 6:44 PM Julian Hyde <jh...@gmail.com>
>> wrote:
>>
>>> Can someone log a bug for this?
>>>
>>> I don’t run into it personally. (I just click open on the directory. I
>>> never invoke ‘import gradle’.) But people shouldn’t have to edit their
>>> Gradle files.
>>>
>>>
>>>
>>>> On Jan 27, 2022, at 6:55 AM, Gavin Ray <ra...@gmail.com> wrote:
>>>>
>>>> It didn't work for me either.
>>>>
>>>> I had to remove some of the Gradle tasks, related to checks IIRC.
>>>> What I did that made it work was:
>>>>
>>>> 1. Modify "gradle.properties" in the root of the repo, adding the
>>> following
>>>> line:
>>>>
>>>> skipAutostyle=true
>>>>
>>>> 2. Modify every instance of
>>>> "val skipAutostyle by props()"
>>>> to
>>>> "val skipAutostyle by props(true)"
>>>> in the Gradle build files
>>>>
>>>> (This line exists in "build.gradle.kts" and
>> "buildSrc/build.gradle.kts")
>>>>
>>>> 3. Commented out the CheckStyle task in "core/build.gradle.kts"
>>>>
>>>> //tasks.withType<Checkstyle>().configureEach {
>>>> // mustRunAfter(versionClass)
>>>> // mustRunAfter(javaCCMain)
>>>> // mustRunAfter(javaCCTest)
>>>> //}
>>>>
>>>> 4. Commented out "releaseArtifacts" plugin in
>> "release/build.gradle.kts"
>>>>
>>>> // releaseArtifacts {
>>>> // artifact(archiveTask)
>>>> // }
>>>>
>>>>
>>>> My git status looks like:
>>>>
>>>> user@MSI:~/projects/calcite$ git status
>>>> modified: build.gradle.kts
>>>> modified: buildSrc/build.gradle.kts
>>>> modified: core/build.gradle.kts
>>>> modified: gradle.properties
>>>> modified: release/build.gradle.kts
>>>>
>>>> Hope this helps =)
>>>>
>>>> On Thu, Jan 27, 2022 at 4:03 AM Thomas Rebele
>> <trebele@tibco.com.invalid
>>>>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> the Calcite mailing list removes pictures. Could you please post the
>>> error
>>>>> message in text form?
>>>>>
>>>>> Cordialement / Best Regards,
>>>>> *Thomas Rebele, PhD* | R&D Developer | Germany | www.tibco.com
>>>>>
>>>>>
>>>>> On Thu, Jan 27, 2022 at 7:38 AM Aitozi <gj...@gmail.com> wrote:
>>>>>
>>>>>> Hi community:
>>>>>> I'm new to calcite community and gradle. When I followed the
>>> Howto.md
>>>>>> to import the calcite project, It always failed with the following
>>> error.
>>>>>> After some search in Google and calcite dev mail list, I stiil can't
>>> not
>>>>>> figure it out. Is there anyone can help me out? thanks in advance
>>>>>>
>>>>>> [image: image.png]
>>>>>> The version of the intellij IDEA is 2021.1.3.
>>>>>>
>>>>>> Atiozi.
>>>>>>
>>>>>
>>>
>>>
>>
Re: Failed to import gradle
Posted by Aitozi <gj...@gmail.com>.
Hi Julian&Gravin
Sorry for the late response, I tried the solution posted by Gravin, The
IDE can work with calcite project now. The changed files are
modified: .idea/vcs.xml
modified: build.gradle.kts
modified: buildSrc/build.gradle.kts
modified: core/build.gradle.kts
modified: gradle.properties
modified: release/build.gradle.kts
I want to reproduce it by git stash and reopen the project, but it failed
to reproduce.
The error log before is :
Unresolved reference: implementation :29
Unresolved reference: implementation :30
Unresolved reference: testimplementation:32
Unresolved reference: testImplementation:33
Unresolved reference: testimplementation:34
Unresolved reference: testimplementation:35
Unresolved reference: testimplementation:36
Unresolved reference: testRuntime Only :38
Unresolved reference: source Sets > Configure project :cassandra:68
...
So now the problem is magically disappeared. If I can reproduce again, I
will create a ticket for it.
Thanks
Aitozi
Gavin Ray <ra...@gmail.com> 于2022年2月9日周三 23:53写道:
> Submitted a PR and Jira issue for this =)
>
> On Thu, Jan 27, 2022 at 6:44 PM Julian Hyde <jh...@gmail.com>
> wrote:
>
> > Can someone log a bug for this?
> >
> > I don’t run into it personally. (I just click open on the directory. I
> > never invoke ‘import gradle’.) But people shouldn’t have to edit their
> > Gradle files.
> >
> >
> >
> > > On Jan 27, 2022, at 6:55 AM, Gavin Ray <ra...@gmail.com> wrote:
> > >
> > > It didn't work for me either.
> > >
> > > I had to remove some of the Gradle tasks, related to checks IIRC.
> > > What I did that made it work was:
> > >
> > > 1. Modify "gradle.properties" in the root of the repo, adding the
> > following
> > > line:
> > >
> > > skipAutostyle=true
> > >
> > > 2. Modify every instance of
> > > "val skipAutostyle by props()"
> > > to
> > > "val skipAutostyle by props(true)"
> > > in the Gradle build files
> > >
> > > (This line exists in "build.gradle.kts" and
> "buildSrc/build.gradle.kts")
> > >
> > > 3. Commented out the CheckStyle task in "core/build.gradle.kts"
> > >
> > > //tasks.withType<Checkstyle>().configureEach {
> > > // mustRunAfter(versionClass)
> > > // mustRunAfter(javaCCMain)
> > > // mustRunAfter(javaCCTest)
> > > //}
> > >
> > > 4. Commented out "releaseArtifacts" plugin in
> "release/build.gradle.kts"
> > >
> > > // releaseArtifacts {
> > > // artifact(archiveTask)
> > > // }
> > >
> > >
> > > My git status looks like:
> > >
> > > user@MSI:~/projects/calcite$ git status
> > > modified: build.gradle.kts
> > > modified: buildSrc/build.gradle.kts
> > > modified: core/build.gradle.kts
> > > modified: gradle.properties
> > > modified: release/build.gradle.kts
> > >
> > > Hope this helps =)
> > >
> > > On Thu, Jan 27, 2022 at 4:03 AM Thomas Rebele
> <trebele@tibco.com.invalid
> > >
> > > wrote:
> > >
> > >> Hello,
> > >>
> > >> the Calcite mailing list removes pictures. Could you please post the
> > error
> > >> message in text form?
> > >>
> > >> Cordialement / Best Regards,
> > >> *Thomas Rebele, PhD* | R&D Developer | Germany | www.tibco.com
> > >>
> > >>
> > >> On Thu, Jan 27, 2022 at 7:38 AM Aitozi <gj...@gmail.com> wrote:
> > >>
> > >>> Hi community:
> > >>> I'm new to calcite community and gradle. When I followed the
> > Howto.md
> > >>> to import the calcite project, It always failed with the following
> > error.
> > >>> After some search in Google and calcite dev mail list, I stiil can't
> > not
> > >>> figure it out. Is there anyone can help me out? thanks in advance
> > >>>
> > >>> [image: image.png]
> > >>> The version of the intellij IDEA is 2021.1.3.
> > >>>
> > >>> Atiozi.
> > >>>
> > >>
> >
> >
>