windows-subsystem-for-linux

Hugo version not updating to latest

寵の児 提交于 2021-02-20 02:51:31
问题 I am trying to work with the Hugo static site generator. Problem: Hugo is saying it is updated to the latest version but it is not. $ hugo version Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate: 2018-04-25T17:16:11Z But the latest version is now v0.70.0 System: Windows Subsystem for Linux via the terminal in Visual Studio Code v1.45.0 Any help would be much appreciated thank you all. 回答1: If you've installed it via the apt package manager, you might be out of luck there, because the

how to configure Vscode to debug Python using WSL?

让人想犯罪 __ 提交于 2021-02-19 06:26:40
问题 I found the configuration for cpp (https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/Debugger/gdb/Windows%20Subsystem%20for%20Linux.md) and tried to change it for python debugging but it doesn't work. Any suggestion to make it work? 回答1: It should be mentioned that the Python extension for VS Code does not officially support WSL yet, but the enhancement request has been made and we do plan on supporting it. 回答2: This is now supported and just requires installing the

Is there a way to get VS code work with git worktree? (Windows with WSL)

十年热恋 提交于 2021-02-19 01:47:48
问题 I like to keep on repository checked out in several worktrees with git worktree to easily work on different branches simultaneously. Yet VS code does not seem to recognize git as scm when it is in a git worktree folder. I couldn't find anything in the docs about this or an extension. Are there any ideas on how I could get VS code to support git features in an external worktree? 回答1: I didn't think this would matter, but it turns out... I'm on Windows and run my git command line in Windows

How to translate the wslpath /home/user/ to windows path

二次信任 提交于 2021-02-18 18:40:14
问题 I use Linux subsystem of windows 10(windows 10 version 1803) I can use command line: user@laptop:~$ wslpath -w /c/ C:\ But when I try to use user@laptop:~$ wslpath -w ~ wslpath: /home/user: Result not representable Even I use: user@laptop:~$ wslpath -w /home/user wslpath: /home/user: Result not representable why? how to translate the /home/user to windows path? my home folder path in windows is C:\Users\winuser\AppData\Local\lxss\home I expect some command line can give me return that string.

Can't connect to WSL2 localhost server from WSL2 docker container

时间秒杀一切 提交于 2021-02-16 13:20:28
问题 I am running a simple web server on https://0.0.0.0:4000 (accessible also as https://local.phx-cd.shoepping.at:4000 with mapping to 127.0.0.1 in Ubuntu hosts file) on my WSL2 Ubuntu. I can connect to it from both Ubuntu and Windows host - so far so good. But additionally, in my Docker for Win with WSL2 integration, I run a selenium chrome container which is connecting and testing stuff on that web server (using bridge), but it can't connect to it! I connected to the container and tried to

How to characterize a workload by obtaining the instruction type breakdown?

醉酒当歌 提交于 2021-02-15 07:44:35
问题 I want to obtain the percentage of memory read-write instructions in a test program, preferably dynamically. Apart from counting instructions in the gdb asm dump, which is static anyway, is there an easier way to obtain it? Valgrind provides total heap usage. Perf has some nice features but does not support WSL. Pin has an instruction count capability but it I am not sure if it supports WSL. 回答1: (Update: PIN reportedly doesn't work under WSL. But it doesn't require perf counters so it's

python debug adapter not being found in vscode - WSL:Ubuntu

倾然丶 夕夏残阳落幕 提交于 2021-02-10 14:43:36
问题 I'm trying to debug a python script in vscode using the Remote WSL extension with Python 3.9.1. When I start debugging mode(F5), the below message is immediately shown: Couldn't find a debug adapter descriptor for debug type 'python' (extension might have failed to active) The message offers me to Open launch.json , I still don't know what I have to change in my json file, below are my current settings: { "version": "0.2.0", "configurations": [ { "name": "Python: Current File", "type":

WSL - GEDIT Unable to init server: Could not connect: Connection refused [closed]

﹥>﹥吖頭↗ 提交于 2021-02-06 22:05:57
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'm using Ubuntu 18.04 as Windows Subsystem for Linux on my Windows 10 machine. I've installed gedit without any errors or warnings. But whenever I try to use the command gedit something (here something is a filename) I get this error: Unable to init server:

WSL - GEDIT Unable to init server: Could not connect: Connection refused [closed]

房东的猫 提交于 2021-02-06 22:01:23
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'm using Ubuntu 18.04 as Windows Subsystem for Linux on my Windows 10 machine. I've installed gedit without any errors or warnings. But whenever I try to use the command gedit something (here something is a filename) I get this error: Unable to init server:

WSL - GEDIT Unable to init server: Could not connect: Connection refused [closed]

三世轮回 提交于 2021-02-06 22:00:34
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'm using Ubuntu 18.04 as Windows Subsystem for Linux on my Windows 10 machine. I've installed gedit without any errors or warnings. But whenever I try to use the command gedit something (here something is a filename) I get this error: Unable to init server: