Sunday, May 16, 2021

How to run Visual Studio Code with WSL

Install Visual Studio Code on Windows.

Then make sure we install Visual Studio Code extension Remote - WSL.

Optional step: Windows has a new terminal tool that is good to communicate with Linux running in WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations. You can install it here or github.

From the WSL command line tool, in the source code folder, we can start Visual Studio Code using command Code .

And from Windows, we can edit and compile source code in WSL.

Windows Subsystem for Linux

Windows Subsystem for Linux is a great tool that let developers try Linux tools, applications directly in Windows. The Linux kernel and Windows kernel can now share system resources, such as memory and CPU. 
I am trying some open sources that cannot run on Windows. They are working well with WSL2.
  • Rocket.Chat: I compiled and run successfully.
  • Apache Airflow: Run successfully.
Beside that, from Windows, developers can use tools to code or interact with the applications, source code in WSL system. Some are:
  • Windows Terminal supports console to Linux system. 
  • Visual Studio Code supports development with source code in Linux system.

Sunday, August 28, 2016

Collection

"You take the blue pill, the story ends. You wake up in your bed and believe whatever you want to believe. You take the red pill, you stay in Wonderland, and I show you how deep the rabbit-hole goes."
―Morpheus (Matrix)

Monday, June 8, 2015

The HTTP Filter DLL DefaultAddonFilter.dll failed to load. The data is the error.

Today, I had this error on my Dynamics CRM server and tried solution in this link (http://ms-crm-2011-beta.blogspot.com/2011/09/could-not-load-all-isapi-filters-for.html) but the error still existed. Maybe this is not my situation.
Then I opened "Uninstall or change a program" of Windows and recognized that the library "Microsoft Visual C++ 2013 Redistributable(x64)" was missing. So I downloaded it from Microsoft download website and installed it. And it fixed the error.

Permission error when running "Power Platform Backup Environment" in Azure DevOps

 When we run action "Power Platform Backup Environment" in Azure Devops with an App Registration account, we get the error "P...