IDE Textual : Missing 'Launch Python in Script Engine' option in debug

Hi,

I'm facing an issue where I can only see the 'Python: Current File' option when trying to run my script in the script engine. I've tried reinstalling both the IDE and Python runtime without success. I also tested with IDE versions 118 and 120, but the problem persists. Additionally, the source control tab indicates 'No repository found.'

Has anyone encountered this? How can I run my script in the script engine properly?

Thanks.

Best reply by BrightKnight

Hi Parco,

regarding the missing entry "Launch Python in Script Engine" you can try two approaches.

Approach 1:

  1. Delete the launch.json 
  2. Uninstall the IDE App and install it again. (Really uninstall first and not just reinstall)

Approach 2:

  1. Press this button: 
  2. A launch.json should open in which you paste the content of the attached launch.txt

This error can occur when pressing this control wheel button. You should avoid pressing it. We are investigating the root issue and are planing to fix it in the upcoming release.

------------------------------------------------------------------------------------------------------------------------------------------

In your other attached screenshots you showed two additional topics.

  • Repositories can only be found when a .git folder is present. You need to either clone or init one. The activeConfiguration directory is initially not a git repo and therefore none is found.
  • The python error "ctrlx is not defined" indicates a wrong setup for running scripts with local python interpreter. Please follow this instruction:https://docs.automation.boschrexroth.com/doc/3466740003/local-python-runtime-environment/latest/en/.I see from yur script that you have e.g. missed to import config and configure it.

Kind Regards
Daniel

launch.txt
1.71KB
View original
2024-03-20_09h44_49.png
55.6KB
2024-03-20_09h44_35.png
23.8KB
2024-03-20_09h44_20.png
74.27KB
5 replies