Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5540

package x.y.z does not exist for Gradle project

    XMLWordPrintableJSON

Details

    Description

      Unpacked NB 12.4 beta1. Started fresh no user dir, no import of settings.

      Run NB, install nb-javac when requested.

      Open micronaut-test, previously cloned from https://github.com/micronaut-projects/micronaut-test

      I did not check the check box, trust the project in Project open dlg.

      When top level project is open NB asks for Resolve problems, click Resolve, then open test-junit5, Resolve Problems step is done, subproject is open.

      It looks like attached screenshot.

      Performing Clean & Build on project in NB does not fix this.

      Close NB, run ./gradlew build on top level project in terminal, same JDK used, it builds the project successfully.

      Open the multi project in NB again, still same errors displayed. See attached screenshot and log file from this session.

      In the next step I delete .gradle folder in micronaut-test, removed NB user dir, start from scratch. In Open Project dlg I checked Trust the project.

      Resolve Problems dlg appears for top level project with two problems: Priming build and Trust the project. Click Resolve button, it gets green.

      Then open test-junit5, Resolve Problems project appears and it is empty. Source files are open with with same errors as previously in attachment.

      Attachments

        1. messages.log.1
          74 kB
          Martin Balin
        2. Screenshot 2021-04-04 at 10.42.30.png
          214 kB
          Martin Balin
        3. without_nbjavac.png
          148 kB
          Martin Balin
        4. demogradle.zip
          62 kB
          Martin Balin

        Activity

          People

            sdedic Svatopluk Dedic
            mbalin Martin Balin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m