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.43k stars 125 forks source link

IntelliJ Idea: Cannot resolve symbol 'item1' #500

Closed ojecborec closed 1 year ago

ojecborec commented 1 year ago

Following code compiles just fine but IntelliJ Idea is reporting 3 problem.

package com.example.demo;

import manifold.ext.rt.api.auto;

public class DemoApplication {

    public static void main(String[] args) {
        var t = tuple();

        System.out.println(t.item1);
        System.out.println(t.item2);
    }

    private static auto tuple() {
        return 1, 2;
    }

}
  1. Autocomplete is not showing item1 and item2.

image

  1. return 1, 2 is marked as red.

image

  1. Reported problems.

image

IntelliJ Idea Community Edition 2023.2.2 Manifold plugin 2023.2.2

ojecborec commented 1 year ago

demo.zip

rsmckinney commented 1 year ago

Are you using the manifold-tuple / manifold-tuple-rt dependency in your build config?

rsmckinney commented 1 year ago

Just opened your demo.zip project, all works fine for me:

image

ojecborec commented 1 year ago

Hmm. That must me my local problem. I'm going to close this issue.

rsmckinney commented 1 year ago

Let me know if the issue persists, thanks.

ojecborec commented 1 year ago

Seems like invalidating cache has helped.