About using MS-VS code with TXT4.0 SD-card

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
vleeuwen
Beiträge: 1609
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

About using MS-VS code with TXT4.0 SD-card

Beitrag von vleeuwen » 03 Feb 2022, 00:12

MS-Visual Studio Code works fine with the TXT4.0 and Python.
However the the extension, which are needed, are asking a lot of storage space.
Moving the .vscode-server to a SD-card could solve disk full problems.
It is also possible to allocate the MS-Visual Studio Code on the SD-card.
Use Putty for the remote command box.

See also the article about this subject.

• Navigate to a desired project space directory from remote desktop terminal

Code: Alles auswählen

cd /opt/ft/workspaces/ext_sd/mmcblk1p1/
• Move vscode-server to this area

Code: Alles auswählen

  mv  /opt/ft/.vscode-server/ /opt/ft/workspaces/ext_sd/mmcblk1p1/ 
• Create symlink of .vscode-server in your home directory. Use absolute paths in this command to avoid cyclic links.

Code: Alles auswählen

ln -s /opt/ft/workspaces/ext_sd/mmcblk1p1/.vscode-server  /opt/ft/.vscode-server
• Confirm no cyclic links with below command, it should not return anything.

Code: Alles auswählen

find -L ./ -mindepth 15
• Reconnect from your MS-VS Code again.

After the first start of MS-VSC: /opt/ft/.vscode-server
Target SD-card: /opt/ft/workspaces/ext_sd/mmcblk1p1/ (after starting the TXT with a SD-card mounted. Verify with for example FIleZilla.
software enigineer/teacher/advisor
Google translate
http://tescaweb.nl/Carel/?p=713

kräml
Beiträge: 305
Registriert: 14 Aug 2020, 06:47

Re: About using MS-VS code with TXT4.0 SD-card

Beitrag von kräml » 03 Feb 2022, 08:44

Hey,

thats very intresting. I'm working with TX-PI and VS-Code remote extension. Thats very fine to see, thats works on TXT4 also.

Kräml

Antworten