Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nailujac opened this issue Sep 15, 2023 · 2 comments
Open

Comments

@nailujac
Copy link

nailujac commented Sep 15, 2023

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

  • Eclipse Version: 2023-06 (4.28.0)
  • Buildship: Eclipse Plug-ins for Gradle: 3.1.7
  • Gradle distribution: "Gradle wrapper" ana Version 3.8
  • JDK version: 18.0.2.1 and 17.0.7
@nailujac
Copy link
Author

Any solución? Thank you

@effad
Copy link

effad commented Feb 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants