-
Notifications
You must be signed in to change notification settings - Fork 46
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
Unresolved reference: any class inside graphql
module
#3071
Comments
This is puzzling. Ca you retry as soon as #3014 gets merged? It's a big refactoring, maybe this one gets accidentally solved. |
Sure, thanks. If necessary, I can submit a pull request demonstrating the issue, in case this approach doesn't work out. |
Unfortunately, it didn't solve the problem. It seems to me that the only way to find out what breaks the imports is to remove pieces of configuration until I find out. I'll try to do it next week. |
This issue will be solved after merging #3253. |
I have some additional info: it seems like merging #3253 did not solve the problem. BTW, the problem is surely related to the |
missclicked. ouch. |
Upon merging #3386 this will finally be closed once and for all |
Importing the
graphql
module in another module by adding it to thecommonMain
as a dependency seems to have no effect.The problem occurs when importing the module using the statically defined
Project.alchemist(module: String)
function.The bug won't appear when importing other multiplatform projects (for example,
web-render
).Only the IntelliJ IDE is able to find the classes and will recognize the import as valid, suggesting a successful import.
Further investigation is required to better understand the problem.
Maybe the
alchemist-graphql
gradle configuration is involved in the issue, since some code generation is involved during the build process.To reproduce the bug, simply import the
graphql
module in a multiplatform project as a dependency in thecommonMain
block and try to use any class offered. Build will fail upon compiling, here's an example output:> Task :alchemist-web-renderer:compileKotlinJvm FAILED e: file:///home/angelo/AngeloFilaseta/Alchemist/Alchemist/alchemist-web-renderer/src/commonMain/kotlin/it/unibo/alchemist/boundary/webui/common/Graph.kt:12:36 Unresolved reference: graphql e: file:///home/angelo/AngeloFilaseta/Alchemist/Alchemist/alchemist-web-renderer/src/commonMain/kotlin/it/unibo/alchemist/boundary/webui/common/Graph.kt:16:9 Unresolved reference: GraphQLClientFactory
The text was updated successfully, but these errors were encountered: