You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Zohaib Baig <zo...@venturedive.com> on 2019/12/27 07:20:05 UTC
Intellij Issue in Imports
Hi,
According to the documentation, I have setup Beam project from scratch in
IntelliJ. Seems like some files have issues in imports and were not able to
build, eventually, I wasn't able to test it through IDE (Working On
Windows).
Is there any other configuration that I am missing?
Thank you.
[image: image.png]
--
*Muhammad Zohaib Baig*
Senior Software Engineer
Mobile: +92 3443060266
Skype: mzobii.baig
<http://venturedive.com/>
Re: Intellij Issue in Imports
Posted by Kirill Kozlov <ki...@google.com>.
Hi Zohaib,
What command are you using to build and run the project?
Does building from command line work?
Try checking for problems via "File -> Project Structure -> Problems".
Intellij setup notes can be found here:
https://docs.google.com/document/d/18eXrO9IYll4oOnFb53EBhOtIfx-JLOinTWZSIBFkLk4/edit
On Thu, Dec 26, 2019 at 11:20 PM Zohaib Baig <zo...@venturedive.com>
wrote:
> Hi,
>
> According to the documentation, I have setup Beam project from scratch in
> IntelliJ. Seems like some files have issues in imports and were not able to
> build, eventually, I wasn't able to test it through IDE (Working On
> Windows).
>
> Is there any other configuration that I am missing?
>
> Thank you.
>
> [image: image.png]
>
>
>
> --
>
> *Muhammad Zohaib Baig*
> Senior Software Engineer
> Mobile: +92 3443060266 <+92%20344%203060266>
> Skype: mzobii.baig
>
> <http://venturedive.com/>
>
Re: Intellij Issue in Imports
Posted by Rehman Murad Ali <re...@venturedive.com>.
Thanks Max,
I just reverted my IntelliJ version to 2019.1. I was able to solve this by
following the "Setup IntelliJ from Scratch" guide.
*Rehman Murad Ali*
Software Engineer
Mobile: +92 3452076766
Skype: rehman.muradali
On Mon, Apr 27, 2020 at 4:10 PM Maximilian Michels <mx...@apache.org> wrote:
> That looks like you have not correctly imported the project.
>
> Make sure to select "Build and run using: Gradle" as well as "Run tests
> using: Gradle". Here are the settings I use:
>
>
> When importing, use "File -> New -> From Existing Sources", then select
> "Gradle".
>
> Cheers,
> Max
> On 27.04.20 11:57, Rehman Murad Ali wrote:
>
> Hello,
>
> I got stuck in a similar situation. I tried the solution suggested by Max
> but the situation is the same.
> The project is compiling from the command line.
> IntelliJ Version: 2019.3.4
> OS: Linux
>
> Thanks in advance.
>
> [image: image.png]
>
>
> *Rehman Murad Ali*
> Software Engineer
> Mobile: +92 3452076766
> Skype: rehman.muradali
>
>
> On Tue, Jan 7, 2020 at 7:02 PM Ismaël Mejía <ie...@gmail.com> wrote:
>
>> Maybe worth to contribute this info to the Beam IntelliJ docs if you have
>> time to Zohaib.
>>
>>
>> On Tue, Dec 31, 2019 at 7:14 AM Zohaib Baig <zo...@venturedive.com>
>> wrote:
>>
>>> Thank you Kirill and Maximilan for your reply. Solved the issue using
>>> "./gradlew clean" and then refresh the Gradle.
>>>
>>> Zohaib
>>>
>>> On Sun, Dec 29, 2019 at 6:07 PM Maximilian Michels <mx...@apache.org>
>>> wrote:
>>>
>>>> I have this issue from time to time when pulling in the latest master.
>>>> I've found that the only way to resolve this is to run "./gradlew clean",
>>>> then refresh the Gradle project inside IntelliJ and run "compileTestJava"
>>>> for the project which had the issues.
>>>>
>>>> Cheers,
>>>> Max
>>>>
>>>> On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig <
>>>> zohaib.baig@venturedive.com> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> According to the documentation, I have setup Beam project from scratch
>>>>> in IntelliJ. Seems like some files have issues in imports and were not
>>>>> able to build, eventually, I wasn't able to test it through IDE (Working On
>>>>> Windows).
>>>>>
>>>>> Is there any other configuration that I am missing?
>>>>>
>>>>> Thank you.
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>>
>>>>>
>>>
>>> --
>>>
>>> *Muhammad Zohaib Baig*
>>> Senior Software Engineer
>>> Mobile: +92 3443060266
>>> Skype: mzobii.baig
>>>
>>> <http://venturedive.com/>
>>>
>>
Re: Intellij Issue in Imports
Posted by Maximilian Michels <mx...@apache.org>.
That looks like you have not correctly imported the project.
Make sure to select "Build and run using: Gradle" as well as "Run tests
using: Gradle". Here are the settings I use:
When importing, use "File -> New -> From Existing Sources", then select
"Gradle".
Cheers,
Max
On 27.04.20 11:57, Rehman Murad Ali wrote:
> Hello,
>
> I got stuck in a similar situation. I tried the solution suggested by
> Max but the situation is the same.
> The project is compiling from the command line.
> IntelliJ Version: 2019.3.4
> OS: Linux
>
> Thanks in advance.
>
> image.png
>
>
> *Rehman Murad Ali*
> Software Engineer
> Mobile: +92 3452076766
> Skype: rehman.muradali
>
>
>
> On Tue, Jan 7, 2020 at 7:02 PM Ismaël Mejía <iemejia@gmail.com
> <ma...@gmail.com>> wrote:
>
> Maybe worth to contribute this info to the Beam IntelliJ docs if
> you have time to Zohaib.
>
>
> On Tue, Dec 31, 2019 at 7:14 AM Zohaib Baig
> <zohaib.baig@venturedive.com <ma...@venturedive.com>>
> wrote:
>
> Thank you Kirill and Maximilan for your reply. Solved the
> issue using "./gradlew clean" and then refresh the Gradle.
>
> Zohaib
>
> On Sun, Dec 29, 2019 at 6:07 PM Maximilian Michels
> <mxm@apache.org <ma...@apache.org>> wrote:
>
> I have this issue from time to time when pulling in the
> latest master. I've found that the only way to resolve
> this is to run "./gradlew clean", then refresh the Gradle
> project inside IntelliJ and run "compileTestJava" for the
> project which had the issues.
>
> Cheers,
> Max
>
> On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig
> <zohaib.baig@venturedive.com
> <ma...@venturedive.com>> wrote:
>
> Hi,
>
> According to the documentation, I have setup Beam
> project from scratch in IntelliJ. Seems like some
> files have issues in imports and were not able to
> build, eventually, I wasn't able to test it through
> IDE (Working On Windows).
>
> Is there any other configuration that I am missing?
>
> Thank you.
>
> image.png
>
>
>
>
> --
>
> *Muhammad Zohaib Baig*
> Senior Software Engineer
> Mobile: +92 3443060266
> Skype: mzobii.baig
>
> <http://venturedive.com/>
>
Re: Intellij Issue in Imports
Posted by Rehman Murad Ali <re...@venturedive.com>.
Hello,
I got stuck in a similar situation. I tried the solution suggested by Max
but the situation is the same.
The project is compiling from the command line.
IntelliJ Version: 2019.3.4
OS: Linux
Thanks in advance.
[image: image.png]
*Rehman Murad Ali*
Software Engineer
Mobile: +92 3452076766
Skype: rehman.muradali
On Tue, Jan 7, 2020 at 7:02 PM Ismaël Mejía <ie...@gmail.com> wrote:
> Maybe worth to contribute this info to the Beam IntelliJ docs if you have
> time to Zohaib.
>
>
> On Tue, Dec 31, 2019 at 7:14 AM Zohaib Baig <zo...@venturedive.com>
> wrote:
>
>> Thank you Kirill and Maximilan for your reply. Solved the issue using
>> "./gradlew clean" and then refresh the Gradle.
>>
>> Zohaib
>>
>> On Sun, Dec 29, 2019 at 6:07 PM Maximilian Michels <mx...@apache.org>
>> wrote:
>>
>>> I have this issue from time to time when pulling in the latest master.
>>> I've found that the only way to resolve this is to run "./gradlew clean",
>>> then refresh the Gradle project inside IntelliJ and run "compileTestJava"
>>> for the project which had the issues.
>>>
>>> Cheers,
>>> Max
>>>
>>> On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig <
>>> zohaib.baig@venturedive.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> According to the documentation, I have setup Beam project from scratch
>>>> in IntelliJ. Seems like some files have issues in imports and were not
>>>> able to build, eventually, I wasn't able to test it through IDE (Working On
>>>> Windows).
>>>>
>>>> Is there any other configuration that I am missing?
>>>>
>>>> Thank you.
>>>>
>>>> [image: image.png]
>>>>
>>>>
>>>>
>>
>> --
>>
>> *Muhammad Zohaib Baig*
>> Senior Software Engineer
>> Mobile: +92 3443060266
>> Skype: mzobii.baig
>>
>> <http://venturedive.com/>
>>
>
Re: Intellij Issue in Imports
Posted by Ismaël Mejía <ie...@gmail.com>.
Maybe worth to contribute this info to the Beam IntelliJ docs if you have
time to Zohaib.
On Tue, Dec 31, 2019 at 7:14 AM Zohaib Baig <zo...@venturedive.com>
wrote:
> Thank you Kirill and Maximilan for your reply. Solved the issue using
> "./gradlew clean" and then refresh the Gradle.
>
> Zohaib
>
> On Sun, Dec 29, 2019 at 6:07 PM Maximilian Michels <mx...@apache.org> wrote:
>
>> I have this issue from time to time when pulling in the latest master.
>> I've found that the only way to resolve this is to run "./gradlew clean",
>> then refresh the Gradle project inside IntelliJ and run "compileTestJava"
>> for the project which had the issues.
>>
>> Cheers,
>> Max
>>
>> On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig <
>> zohaib.baig@venturedive.com> wrote:
>>>
>>> Hi,
>>>
>>> According to the documentation, I have setup Beam project from scratch
>>> in IntelliJ. Seems like some files have issues in imports and were not
>>> able to build, eventually, I wasn't able to test it through IDE (Working On
>>> Windows).
>>>
>>> Is there any other configuration that I am missing?
>>>
>>> Thank you.
>>>
>>> [image: image.png]
>>>
>>>
>>>
>
> --
>
> *Muhammad Zohaib Baig*
> Senior Software Engineer
> Mobile: +92 3443060266
> Skype: mzobii.baig
>
> <http://venturedive.com/>
>
Re: Intellij Issue in Imports
Posted by Zohaib Baig <zo...@venturedive.com>.
Thank you Kirill and Maximilan for your reply. Solved the issue using
"./gradlew clean" and then refresh the Gradle.
Zohaib
On Sun, Dec 29, 2019 at 6:07 PM Maximilian Michels <mx...@apache.org> wrote:
> I have this issue from time to time when pulling in the latest master.
> I've found that the only way to resolve this is to run "./gradlew clean",
> then refresh the Gradle project inside IntelliJ and run "compileTestJava"
> for the project which had the issues.
>
> Cheers,
> Max
>
> On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig <
> zohaib.baig@venturedive.com> wrote:
>>
>> Hi,
>>
>> According to the documentation, I have setup Beam project from scratch
>> in IntelliJ. Seems like some files have issues in imports and were not
>> able to build, eventually, I wasn't able to test it through IDE (Working On
>> Windows).
>>
>> Is there any other configuration that I am missing?
>>
>> Thank you.
>>
>> [image: image.png]
>>
>>
>>
--
*Muhammad Zohaib Baig*
Senior Software Engineer
Mobile: +92 3443060266
Skype: mzobii.baig
<http://venturedive.com/>
Re: Intellij Issue in Imports
Posted by Maximilian Michels <mx...@apache.org>.
I have this issue from time to time when pulling in the latest master. I've found that the only way to resolve this is to run "./gradlew clean", then refresh the Gradle project inside IntelliJ and run "compileTestJava" for the project which had the issues.
Cheers,
Max
On December 27, 2019 8:20:05 AM GMT+01:00, Zohaib Baig <zo...@venturedive.com> wrote:
>Hi,
>
>According to the documentation, I have setup Beam project from scratch
>in
>IntelliJ. Seems like some files have issues in imports and were not
>able to
>build, eventually, I wasn't able to test it through IDE (Working On
>Windows).
>
>Is there any other configuration that I am missing?
>
>Thank you.
>
>[image: image.png]
>
>
>
>--
>
>*Muhammad Zohaib Baig*
>Senior Software Engineer
>Mobile: +92 3443060266
>Skype: mzobii.baig
>
><http://venturedive.com/>