manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.42k stars 125 forks source link

Intellij IDEA doesnt detect manifold-collection extension methods #602

Closed miladamery closed 5 months ago

miladamery commented 5 months ago

Describe the bug Following guides on how to use manifold-collections project the Intellij IDEA doesn't provide code auto completion or detection of provided extension methods for collection project. The build process is ok, I mean build finishes successfully and generated classes contain Manifold methods but IDE doesn't detect this. (Build tool is gradle)

To Reproduce Steps to reproduce the behavior:

  1. Create a project with gradle as build tool
  2. follow Tutorial to set things up
  3. Try to use manifold-collections but IDE wont cooperate

Expected behavior IDE should provide code completion and do not complain about missing methods

Desktop (please complete the following information):

rsmckinney commented 5 months ago

Hi @miladamery. This should work for you. Did you try reloading the project? You can also check Gradle settings in IntelliJ:

File | Settings | Build, Execution, Deployment | Build Tools | Gradle. 

Make sure Gradle JVM is JDK 21 or better.

If that fails, I'm happy to have a look at your project, or I can provide a zip file containing a working project.

miladamery commented 5 months ago

Thanks.