False Positive Errors in Generator

I have a generator module with several external JAR files added as java_classes model roots. In my main@generator Dependencies, I see the same com.example@java_stub duplicated multiple times. I have added a baselanguage Java class to this generator.

When I build/rebuild the project, everything works as expected. But in the MPS editor, I'm getting errors that "class foo is not a subclass of class foo" and quick-fixes like "add a dependency to the referent" in the Java class I've added to my generator.

Can anyone shed light on this? I believe I got myself into this situation by trying to remove some of the (duplicate?) com.exmaple@java_stub entries from my generator's dependencies, but I'm not sure. Any help would be greatly appreciated.

0
1 comment
Avatar
Permanently deleted user

I've solved the problem by removing all the Dependencies from my main@generator and using the quick-fixes to add the dependencies my code needed, ensuring I didn't re-add a duplicate dependency along the way.

0

Please sign in to leave a comment.