Scott, this is EXACTLY what I was looking for – trying to understand how to use VSCode and edit files on Windows 10, but running them on Linux. Thank you sir! I don't know what Microsoft is paying you, but they should DOUBLE it.
Have everything setup like you – GETTING ERROR when using 'rails generate controller' alanflint@XXXXXX:/mnt/c/Users/Alan/rails_code/Sites/myrubyblog$ rails generate controller home index /home/alanflint/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/app_loader.rb:40: warning: Insecure world writable dir /home/alanflint/.rbenv/versions in PATH, mode 040777 and just has a blinking cursor waiting for me to type
I recently got a new notebook at office and it has Windows 10 running inside.I am trying to use Linux subsystem, but faced some problems since linux subsystem and Windows Store do not work behind a proxy.
I feel sooooooo stupid. I have long wondered how to edit source files in windows (visual studio) used in linux (python) and it never for once even crossed my mind to create the linux project in my visual studio project folder. Now it is common sense. Linux can see windows but windows should not see linux. I might even create a shallower file path on my data drive just for linux projects I want to code with windows tools. Thanks Scott.
indeed, the key difference is to use mnt. if you don't, bash won't see anything not created by itself (permission issues). you could `touch file` then modify it in Windows, but that creates horrible artifacts.
thanks for your effort, but still have problem with bash, if u start to install packages at 50% or less it will freeze, when u want to close the shell it will freeze, if u restart your pc, and want to run bash it will never work