Skip to content

Intellisense issues in VS CodeΒ #873

@guessproject

Description

@guessproject

πŸ” Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Pylance issues an error when creating new STK objects. For example, the enumeration STKObjectType.SATELLITE is threated like an integer.
Also, some attributes are not accessible by Pylance, e.g. sat.set_propagator_type

πŸ“ Steps to reproduce

scen = root.current_scenario
targetSat = scen.children.new(STKObjectType.SATELLITE, "Target")
targetSat.set_propagator_type(PropagatorType.ASTROGATOR)

Image

πŸ’» Which operating system are you using?

Windows

πŸ“€ Which ANSYS version are you using?

2025 R2

🐍 Which Python version are you using?

3.13

πŸ“¦ Installed packages

pySTK 0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefects or glitches reported by users or developers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions