Visual Studio Code installation with WSL 2 - visual-studio

I have WSL 2 installed and running well and I am trying to install VSC to debug my code.
I already use (and have installed) Visual Studio Code on Windows 10.
The first thing I did was to install the .deb package provided on VSC (sudo apt install ./code_1.46.1-1592428892_amd64.deb. Everything went fine. When running code . I was prompted with
To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the 'Visual Studio Code' command in a WSL terminal just as you would in a normal command prompt.
I proceeded to uninstall VSC from my Ubuntu with sudo apt-get purge code and now I am a bit stuck.
On Windows side I installed the Remote - WSL extension and Remote Development on the existing VSC installation, but now I cannot launch it from WSL.
Any workaround?
Later edit : I know it might sound dumb, but it works by just closing all instances of WSL bash and starting all over again. Now I just have the curiosity of what did I install and what did I uninstall? And why is this non persistant?

when you run code . from inside WSL it should install a small vs code server in your home directory (~/.vscode-server) and then lunch vs code. If that doesn't work post the error message.

Related

Cannot install Aptana Studio on Windows 10: Failed to Correctly Aquire installer_git_windows.exe file: CRC Error

Whenever I run the standalone installer for Aptana Studio I get the following error:
Failed to Correctly Aquire installer_git_windows.exe file: CRC Error
I'm running Windows 10, I've looked online for hours and have found no solution.
I had this problem solved by installing the Git from http://go.appcelerator.com/installer_git_windows.exe.
I had the same error. I believe it still has something to do with the NodeJS.
I went to this site https://nodejs.org/en/download/ use the 32 bit version for Windows 10. Then installed an older version of Aptana https://aptana-studio.en.uptodown.com/windows/versions with the 3.4.2 and tada.. it worked. I don't mind the older version for now.
Rename the installer file to "aptana.exe"
Move that file to c drive
Open CMD in administrator mode Type "c:/aptana.exe /passive /norestart"
Press enter
After some process, a new exe file will be available on desktop which you can use.
It worked for me.
Simply download git from https://git-scm.com/download/win and install it manually before launching the Aptana installer and it will work.

CygWin mintty.exe (x64) ends immediately on WIndows 7 (64)

After some M$ Windows updates Cygwin mintty (desktop shortcut installed by setup-x86_64.exe) starts but ends immediatelly. I tried to install all missing DLL's which can be observed with dependency walker. I installed 2012 and 2008 Microsoft Redistributable packages which were missed on My Windows 7. I installed both builds (x86 and x64). But it didn't help me to get my CygWin back, because as far as I can see from mintty's logs there is a security issue. I've got a log with the only row:
This account is currently not available.
I tried to create passwd file with CygWin's mkpasswd and with this command:
getent passwd %USERNAME%
It didn't help also and I don't have any ideas what to do next.
Now I've got a CygWin installation (Cygwin DLL 2.9.0) with mintty ends immediatelly. I can run Cygwin.bat and use the most of CygWin's functionality, but mintty is more comfortable than M$ Connhost and I want it back.
Something have happened, but today, after an ordinary reboot, mintty begun working.
P.S. It has begun after "Definition Update for Windows Defender - KB915597 (Definition 1.253.822.0)" and ended after "Definition Update for Windows Defender - KB915597 (Definition 1.253.973.0)".

Previously Installed Anaconda Site Packages Not Working

I am running into an issue where default site packages are no longer working in a jupyter notebook. However, when I send a script to the computer via windows cmd to install pip "package name", the package works again. Site Packages were working properly prior to yesterday. This is what changed:
Yesterday, I ran a script via windows cmd to install a few packages and to activate a few widget extension in the jupyter notebook. Because I ran the script within windows cmd, could windows shell be taking precedence over the anaconda shell?
Troubleshooting: For the default packages that were note working, I reran the install pip "package name" in a windows shell and the package started working again, along with the new packages I installed yesterday with windows cmd.
When I look in c:\Anaconda3\Lib\site-packages the modified date for the "reinstalled" packages shows the original date that I installed the software.
This software is very new to me and I am still trying to learn the logic of it along with the process. Any help or recommendations would be greatly appreciated!
OS: Windows 7 64-bit
Software: Python 3.5.2 (Anaconda3 4.1.1 64-Bit)

How do I install XAMPP to another directory on Windows 10?

I'm having the hardest time installing XAMPP on C:\Development\xampp on Windows 10. I would like my C drive to be as clean as possible so I'm moving as many dev tools to the Development folder as I can to achieve this. I get an error towards the end of the XAMPP installation about a problem running the post-install step. It then suggests I install Microsoft Visual C++ 2008 Redistributable, which I already have the 2012 version installed. Originally XAMPP was installed on C:\ with no problems.
How do I install XAMPP to the above directory or any directory other than C:\?
Edit:
I have tried installing XAMPP portable and now receive the following error
I'm no longer on Windows so I can't re-test, but as I recall, the easiest way I managed this was to use the portable version of xampp.
Make sure to run the shell setup script so that it recognizes it's location properly.
You can get it from Apache Friends
Or from PortableApps.com

IDE C9 install locally from GitHub

do you have any "how-to" for that?
Installing cloud9 sdk is much simpler now. Make sure you have nodejs and git installed.
Then run
git clone https://github.com/c9/core sdk
cd sdk
./scripts/install-sdk.sh
To launch cloud9 use
node server.js -p 8181 -l 0.0.0.0 -a :
This works on windows too, when running from cygwin or msys (which comes with default git installation). If you do not have python2.7 and visual studio installed npm will not be able to build pty.js and terminals won't work, but everything else will work normally.
On windows there is also bin/launch.bat script to launch cloud9 from explorer gui

Resources