Hi,

I just began to work with Lean & QuantConnect, I'm currently exploring local development using only Lean-CLI but I get stuck when debugging with PyCharm.

I create my first project like that:

# 1. Create the workspace
mkdir MyWorkspace
cd MyWorkspace
lean init --language python

# 2. Create the project
lean project-create MyProject

# 3. Add necessary requirement for auto-complete
pip install --upgrade quantconnect-stubs

Everything seems to work as expected: the autocomplete work on both VSCode & Pycharm and I can debug on VSCode.

But I cannot debug on Pycharm, which break my heath as it is my favorite Python IDE.

The error refer to the debug configuration that seems to be broken (the one created by `lean project-create`): the debug button is disable, and when I want to edit the configuration, I see that:

Run Configuration Error: Broken configuration due to unavailable plugin or invalid configuration data.

Screenshot:

gregoire-taja_1718800772.jpg


Environment:

  • MacOS Sonoma 14.5 (M1 chip)
  • PyCharm Community Edition 2024.1.3 (last version at this date)

 

Thanks for your help,
Grégoire.