{"action":"created","issue":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/341","repository_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project","labels_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/341/comments","events_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/341/events","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/341","id":234246254,"number":341,"title":"Cannot load all projects: 'No projects in this build have project!' ","user":{"login":"WallyCZ","id":13380548,"avatar_url":"https://avatars1.githubusercontent.com/u/13380548?v=4","gravatar_id":"","url":"https://api.github.com/users/WallyCZ","html_url":"https://github.com/WallyCZ","followers_url":"https://api.github.com/users/WallyCZ/followers","following_url":"https://api.github.com/users/WallyCZ/following{/other_user}","gists_url":"https://api.github.com/users/WallyCZ/gists{/gist_id}","starred_url":"https://api.github.com/users/WallyCZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WallyCZ/subscriptions","organizations_url":"https://api.github.com/users/WallyCZ/orgs","repos_url":"https://api.github.com/users/WallyCZ/repos","events_url":"https://api.github.com/users/WallyCZ/events{/privacy}","received_events_url":"https://api.github.com/users/WallyCZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-06-07T15:18:13Z","updated_at":"2017-07-26T13:07:56Z","closed_at":null,"body":"After upgrading to 1.4.0 (and also 1.4.1) I have following issue. When loading multiple gradle projects, that have some dependencies between them, one (or sometimes more) project fail to load with exception below. Sometimes helps reloading projects, that already were reloaded successfully. Also when I downgrade to 1.3.9.2, issue disappears. I am not 100% sure, that there is not some issue in our gradle configs, but in version 1.3.9.2 everything works as it should.\r\n\r\nIssue 1\r\n--------\r\n\r\n  Requested project: ...\r\n\r\n  Stack trace:\r\n    org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'.\r\n    \tat org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)\r\n    \tat org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)\r\n    \tat org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)\r\n    \tat org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)\r\n    \tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n    \tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\n    \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n    \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n    \tat java.lang.Thread.run(Thread.java:748)\r\n    \tat org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)\r\n    \tat org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:48)\r\n    \tat org.netbeans.gradle.model.GenericModelFetcher.getModels(GenericModelFetcher.java:168)\r\n    \tat org.netbeans.gradle.project.model.NbGradle18ModelLoader$ProjectModelFetcher.getModels(NbGradle18ModelLoader.java:375)\r\n    \tat org.netbeans.gradle.project.model.NbGradle18ModelLoader.loadModels(NbGradle18ModelLoader.java:68)\r\n    \tat org.netbeans.gradle.project.model.DefaultGradleModelLoader.loadModelWithProgress(DefaultGradleModelLoader.java:586)\r\n    \tat org.netbeans.gradle.project.model.DefaultGradleModelLoader.fixProjectLoadKey(DefaultGradleModelLoader.java:385)\r\n    \tat org.netbeans.gradle.project.model.DefaultGradleModelLoader.access$1500(DefaultGradleModelLoader.java:74)\r\n    \tat org.netbeans.gradle.project.model.DefaultGradleModelLoader$7.run(DefaultGradleModelLoader.java:441)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager.runNonBlockingGradleTask(GradleDaemonManager.java:35)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager.access$100(GradleDaemonManager.java:22)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager$2.execute(GradleDaemonManager.java:125)\r\n    \tat org.jtrim.concurrent.AbstractTaskExecutorService$FunctionWrapper.execute(AbstractTaskExecutorService.java:270)\r\n    \tat org.jtrim.concurrent.AbstractTaskExecutorService$TaskOfAbstractExecutor.execute(AbstractTaskExecutorService.java:340)\r\n    \tat org.jtrim.concurrent.Tasks$RunOnceCancelableTask.execute(Tasks.java:342)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.runTask(SingleThreadedExecutor.java:919)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$QueuedItem.access$1200(SingleThreadedExecutor.java:898)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.executeTask(SingleThreadedExecutor.java:815)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.processQueue(SingleThreadedExecutor.java:827)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$Impl$Worker.run(SingleThreadedExecutor.java:861)\r\n    \tat org.jtrim.concurrent.SingleThreadedExecutor$Impl$1.run(SingleThreadedExecutor.java:453)\r\n    \tat java.lang.Thread.run(Thread.java:748)\r\n    Caused by: org.gradle.internal.exceptions.LocationAwareException: No projects in this build have project directory '...'.\r\n    \tat org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)\r\n    \tat org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)\r\n    \tat org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:101)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:87)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.configure(InProcessBuildActionExecuter.java:102)\r\n    \tat org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:45)\r\n    \tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n    \tat org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:58)\r\n    \tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)\r\n    \tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)\r\n    \tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)\r\n    \tat org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)\r\n    \tat org.gradle.util.Swapper.swap(Swapper.java:38)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)\r\n    \tat org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)\r\n    \tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n    \tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\n    Caused by: org.gradle.api.InvalidUserDataException: No projects in this build have project directory '...'.\r\n    \tat org.gradle.initialization.AbstractProjectSpec.selectProject(AbstractProjectSpec.java:38)\r\n    \tat org.gradle.initialization.SettingsHandler.setDefaultProject(SettingsHandler.java:72)\r\n    \tat org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:66)\r\n    \tat org.gradle.initialization.NotifyingSettingsLoader.findAndLoadSettings(NotifyingSettingsLoader.java:33)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:119)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)\r\n    \t... 42 more\r\n    \r\n"},"comment":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/comments/318047798","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/341#issuecomment-318047798","issue_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/341","id":318047798,"user":{"login":"psimonazzi","id":764142,"avatar_url":"https://avatars0.githubusercontent.com/u/764142?v=4","gravatar_id":"","url":"https://api.github.com/users/psimonazzi","html_url":"https://github.com/psimonazzi","followers_url":"https://api.github.com/users/psimonazzi/followers","following_url":"https://api.github.com/users/psimonazzi/following{/other_user}","gists_url":"https://api.github.com/users/psimonazzi/gists{/gist_id}","starred_url":"https://api.github.com/users/psimonazzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psimonazzi/subscriptions","organizations_url":"https://api.github.com/users/psimonazzi/orgs","repos_url":"https://api.github.com/users/psimonazzi/repos","events_url":"https://api.github.com/users/psimonazzi/events{/privacy}","received_events_url":"https://api.github.com/users/psimonazzi/received_events","type":"User","site_admin":false},"created_at":"2017-07-26T13:07:56Z","updated_at":"2017-07-26T13:07:56Z","body":"I prepared a minimal test with 3 projects: [gradle-test.zip](https://github.com/kelemen/netbeans-gradle-project/files/1176607/gradle-test.zip)\r\n\r\nOpen the projects, then edit project-B/build.gradle (just add a comment and save), then:\r\n- \"Reload Project\" command on project-B\r\n- \"Reload Project\" command on project-C\r\n\r\nNow running any task on a project should throw an error, and in logs you can see that Netbeans is looking for settings.gradle in the wrong path, for example building project-C says: \r\n```\r\nExecuting: gradle build\r\nArguments: [-c, /opt/gradle-test/project-B/settings.gradle]\r\n```\r\nAlso in Netbeans cache files (.cache/netbeans/8.2/gradle/settings-gradle) the settings.gradle path is wrong.\r\n"}}
{"actor":{"display_login":"psimonazzi"}}