You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Emilian Bold <em...@gmail.com> on 2020/04/29 06:29:55 UTC

Gradle based project won't load. How to investigate it or see compiler output?

Hello,

I have a Gradle based project that won't load in any version of
NetBeans, including the 12 beta. The notification shown says:

> Compilation failed; see the compiler output for details.
> Execution failed for task: '<some build task>'
> Execution failed for task: '<some build task>'
> Could not run build action using Gradle installation '<path to gradle
wrapper dists/ folder>'

How does one go about investigating this problem?

For starters, I don't see anything in the output window or messages.log.

Where is the compiler output with the details?

A minor issue: the notification itself (being a Swing component) doesn't
allow you to copy-paste the error message.

--emi

Re: Gradle based project won't load. How to investigate it or see compiler output?

Posted by Fred Welland <fr...@gmail.com>.
Not sure if this will help....I did point this out to this list a
while back -- it didn't get traction.

 Comment applies to 11.3 - probably covers 12 too.

It seems 11.3 using Gradle 6x tooling api for stuff including build file
parsing/ingest.

My inventory of gradle projects in 20+; some are old using like g3x.

There are some gradle constructs used in older builds that are NOT
compatible with G6.

G6 wouldn't deal with it, and NB11.3 was even worse -- just really nothing
useful to say about the project/build when it couldn't load it.

I just got in habit of making sure G6x would at least tolerate my build
files (via CLI) before trying to load in NB 11.3.

(It would be great of NB could tolerate a wider set of G versions)







On Wed, Apr 29, 2020 at 2:30 AM Emilian Bold <em...@gmail.com> wrote:

> Hello,
>
> I have a Gradle based project that won't load in any version of
> NetBeans, including the 12 beta. The notification shown says:
>
> > Compilation failed; see the compiler output for details.
> > Execution failed for task: '<some build task>'
> > Execution failed for task: '<some build task>'
> > Could not run build action using Gradle installation '<path to gradle
> wrapper dists/ folder>'
>
> How does one go about investigating this problem?
>
> For starters, I don't see anything in the output window or messages.log.
>
> Where is the compiler output with the details?
>
> A minor issue: the notification itself (being a Swing component) doesn't
> allow you to copy-paste the error message.
>
> --emi
>

Re: Gradle based project won't load. How to investigate it or see compiler output?

Posted by Laszlo Kishalmi <la...@gmail.com>.
Hi Emi!


Could you make the build skeleton of the project zipped and added to a 
JIRA Issue, I'd be curious what is happening there.

Yes the notification is rendered to a JLabel. I could try to put that 
into an JEditor instead, to be selectable.

On 4/28/20 11:29 PM, Emilian Bold wrote:
> Hello,
>
> I have a Gradle based project that won't load in any version of 
> NetBeans, including the 12 beta. The notification shown says:
>
> > Compilation failed; see the compiler output for details.
> > Execution failed for task: '<some build task>'
> > Execution failed for task: '<some build task>'
> > Could not run build action using Gradle installation '<path to 
> gradle wrapper dists/ folder>'
>
> How does one go about investigating this problem?
>
> For starters, I don't see anything in the output window or messages.log.
>
> Where is the compiler output with the details?
>
> A minor issue: the notification itself (being a Swing component) 
> doesn't allow you to copy-paste the error message.
>
> --emi

Re: Gradle based project won't load. How to investigate it or see compiler output?

Posted by Emilian Bold <em...@gmail.com>.
This was using Gradle 6 and it seems after doing some more builds and then
configuring Gradle in the options NetBeans is able to load the project...

Odd thing is the IDE did detect the Gradle binary correctly so maybe the
repeat build finally produced something on disk?

It's a big project so I don't know / have time to produce a small sample
that reproduces the problem. I think this would be much easier to track
down if the compiler output would be saved somewhere by the Gradle project
support. It was failing in there for some reason but can't know what it
was. Maybe some -D property to dump this in an output window or in the log?

--emi

mie., 29 apr. 2020, 18:15 Peter Steele <st...@gmail.com> a scris:

> Run the build on the command line to see if it's a netbeans issue, if it
> is then run with With --info or --debug (logging levels) or with
> --stacktrace to get the stack trace info of the build failure.
>
> If it works on the command line then you need to setup gradle properly in
> netbeans.
>
> On Wed, 29 Apr 2020, 07:30 Emilian Bold, <em...@gmail.com> wrote:
>
>> Hello,
>>
>> I have a Gradle based project that won't load in any version of
>> NetBeans, including the 12 beta. The notification shown says:
>>
>> > Compilation failed; see the compiler output for details.
>> > Execution failed for task: '<some build task>'
>> > Execution failed for task: '<some build task>'
>> > Could not run build action using Gradle installation '<path to gradle
>> wrapper dists/ folder>'
>>
>> How does one go about investigating this problem?
>>
>> For starters, I don't see anything in the output window or messages.log.
>>
>> Where is the compiler output with the details?
>>
>> A minor issue: the notification itself (being a Swing component) doesn't
>> allow you to copy-paste the error message.
>>
>> --emi
>>
>

Re: Gradle based project won't load. How to investigate it or see compiler output?

Posted by Peter Steele <st...@gmail.com>.
Run the build on the command line to see if it's a netbeans issue, if it is
then run with With --info or --debug (logging levels) or with --stacktrace
to get the stack trace info of the build failure.

If it works on the command line then you need to setup gradle properly in
netbeans.

On Wed, 29 Apr 2020, 07:30 Emilian Bold, <em...@gmail.com> wrote:

> Hello,
>
> I have a Gradle based project that won't load in any version of
> NetBeans, including the 12 beta. The notification shown says:
>
> > Compilation failed; see the compiler output for details.
> > Execution failed for task: '<some build task>'
> > Execution failed for task: '<some build task>'
> > Could not run build action using Gradle installation '<path to gradle
> wrapper dists/ folder>'
>
> How does one go about investigating this problem?
>
> For starters, I don't see anything in the output window or messages.log.
>
> Where is the compiler output with the details?
>
> A minor issue: the notification itself (being a Swing component) doesn't
> allow you to copy-paste the error message.
>
> --emi
>