Closed anmiro closed 5 years ago
What's the exception that occurs after the timeout? This looks to me like it's working as expected. That executable isn't a python executable, can it run python files?
What's the exception that occurs after the timeout?
It´s the standard exception that no interpreter was set. The exception above appears in the debug output of the extension.
This looks to me like it's working as expected. That executable isn't a python executable, can it run python files?
Yes, the LogicBuilderShell.exe wraps an IronPyhon 2.7.x based interpreter and adds some additional objects and a runtime/compiler for machine programming (IEC 61131 languages). Its one of the tools of Schneider Electric´s Machine Expert Our customers are able to automate a lot of tasks/create new projects/code or even unit test machine code with this python interface and they love to use Visual Studio Code and the Python Extension to develop their scripts. Unfortunately our interpreter is not fast enough to deliver the information needed by the extension.
After discussing this feature request on the team we have unfortunately decided we will not be accepting the PR or trying to implement it. There isn't enough widespread need for this to warrant the maintenance cost for the feature. Thanks for bringing up the idea, @anmiro .
Environment data
"python.jediEnabled"
set to; more info #3977): JediExpected behaviour
Enough time to retrieve the interpreter informations properly. Should be a configurable value.
Actual behaviour
After 5s the process will be canceled with the return value --- Timed Out --- which leads to an exception.
Steps to reproduce:
Set our Interpreter as Standard and wait till the timeout will occur
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)