buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Compilation errors when importing a Gradle project that uses Java modules

Open nailujac opened this issue 1 year ago • 2 comments

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 avatar Sep 15 '23 16:09 nailujac