ansys / ansys/pystk

Intellisense issues in VS Code

Open
#873 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
37
Forks
7
Avg merge
1d 5h
Merged PRs (30d)
19

Description

### 🔍 Before submitting the issue

- [x] I have searched among the existing issues
- [x] 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

```shell
pySTK 0.2
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported calls to children.new with STKObjectType.SATELLITE and set_propagator_type with Python 3.13, pySTK 0.2, and Pylance on Windows. Inspect the package's object and type definitions to determine why the enum and attribute are not exposed; done means Pylance recognizes both without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.