Re: Issues getting IntelliJ set up

2014-08-04 Thread Jonathan Natkins
Yep, it looks like you win the game. Managed to get a test running by doing
this. Thanks a bunch, Gwen!


On Mon, Aug 4, 2014 at 1:57 PM, Gwen Shapira  wrote:

> I think I found it :)
>
> Go to "project settings"
> Pick your module (I picked "core")
> "Paths" tab
> And change the paths to:
> /Users/Natty/apache/kafka-new/core/build/classes/main
> and
> /Users/Natty/apache/kafka-new/core/build/classes/test
>
> Don't use the project inherited paths, because we have a build dir per
> module.
>
> Gwen
>
> On Mon, Aug 4, 2014 at 12:54 PM, Jonathan Natkins 
> wrote:
> > I did. I actually tried this from a completely clean repo (cloned a new
> > repo from github, changed gradle.properties, ran `gradlew idea`, then
> > imported into IntelliJ)
> >
> >
> > On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen  wrote:
> >
> >> Hi Johnathan,
> >>
> >> Did you update your scala version before you run gradle idea?
> >>
> >> Also try cleaning up all the artifacts and try it again, as perhaps
> >> your intellij is not picking up the right version and from the right
> >> build folder.
> >>
> >> Tim
> >>
> >> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins  >
> >> wrote:
> >> > Hi,
> >> >
> >> > I've been having some issues getting IntelliJ set up...I followed all
> the
> >> > instructions on the wiki, and I've successfully imported the project,
> and
> >> > run the jar Gradle target successfully. However, when I try to run a
> test
> >> > in the IDE, I get a number of errors:
> >> >
> >> >
> >>
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> >> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
> >> > Error:(22, 22) java: package kafka.producer does not exist
> >> > Error:(23, 22) java: package kafka.producer does not exist
> >> > Error:(24, 19) java: cannot find symbol
> >> >   symbol:   class Utils
> >> >   location: package kafka.utils
> >> > Error:(303, 39) java: cannot find symbol
> >> >   symbol:   class KeyedMessage
> >> >   location: class kafka.tools.KafkaMigrationTool.MigrationThread
> >> >
> >> > And so on.
> >> >
> >> > The two classes that seem to be causing trouble are KafkaMigrationTool
> >> and
> >> > ConsumerConnector. Has anybody run into this? Anyone know how to get
> >> around
> >> > this issue?
> >> >
> >> > Thanks a lot,
> >> > Natty
> >>
>


Re: Issues getting IntelliJ set up

2014-08-04 Thread Gwen Shapira
I think I found it :)

Go to "project settings"
Pick your module (I picked "core")
"Paths" tab
And change the paths to:
/Users/Natty/apache/kafka-new/core/build/classes/main
and
/Users/Natty/apache/kafka-new/core/build/classes/test

Don't use the project inherited paths, because we have a build dir per module.

Gwen

On Mon, Aug 4, 2014 at 12:54 PM, Jonathan Natkins  wrote:
> I did. I actually tried this from a completely clean repo (cloned a new
> repo from github, changed gradle.properties, ran `gradlew idea`, then
> imported into IntelliJ)
>
>
> On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen  wrote:
>
>> Hi Johnathan,
>>
>> Did you update your scala version before you run gradle idea?
>>
>> Also try cleaning up all the artifacts and try it again, as perhaps
>> your intellij is not picking up the right version and from the right
>> build folder.
>>
>> Tim
>>
>> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins 
>> wrote:
>> > Hi,
>> >
>> > I've been having some issues getting IntelliJ set up...I followed all the
>> > instructions on the wiki, and I've successfully imported the project, and
>> > run the jar Gradle target successfully. However, when I try to run a test
>> > in the IDE, I get a number of errors:
>> >
>> >
>> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
>> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
>> > Error:(22, 22) java: package kafka.producer does not exist
>> > Error:(23, 22) java: package kafka.producer does not exist
>> > Error:(24, 19) java: cannot find symbol
>> >   symbol:   class Utils
>> >   location: package kafka.utils
>> > Error:(303, 39) java: cannot find symbol
>> >   symbol:   class KeyedMessage
>> >   location: class kafka.tools.KafkaMigrationTool.MigrationThread
>> >
>> > And so on.
>> >
>> > The two classes that seem to be causing trouble are KafkaMigrationTool
>> and
>> > ConsumerConnector. Has anybody run into this? Anyone know how to get
>> around
>> > this issue?
>> >
>> > Thanks a lot,
>> > Natty
>>


Re: Issues getting IntelliJ set up

2014-08-04 Thread Jonathan Natkins
I did. I actually tried this from a completely clean repo (cloned a new
repo from github, changed gradle.properties, ran `gradlew idea`, then
imported into IntelliJ)


On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen  wrote:

> Hi Johnathan,
>
> Did you update your scala version before you run gradle idea?
>
> Also try cleaning up all the artifacts and try it again, as perhaps
> your intellij is not picking up the right version and from the right
> build folder.
>
> Tim
>
> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins 
> wrote:
> > Hi,
> >
> > I've been having some issues getting IntelliJ set up...I followed all the
> > instructions on the wiki, and I've successfully imported the project, and
> > run the jar Gradle target successfully. However, when I try to run a test
> > in the IDE, I get a number of errors:
> >
> >
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
> > Error:(22, 22) java: package kafka.producer does not exist
> > Error:(23, 22) java: package kafka.producer does not exist
> > Error:(24, 19) java: cannot find symbol
> >   symbol:   class Utils
> >   location: package kafka.utils
> > Error:(303, 39) java: cannot find symbol
> >   symbol:   class KeyedMessage
> >   location: class kafka.tools.KafkaMigrationTool.MigrationThread
> >
> > And so on.
> >
> > The two classes that seem to be causing trouble are KafkaMigrationTool
> and
> > ConsumerConnector. Has anybody run into this? Anyone know how to get
> around
> > this issue?
> >
> > Thanks a lot,
> > Natty
>


Re: Issues getting IntelliJ set up

2014-08-04 Thread Timothy Chen
Hi Johnathan,

Did you update your scala version before you run gradle idea?

Also try cleaning up all the artifacts and try it again, as perhaps
your intellij is not picking up the right version and from the right
build folder.

Tim

On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins  wrote:
> Hi,
>
> I've been having some issues getting IntelliJ set up...I followed all the
> instructions on the wiki, and I've successfully imported the project, and
> run the jar Gradle target successfully. However, when I try to run a test
> in the IDE, I get a number of errors:
>
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> Error:(21, 30) java: package kafka.javaapi.producer does not exist
> Error:(22, 22) java: package kafka.producer does not exist
> Error:(23, 22) java: package kafka.producer does not exist
> Error:(24, 19) java: cannot find symbol
>   symbol:   class Utils
>   location: package kafka.utils
> Error:(303, 39) java: cannot find symbol
>   symbol:   class KeyedMessage
>   location: class kafka.tools.KafkaMigrationTool.MigrationThread
>
> And so on.
>
> The two classes that seem to be causing trouble are KafkaMigrationTool and
> ConsumerConnector. Has anybody run into this? Anyone know how to get around
> this issue?
>
> Thanks a lot,
> Natty


Issues getting IntelliJ set up

2014-08-04 Thread Jonathan Natkins
Hi,

I've been having some issues getting IntelliJ set up...I followed all the
instructions on the wiki, and I've successfully imported the project, and
run the jar Gradle target successfully. However, when I try to run a test
in the IDE, I get a number of errors:

/Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
Error:(21, 30) java: package kafka.javaapi.producer does not exist
Error:(22, 22) java: package kafka.producer does not exist
Error:(23, 22) java: package kafka.producer does not exist
Error:(24, 19) java: cannot find symbol
  symbol:   class Utils
  location: package kafka.utils
Error:(303, 39) java: cannot find symbol
  symbol:   class KeyedMessage
  location: class kafka.tools.KafkaMigrationTool.MigrationThread

And so on.

The two classes that seem to be causing trouble are KafkaMigrationTool and
ConsumerConnector. Has anybody run into this? Anyone know how to get around
this issue?

Thanks a lot,
Natty