Page 1 of 1

Ndless IDE for wsl

Unread postPosted: 25 Aug 2021, 20:37
by Rankail
I'm installing the ndless sdk using wsl. Which IDE could i use? I had a experience where i corrupted some data of the wsl because i changed files with windows and not trough the linux console so i wanna make sure i'm getting it right.

Re: Ndless IDE for wsl

Unread postPosted: 25 Aug 2021, 20:55
by Ti64CLi++
You could use vscode, which natively support wsl. Check this link : https://code.visualstudio.com/docs/remote/wsl-tutorial ;)

Re: Ndless IDE for wsl

Unread postPosted: 25 Aug 2021, 21:10
by Rankail
I'll try it out once the toolchain is finished - which has been running for almost 2h now because my laptop isn't that fast - and the sdk is fully installed.

Re: Ndless IDE for wsl

Unread postPosted: 26 Aug 2021, 14:50
by SlyVTT
I would say there is no perfect answer when it comes to chose the right IDE. This is very often a matter of own preferences.

VSCode is good, and there are really lots of add-ins available, but the philosophy is a bit different than some can expect (meaning many things must be setup by user, many things are optimised for keyboard use rather than mouse, ...), so may users can be a bit "afraid" or at least "disturbed" when using it (and I need to confess I am one of those).

Code::Blocks is also good. And closer to usual IDE approach but with no integration of GIT or WSL, so this part must be setup manually by user. In my case, I have two Code::Blocks setup, one using the windows version and one using the linux version running on WSL with GUI support (I am using GWSL to correctly setup a X11 server on WSL as I was not able to correctly activate the GUI support on my WSL2). If needed you can have a look here https://www.microsoft.com/fr-fr/p/gwsl/9nl6kd1h33v3?activetab=pivot:overviewtab

BR

Sly

Re: Ndless IDE for wsl

Unread postPosted: 26 Aug 2021, 18:31
by Rankail
I got vs code to running, compiled my first code, ran it in firebird and it worked.
Here is my new problem (not really a problem but it's really slow).
When i save my file in vsc i have to compile it. That's normal. But then i have to copy the file from a file explorer opened in wsl to a file-explorer opened in windows just to drag it into the firebird emulator. Is there some way to make this faster? Like automating the copying from wsl to windows? Maybe you could combine it with running make in the launch.json?

Re: Ndless IDE for wsl

Unread postPosted: 26 Aug 2021, 18:45
by Ti64CLi++
You can access the wsl file system in Windows Explorer if you have a recent enough version. I don't know which one exactly, but you can check it out on the internet.
Otherwise you can always access the windows files system in wsl and save your projects under your C drive, mounted at /mnt/c ;)

Re: Ndless IDE for wsl

Unread postPosted: 26 Aug 2021, 18:51
by SlyVTT
Assuming you have Ubuntu as a WSL distribution, you can access your file also from an windows explorer by using the following path :

\\wsl$\Ubuntu

By default, your projects are certainly in a subdirectory of your home directory :

\\wsl$\Ubuntu\home\xxx

with xxx being your current username.

Hope it helps.

Sly