eclipse-buildship / buildship

The Eclipse Plug-ins for Gradle project.
535 stars 171 forks source link

Compilation errors when importing a Gradle project that uses Java modules #1262

Open nailujac opened 1 year ago

nailujac commented 1 year ago

Expected Behavior

The project should import correctly and without compilation errors

Current Behavior

The project is imported but eclipse flags compilation errors

Context

When importing a Gradle project that uses Java modules, even though the project is imported correctly, Eclipse marks many compilation errors. I believe the errors in the classes are derived from the errors that appear in the module-info.java file. In this file, most of the required modules have an error cannot be resolved to a module

I've tried everything and can't seem to resolve it. If I run the 'build' task with Gradle, the task completes successfully.

image

Steps to Reproduce

Import this project: https://github.com/sparrowwallet/sparrow (git clone with --recursive option)

Your Environment

nailujac commented 1 year ago

Any solución? Thank you

effad commented 9 months ago

I have the same problem when working on ValidatorFX (https://github.com/effad/ValidatorFX). If I import the gradle project to eclipse, I get all kinds of compile problems. As soon as I delete the module-info.java file, the problems disappear.