Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Pavel Tupitsyn
Igniters,

The project does not seem to compile in IDEA:
there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
and both files get picked up by the IDE for some reason, resulting
in build errors.

I've done all the usual things (fresh clone, invalidate caches).
java-8 profile is enabled, java-9+ disabled, only JDK 8 is installed.
Maven build is fine, only IDEA gives me errors.

I've seen some people just delete one of the IgniteLinkTaglet files,
this works for me too but is quite inconvenient.
Is there any trick to this?
Reply | Threaded
Open this post in threaded view
|

Re: Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Ivan Bessonov
Hi Pavel,

please go to "Project Structure | Project Settings | Modules",
find module "ignite-tools", open tab "Sources" and mark folder
"src/main/java11" as "excluded". Should help.

This happens from time to time if you switch from a very old branch
(like "ignite-2.5") to a fresh branch like "master".

вс, 9 авг. 2020 г. в 21:18, Pavel Tupitsyn <[hidden email]>:

> Igniters,
>
> The project does not seem to compile in IDEA:
> there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
> and both files get picked up by the IDE for some reason, resulting
> in build errors.
>
> I've done all the usual things (fresh clone, invalidate caches).
> java-8 profile is enabled, java-9+ disabled, only JDK 8 is installed.
> Maven build is fine, only IDEA gives me errors.
>
> I've seen some people just delete one of the IgniteLinkTaglet files,
> this works for me too but is quite inconvenient.
> Is there any trick to this?
>


--
Sincerely yours,
Ivan Bessonov
Reply | Threaded
Open this post in threaded view
|

Re: Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Pavel Tupitsyn
Ivan,

Thanks for the suggestion. Unfortunately, it does not help -
Idea does not let me apply the changes:

`Content root "/home/pavel/w/ignite" is defined for modules "apache-ignite"
and "ignite".
Two modules in a project cannot share the same content root.`

Clearly I'm doing something wrong - maybe I'm importing the project into
Idea in a wrong way?
Or should I use a different JDK? Which version is best for Ignite
development right now?
(I'm using OpenJDK 8 just out of habit)


On Mon, Aug 10, 2020 at 10:02 AM Ivan Bessonov <[hidden email]>
wrote:

> Hi Pavel,
>
> please go to "Project Structure | Project Settings | Modules",
> find module "ignite-tools", open tab "Sources" and mark folder
> "src/main/java11" as "excluded". Should help.
>
> This happens from time to time if you switch from a very old branch
> (like "ignite-2.5") to a fresh branch like "master".
>
> вс, 9 авг. 2020 г. в 21:18, Pavel Tupitsyn <[hidden email]>:
>
> > Igniters,
> >
> > The project does not seem to compile in IDEA:
> > there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
> > and both files get picked up by the IDE for some reason, resulting
> > in build errors.
> >
> > I've done all the usual things (fresh clone, invalidate caches).
> > java-8 profile is enabled, java-9+ disabled, only JDK 8 is installed.
> > Maven build is fine, only IDEA gives me errors.
> >
> > I've seen some people just delete one of the IgniteLinkTaglet files,
> > this works for me too but is quite inconvenient.
> > Is there any trick to this?
> >
>
>
> --
> Sincerely yours,
> Ivan Bessonov
>
Reply | Threaded
Open this post in threaded view
|

Re: Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Ivan Bessonov
Hi Pavel,

this issue is unrelated to your problem, but yes, it wouldn't allow you to
save changes.
This sucks. You should remove one of those modules in your settings, they
point on
the same pom.xml, this means that this is the same module twice in your
settings.

пн, 10 авг. 2020 г. в 11:24, Pavel Tupitsyn <[hidden email]>:

> Ivan,
>
> Thanks for the suggestion. Unfortunately, it does not help -
> Idea does not let me apply the changes:
>
> `Content root "/home/pavel/w/ignite" is defined for modules "apache-ignite"
> and "ignite".
> Two modules in a project cannot share the same content root.`
>
> Clearly I'm doing something wrong - maybe I'm importing the project into
> Idea in a wrong way?
> Or should I use a different JDK? Which version is best for Ignite
> development right now?
> (I'm using OpenJDK 8 just out of habit)
>
>
> On Mon, Aug 10, 2020 at 10:02 AM Ivan Bessonov <[hidden email]>
> wrote:
>
> > Hi Pavel,
> >
> > please go to "Project Structure | Project Settings | Modules",
> > find module "ignite-tools", open tab "Sources" and mark folder
> > "src/main/java11" as "excluded". Should help.
> >
> > This happens from time to time if you switch from a very old branch
> > (like "ignite-2.5") to a fresh branch like "master".
> >
> > вс, 9 авг. 2020 г. в 21:18, Pavel Tupitsyn <[hidden email]>:
> >
> > > Igniters,
> > >
> > > The project does not seem to compile in IDEA:
> > > there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
> > > and both files get picked up by the IDE for some reason, resulting
> > > in build errors.
> > >
> > > I've done all the usual things (fresh clone, invalidate caches).
> > > java-8 profile is enabled, java-9+ disabled, only JDK 8 is installed.
> > > Maven build is fine, only IDEA gives me errors.
> > >
> > > I've seen some people just delete one of the IgniteLinkTaglet files,
> > > this works for me too but is quite inconvenient.
> > > Is there any trick to this?
> > >
> >
> >
> > --
> > Sincerely yours,
> > Ivan Bessonov
> >
>


--
Sincerely yours,
Ivan Bessonov
Reply | Threaded
Open this post in threaded view
|

Re: Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Anton Kalashnikov
Hi Pavel,

You can do the same action in Project tree -> right button on java11 -> Mark directory as -> excluded

-- 
Best regards,
Anton Kalashnikov



10.08.2020, 11:34, "Ivan Bessonov" <[hidden email]>:

> Hi Pavel,
>
> this issue is unrelated to your problem, but yes, it wouldn't allow you to
> save changes.
> This sucks. You should remove one of those modules in your settings, they
> point on
> the same pom.xml, this means that this is the same module twice in your
> settings.
>
> пн, 10 авг. 2020 г. в 11:24, Pavel Tupitsyn <[hidden email]>:
>
>>  Ivan,
>>
>>  Thanks for the suggestion. Unfortunately, it does not help -
>>  Idea does not let me apply the changes:
>>
>>  `Content root "/home/pavel/w/ignite" is defined for modules "apache-ignite"
>>  and "ignite".
>>  Two modules in a project cannot share the same content root.`
>>
>>  Clearly I'm doing something wrong - maybe I'm importing the project into
>>  Idea in a wrong way?
>>  Or should I use a different JDK? Which version is best for Ignite
>>  development right now?
>>  (I'm using OpenJDK 8 just out of habit)
>>
>>  On Mon, Aug 10, 2020 at 10:02 AM Ivan Bessonov <[hidden email]>
>>  wrote:
>>
>>  > Hi Pavel,
>>  >
>>  > please go to "Project Structure | Project Settings | Modules",
>>  > find module "ignite-tools", open tab "Sources" and mark folder
>>  > "src/main/java11" as "excluded". Should help.
>>  >
>>  > This happens from time to time if you switch from a very old branch
>>  > (like "ignite-2.5") to a fresh branch like "master".
>>  >
>>  > вс, 9 авг. 2020 г. в 21:18, Pavel Tupitsyn <[hidden email]>:
>>  >
>>  > > Igniters,
>>  > >
>>  > > The project does not seem to compile in IDEA:
>>  > > there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
>>  > > and both files get picked up by the IDE for some reason, resulting
>>  > > in build errors.
>>  > >
>>  > > I've done all the usual things (fresh clone, invalidate caches).
>>  > > java-8 profile is enabled, java-9+ disabled, only JDK 8 is installed.
>>  > > Maven build is fine, only IDEA gives me errors.
>>  > >
>>  > > I've seen some people just delete one of the IgniteLinkTaglet files,
>>  > > this works for me too but is quite inconvenient.
>>  > > Is there any trick to this?
>>  > >
>>  >
>>  >
>>  > --
>>  > Sincerely yours,
>>  > Ivan Bessonov
>>  >
>
> --
> Sincerely yours,
> Ivan Bessonov
Reply | Threaded
Open this post in threaded view
|

Re: Ignite compilation fails in IntelliJ IDEA (IgniteLinkTaglet)

Pavel Tupitsyn
Anton, this worked, thank you!

On Mon, Aug 10, 2020 at 1:06 PM Anton Kalashnikov <[hidden email]> wrote:

> Hi Pavel,
>
> You can do the same action in Project tree -> right button on java11 ->
> Mark directory as -> excluded
>
> --
> Best regards,
> Anton Kalashnikov
>
>
>
> 10.08.2020, 11:34, "Ivan Bessonov" <[hidden email]>:
> > Hi Pavel,
> >
> > this issue is unrelated to your problem, but yes, it wouldn't allow you
> to
> > save changes.
> > This sucks. You should remove one of those modules in your settings, they
> > point on
> > the same pom.xml, this means that this is the same module twice in your
> > settings.
> >
> > пн, 10 авг. 2020 г. в 11:24, Pavel Tupitsyn <[hidden email]>:
> >
> >>  Ivan,
> >>
> >>  Thanks for the suggestion. Unfortunately, it does not help -
> >>  Idea does not let me apply the changes:
> >>
> >>  `Content root "/home/pavel/w/ignite" is defined for modules
> "apache-ignite"
> >>  and "ignite".
> >>  Two modules in a project cannot share the same content root.`
> >>
> >>  Clearly I'm doing something wrong - maybe I'm importing the project
> into
> >>  Idea in a wrong way?
> >>  Or should I use a different JDK? Which version is best for Ignite
> >>  development right now?
> >>  (I'm using OpenJDK 8 just out of habit)
> >>
> >>  On Mon, Aug 10, 2020 at 10:02 AM Ivan Bessonov <[hidden email]>
> >>  wrote:
> >>
> >>  > Hi Pavel,
> >>  >
> >>  > please go to "Project Structure | Project Settings | Modules",
> >>  > find module "ignite-tools", open tab "Sources" and mark folder
> >>  > "src/main/java11" as "excluded". Should help.
> >>  >
> >>  > This happens from time to time if you switch from a very old branch
> >>  > (like "ignite-2.5") to a fresh branch like "master".
> >>  >
> >>  > вс, 9 авг. 2020 г. в 21:18, Pavel Tupitsyn <[hidden email]>:
> >>  >
> >>  > > Igniters,
> >>  > >
> >>  > > The project does not seem to compile in IDEA:
> >>  > > there are two IgniteLinkTaglet versions for Java 8 and Java 9+,
> >>  > > and both files get picked up by the IDE for some reason, resulting
> >>  > > in build errors.
> >>  > >
> >>  > > I've done all the usual things (fresh clone, invalidate caches).
> >>  > > java-8 profile is enabled, java-9+ disabled, only JDK 8 is
> installed.
> >>  > > Maven build is fine, only IDEA gives me errors.
> >>  > >
> >>  > > I've seen some people just delete one of the IgniteLinkTaglet
> files,
> >>  > > this works for me too but is quite inconvenient.
> >>  > > Is there any trick to this?
> >>  > >
> >>  >
> >>  >
> >>  > --
> >>  > Sincerely yours,
> >>  > Ivan Bessonov
> >>  >
> >
> > --
> > Sincerely yours,
> > Ivan Bessonov
>