You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Kirk Lund <kl...@apache.org> on 2018/06/21 21:40:28 UTC
Resolving geode-pulse compilation errors in IntelliJ
After the recent Gradle upgrade, you might see some compilation errors in
IntelliJ involving geode-pulse such as the following:
/Users/klund/dev/gemfire/open/geode-pulse/src/main/java/org/
apache/geode/tools/pulse/internal/service/MemberDetailsService.java
Error:(28, 46) java: package org.springframework.context.annotation does
not exist
Error:(29, 38) java: package org.springframework.stereotype does not exist
Error:(30, 38) java: package org.springframework.stereotype does not exist
Error:(42, 2) java: cannot find symbol
symbol: class Component
Error:(43, 2) java: cannot find symbol
symbol: class Service
Error:(44, 2) java: cannot find symbol
symbol: class Scope
To resolve this, open:
Preferences -> Build, Execution, Deployment -> BuildTools -> Gradle
There you’ll see your Geode project under the “Linked Gradle projects” —
you need to select it and then deselect “Create separate module per source
set.”
This worked for me.
Thanks,
Kirk
Re: Resolving geode-pulse compilation errors in IntelliJ
Posted by Kirk Lund <kl...@apache.org>.
After resolving the compilation errors in geode-pulse, I see a failure
compiling buildSrc when I do an IntelliJ build...
/Users/klund/dev/gemfire_CLEAN/open/buildSrc/src/test/java/org/apache/geode/javac/TestCompiler.java
Error:(40, 23) java: cannot find symbol
symbol: class EnsureCorrectRunsWithProcessor
location: class org.apache.geode.javac.TestCompiler
Class EnsureCorrectRunsWithProcessor is in buildSrc. I'm not familiar with
buildSrc so I'm not sure if it even needs to be built within IntelliJ for
debugging Geode tests.
On Thu, Jun 21, 2018 at 2:40 PM, Kirk Lund <kl...@apache.org> wrote:
> After the recent Gradle upgrade, you might see some compilation errors in
> IntelliJ involving geode-pulse such as the following:
>
> /Users/klund/dev/gemfire/open/geode-pulse/src/main/java/org/
> apache/geode/tools/pulse/internal/service/MemberDetailsService.java
> Error:(28, 46) java: package org.springframework.context.annotation does
> not exist
> Error:(29, 38) java: package org.springframework.stereotype does not exist
> Error:(30, 38) java: package org.springframework.stereotype does not exist
> Error:(42, 2) java: cannot find symbol
> symbol: class Component
> Error:(43, 2) java: cannot find symbol
> symbol: class Service
> Error:(44, 2) java: cannot find symbol
> symbol: class Scope
>
> To resolve this, open:
>
> Preferences -> Build, Execution, Deployment -> BuildTools -> Gradle
>
> There you’ll see your Geode project under the “Linked Gradle projects” —
> you need to select it and then deselect “Create separate module per source
> set.”
>
> This worked for me.
>
> Thanks,
> Kirk
>