JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
82 stars 50 forks source link

ThirdParty stubs: Compilation fails inside MPS and during CL build #789

Closed arimer closed 6 months ago

arimer commented 6 months ago

I have a solution containing a model that uses ArrayNode provided via the ThirdParty solution. I can resolve all required references, however the compilation is failing.

I created an example to reproduce the error. It can be found in this branch on iets3:

https://github.com/IETS3/iets3.opensource/tree/debug/ThirdPartyDependencyProblem

Here a snippet from the stacktrace:

 [generate] java.lang.RuntimeException: ****************************************************************************************************
   [generate] 74 errors during generation:
   [generate] Compilation problems
   [generate] package com.fasterxml.jackson.databind.node does not exist (/build/work/5fa48058a3fec642/code/languages/org.iets3.opensource/solutions/foo/source_gen/foo/bar/Fml.java:5)
   [generate] cannot find symbol
   [generate]   symbol:   class ArrayNode
   [generate]   location: class foo.bar.Fml (/build/work/5fa48058a3fec642/code/languages/org.iets3.opensource/solutions/foo/source_gen/foo/bar/Fml.java:8)
   [generate] Compilation finished: 2 errors, 0 warnings.
   [generate] Error executing target jetbrains.mps.make.facets.JavaCompile.compile
   [generate] Build failed. See previous messages for details.
   [generate] Make was not successful
   [generate] Compilation problems

I am using the latest artifact from maintenance/mps20222