LS: Conflicting dependencies in packages
Arcticae opened this issue · 2 comments
Arcticae commented
Given:
- package A (opened in VSC with LS)
- package B (a dependency of A)
- package C (a dev dependency of both A and B, but in different versions ver. A/ ver. B)
Scenario:
- Navigate to tests of A (GOTO to dev dependency works correctly, analysis returns correct types)
- Navigate to B (package is resolved, the C dep is loaded with ver. B)
- Errors in A (can) appear because of differing versions (C ver. B was loaded instead of C ver. A)
Example
This error can appear in a very simple setup, where you have a dep on OpenZeppelin, it tests with snfoundry 0.27.0, and you do with 0.30.0 (which is totally fine from scarb/snforge perspective - it runs correctly)
The example above appears here:
Sniezka1927/starknet-sc@6e8a95c
piotmag769 commented
Verified that it was solved with discriminator field