Open reimerp opened 1 year ago
Just checked a local shell terminal: - restores after vscode restart. Also switch Terminal profile to "native" (since above error is nodejs) but error remains.
The first issue can be bypassed if "Run Script Prompt" is unset -- so not an issue.
I have big trouble setting up the extention. After dozens of re-installation (also of the preview version), cleaning up the user-settings file, errors like: "Cannot convert undefined or null to object" I managed to autoconnect to my one and only device.
Now the device seems to be related to project (even not in explicitly listed in the projects pymakr.conf -- there just a project name in it), and is connected. I can also open a terminal window. I can also run files on that device, but: Run always asks for a device as a target, since there is a one (and only one) device attached to the project, it should be a default and not ask again.
And after restarting code nothing is persisted unfortunately: VScode tries to open a terminal with failuures: I see a terminal for a very short time but it immediately closes due to an eexception: "unable start the terminal /usr/bin/bash" Permission denied. Exitcode 1.) In the dev console only the NotificationAlerts.ts is logged (no stacktraces) In the Ptyhost log I found:
[warning] Shell integration cannot be enabled for executable "myhome/.nvm/versions/node/v14.15.1/bin/node" and args ["myhome/.vscode/extensions/pycom.pymakr-2.22.5/src/terminal/bin/client.js","13732","serial","/dev/ttyACM0"]
If I try to manually exec this command I get:
And I think this is also what is shown in the terminal (before it immediatly closes)
in the user settings I find:
where
12345
seems to be the serial number of my deviceEven if I manually edit the User settings, remove the 40 ttyS* entries , config my device as
, start mscode, PyMakr will not show this device, instead it shows up a new unknown one (on the same interface) but name is "unknown", so is seems a new one If I configure it again a new entry winth the number in appended to User settings (also tons of ttyS interfaces reappear) and I can open a console, but after restart again the issue shown above
It seems as if the device key in the settings is somehow used as a serial interface / or the serial number of the device itself. But in the latter case there is no information stored on what serial interface this device is connected.
To Reproduce See above.
Expected behavior
Desktop