sjcbulldog / mtbassist

Apache License 2.0
2 stars 0 forks source link

Unable to find installed tools #5

Closed Panometric closed 3 weeks ago

Panometric commented 1 year ago

Using vscode 1.81.1, I have 3 versions of Modustoolbox installed:

>dir %USERPROFILE%\ModusToolbox
08/21/2023  05:52 PM    <DIR>          .
08/21/2023  05:52 PM    <DIR>          ..
10/06/2021  04:28 PM            12,675 CYPRESS END USER LICENSE AGREEMENT 2.4.txt
09/27/2022  05:03 PM            12,762 CYPRESS END USER LICENSE AGREEMENT 3.0.txt
05/30/2023  03:00 PM            12,762 CYPRESS END USER LICENSE AGREEMENT 3.1.txt
11/22/2021  04:11 PM    <DIR>          docs_2.4
11/24/2022  11:28 AM    <DIR>          docs_3.0
08/21/2023  05:52 PM    <DIR>          docs_3.1
12/16/2021  05:13 PM    <DIR>          ide_2.4
11/24/2022  11:26 AM    <DIR>          ide_3.0
08/21/2023  05:50 PM    <DIR>          ide_3.1
11/22/2021  04:11 PM    <DIR>          tools_2.4
11/24/2022  11:28 AM    <DIR>          tools_3.0
08/21/2023  05:52 PM    <DIR>          tools_3.1
08/21/2023  05:52 PM    <DIR>          uninstallers
11/22/2021  04:11 PM             1,049 unins_2.4.lnk
11/24/2022  11:28 AM             1,049 unins_3.0.lnk
08/21/2023  05:52 PM             1,049 unins_3.1.lnk

But I get this error:

ModusToolbox Assistant 1.0.26

The ModusToolbox Assistant extension is designed to be used with ModusToolbox 3.0 or later. However, ModusToolbox 3.0 or later is not installed. Please install ModusToolbox 3.0 or later to use this extensison.

Click Here To Download ModusToolbox

sjcbulldog commented 1 year ago

I installed 2.4, 3.0, and 3.1 and do not see that same problem. Do you have the CY_TOOLS_PATHS variable in either your environment or your make file?

If not, lets get some debug information. Go to the 'View/Command Palette' menu item and type in Modus. You should see and item labeled 'ModusToolbox Turn On Debug Mode'. Then restart VS Code and navigate to the directory of interest. When it fails as you describe, select the 'View/Output' menu item and on the right in the pulldown select ModusToolbox. Grab the contents of the output window and past here. Thanks.

Panometric commented 1 year ago

Thanks. I did have CY_TOOLS_PATHS set and it fails when set to 2.4, but not when set to 3.1

But I am unable to turn on debugging when set to 2.4: image

Ironically I can turn on debugging when set to 3.1

We can close this for me, but it does seem like it should know if the CY_TOOLS_PATHS is set incorrectly or at least tell in the error message.

sjcbulldog commented 3 weeks ago

We are strongly recommending a 3.x version of ModusToolbox. Going to close this.