Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jcsb1994
Level 4
Level 4
First solution authored 50 replies posted 50 sign-ins

Hi!
I work on my MTB projects in VS code. I am able to use an instance of modus shell separate from my vs code instance containing my project.

Instead, I would like vs code to know the path to modus shell. I naively added the path to my settings.json file, which is the configuration file, as such:

    "terminal.integrated.profiles.windows": {
        "Modus": {
            "path": "C:\\Users\\jcbsk\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\ModusToolbox 2.2\\modus-shell 1.1.0.lnk"
        }
    },

 But this causes an error:

The terminal process failed to launch: A native exception occurred during launch (Cannot create process, error code: 193).

Any way I can achieve my goal? Thanks!

0 Likes
1 Solution
riccardo-monty
Level 3
Level 3
50 sign-ins 10 replies posted First like received

try this config:

 

"terminal.integrated.profiles.windows": {
        "ModusToolbox-shell": { // name of profile     
            "path": "cmd.exe",
            "args": [
                "/C",   // execute a command
                "D:\\ModusToolbox\\tools_3.0\\modus-shell\\Cygwin.bat"
            ],
            "color": "terminal.ansiMagenta",
            "overrideName": true,
            "icon": "pencil"
        }
    },

the script setup all environment (also commands)

 

View solution in original post

0 Likes
2 Replies
riccardo-monty
Level 3
Level 3
50 sign-ins 10 replies posted First like received

try this config:

 

"terminal.integrated.profiles.windows": {
        "ModusToolbox-shell": { // name of profile     
            "path": "cmd.exe",
            "args": [
                "/C",   // execute a command
                "D:\\ModusToolbox\\tools_3.0\\modus-shell\\Cygwin.bat"
            ],
            "color": "terminal.ansiMagenta",
            "overrideName": true,
            "icon": "pencil"
        }
    },

the script setup all environment (also commands)

 

0 Likes
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @jcsb1994 

Looks like the terminal process failed to launch because the path specified is for the modus-shell shortcut. Can you please try changing the "path" to "C:\Users\<username>\ModusToolbox\tools_2.4\modus-shell\Cygwin.bat"(path to Cygwin.bat file in modus-shell) and see if it works?

Thanks and Regards
Leo

0 Likes