microsoft / vscode-embedded-tools

Official issue tracking repository for Microsoft's Embedded Tools VS Code extension.
MIT License
43 stars 3 forks source link

Can't Create project from ST project on Linux #31

Closed skiphansen closed 1 year ago

skiphansen commented 1 year ago

I'm (very) new to VS code and I'm trying to follow https://devblogs.microsoft.com/cppblog/importing-st-projects-into-visual-studio-code/ on Linux.

When I run Create project from ST project a dialog opens, but it refuses to accept the directory containing my .cproject file.

image

When I click "Open Project" the dialog just enters the Test subdirectory.

The .cproject file IS there...

skip@Dell-5510:~/localref/nexus_charger_led$ ll
total 216
drwxrwxr-x 11 skip skip  4096 Dec 30 12:07  ./
drwxrwxr-x  5 skip skip  4096 Dec 30 12:04  ../
-rw-rw-r--  1 skip skip   928 Dec 17 12:52 'CHARGER_LED_BOARD_Full_System_Test_Build_rev00_08_00_date060622 Debug.cfg'
drwxrwxr-x  3 skip skip  4096 Dec 17 12:52  Configuration/
drwxrwxr-x  5 skip skip  4096 Dec 17 12:52  Core/
-rw-rw-r--  1 skip skip 30589 Dec 17 12:52  .cproject
drwxrwxr-x  2 skip skip  4096 Dec 17 12:52  Doc/
drwxrwxr-x  6 skip skip  4096 Dec 17 12:52  Drivers/
-rw-rw-r--  1 skip skip  9003 Dec 17 12:52  DVT1_Build_Charger_Tower_LED_Board_ver_03_00_01.launch
-rw-rw-r--  1 skip skip  9253 Dec 17 12:52 'DVT1_Build_Charger_Tower_LED_Board_ver_03_00_02E Debug.launch'
-rw-rw-r--  1 skip skip  9247 Dec 17 12:52 'EVT2_Build_Charger_Tower_LED_Board_ver_02_03_01 Debug.launch'
drwxrwxr-x  8 skip skip  4096 Dec 17 12:52  .git/
-rw-rw-r--  1 skip skip     8 Dec 17 12:52  .gitignore
drwxrwxr-x  3 skip skip  4096 Dec 17 12:52  Middlewares/
-rw-rw-r--  1 skip skip 15421 Dec 17 12:52  .mxproject
-rw-rw-r--  1 skip skip  8736 Dec 17 12:52 'nexus_charger_led Debug.launch'
-rw-rw-r--  1 skip skip 12477 Dec 17 12:52  nexus_charger_led.ioc
-rw-rw-r--  1 skip skip  1253 Dec 17 12:52  .project
drwxrwxr-x  2 skip skip  4096 Dec 17 12:52  .settings/
-rw-rw-r--  1 skip skip  4833 Dec 17 12:52  STM32G0B1KBUX_FLASH.ld
-rw-rw-r--  1 skip skip  4824 Dec 17 12:52  STM32G0B1KBUX_RAM.ld
drwxrwxr-x  9 skip skip  4096 Dec 17 12:52  Tasks/
drwxrwxr-x  3 skip skip  4096 Dec 17 12:52  Test/
skip@Dell-5510:~/localref/nexus_charger_led$

image

To Reproduce Try to import ST project on Linux.

Expected behavior Project imports correctly.

skiphansen commented 1 year ago

I figured it out. Right clicking in the dialog brings up options, selecting "show hidden files" fixes the issue.

image