Skip to content
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

Incorrect type mismatch when conflicting dependencies in project with multiple packages #23

Open
bioball opened this issue Apr 9, 2024 · 0 comments

Comments

@bioball
Copy link
Contributor

bioball commented Apr 9, 2024

Given the following setup:

PackageA/ -> depends on PackageC@1.1.0
PackageB/ -> depends on ../PackageA, PackageC@1.2.0

And PackageA has the following

// MyModule.pkl
import "@packageC/Something.pkl"

something: Something

Then usage from PackageB:

amends "@packageA/MyModule.pkl"
import "@packageC/Something.pkl"

something = new Something {}

This results in an incorrect type error in IntellijJ (one sees PackageC@1.1.0, another sees PackageC@1.2.0).

Screenshot of real life example:
Screenshot 2024-04-09 at 3 56 49 PM

This error can be seen in this commit: d238a01

And in file packages/k8s.contrib.crd/internal/ModuleGenerator.pkl

bioball pushed a commit to bioball/pkl-pantry that referenced this issue Apr 9, 2024
bioball added a commit to apple/pkl-pantry that referenced this issue Apr 10, 2024
This is a workaround for two issues:
* apple/pkl-intellij#23
* apple/pkl#414

Co-authored-by: The Pkl Team (automation) <pkl-oss@groups.apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant