This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@plutolang/cli@0.4.58
Patch Changes
Updated dependencies [f6b3536]
Updated dependencies [5e7702e]
@plutolang/pyright-deducer@0.1.36
@plutolang/pyright-deducer@0.1.36
Patch Changes
f6b3536: fix(deducer): correct package directory resolution and METADATA parsing
This commit addresses two separate issues identified in the deducer:
The deducer incorrectly searched for distribution information within the stub type directory, which lacks the required dist info. The resolution has been updated to check for the presence of nonStubImportResult within the ImportResult. If present, it is now utilized to determine the correct package directory.
The parsing of the dist-info/METADATA file was flawed due to the possibility of encountering multiple Name lines. The parser has been adjusted to only consider lines that begin with Name: and are not preceded by any spaces.
5e7702e: fix(deducer): avoid retrieving declarations for non-infrastructure call nodes
Previously, the deducer attempted to retrieve all call node declarations and match them against custom infrastructure functions. This method was flawed as functions with multiple declarations caused the deducer to fail. To address this, we now first verify that a call node pertains to a custom infrastructure function by comparing function names. Only then do we fetch the call node's declaration, effectively bypassing the collection of extraneous call node declarations.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@plutolang/cli@0.4.58
Patch Changes
@plutolang/pyright-deducer@0.1.36
Patch Changes
f6b3536: fix(deducer): correct package directory resolution and METADATA parsing
This commit addresses two separate issues identified in the deducer:
nonStubImportResult
within theImportResult
. If present, it is now utilized to determine the correct package directory.dist-info/METADATA
file was flawed due to the possibility of encountering multipleName
lines. The parser has been adjusted to only consider lines that begin withName:
and are not preceded by any spaces.5e7702e: fix(deducer): avoid retrieving declarations for non-infrastructure call nodes
Previously, the deducer attempted to retrieve all call node declarations and match them against custom infrastructure functions. This method was flawed as functions with multiple declarations caused the deducer to fail. To address this, we now first verify that a call node pertains to a custom infrastructure function by comparing function names. Only then do we fetch the call node's declaration, effectively bypassing the collection of extraneous call node declarations.