You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (Jira)" <ji...@apache.org> on 2020/09/20 06:34:00 UTC

[jira] [Commented] (NETBEANS-4821) Cannot attach sources to Gradle library

    [ https://issues.apache.org/jira/browse/NETBEANS-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198913#comment-17198913 ] 

Laszlo Kishalmi commented on NETBEANS-4821:
-------------------------------------------

Thank you for the report!

I was able to reproduce. I need further investigation, as if you right click the Configurations node and select Download Sources, it downloads some sources for the dependent jars (like see the sources badge on hamcrest-core:1.3 jar), but it fails on others. The trick is that NetBeans ask Gradle to download the source artifacts, so the question is, does it happen as we are not asking nice enough, or the issue is with Gradle itself.

> Cannot attach sources to Gradle library
> ---------------------------------------
>
>                 Key: NETBEANS-4821
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4821
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 12.1
>            Reporter: Jaroslav Tulach
>            Assignee: Laszlo Kishalmi
>            Priority: Minor
>         Attachments: image-2020-09-20-08-06-46-654.png
>
>
> I am developing a sample demo using Gradle and I am unable to debug into a library used in a test, as the source isn't available. To try:
> {code:java}
> $ git clone --single-branch --branch react4jdemo https://github.com/jtulach/netbeans-html4j react4jdemo
> $ cd react4jdemo
> # following identifies the exact version I have on local disk:
> react4jdemo$ git log | head -n5
> commit 1e18917d0be1fc090cc9500c8286119710a29fde
> Author: Jaroslav Tulach <ja...@apidesign.org>
> Date:   Sun Sep 20 07:50:11 2020 +0200    Verify component class is accessible before generating subclass{code}
> and open that and its {{api}} subproject in NetBeans 12.1. The following picture...  !image-2020-09-20-08-06-46-654.png! ... shows what I did:
>  * expand the API's project junit-browser-runner library
>  * select BrowserRunner.class file
>  * right click, Open => opens the bytecode
>  * click "Attach Sources" and "Download"
>  * an error is shown
> I am pretty sure the above workflow would work in a Maven project.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists