Skip to content

mpremote vscode extension is not calling the module on windows #40

@nexafs-git

Description

@nexafs-git

Hello Dave,

after successfully installing and using your mpremote extension on linux the exact same procedure on a windows system yields the following error during vscode startup : 'mpremote is not installed or could not be run as a Python module'. Other commands will not launch either, and no serial devices are found in the respective editor tab.

But for the windows OS the COM device is connected and the module is usable via a terminal with the 'mpremote' command to connect to a ESP32 device running micropython.

In an earlier post you described the function to determine how to call the module:

export function getMPRemoteName() {
let mpremote = 'python3 -m mpremote';
switch (process.platform) {
case 'win32': // win32 is returned for 64-bit OS as well
mpremote = 'py.exe -m mpremote';
break;
case 'linux':
case 'darwin':
mpremote = 'mpremote';
break;
}
console.debug('Calling mpremote as:', mpremote);
return mpremote;

That doesn't seem to work, and for this reason I already have overwritten the starter command with 'mpremote' in the vscode/mpremote settings file, but this did not work either.
Is there another way letting the extension find the module?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions