GithubHelp home page GithubHelp logo

Comments (9)

aik099 avatar aik099 commented on September 25, 2024 1

You need to debug it somehow (maybe using MsgBox or real-time debugging if such exists):

  • what URL comes in
  • what URL comes out
  • what gets replaced to what

Probably it has something to do with $ in URL.

from phpstormprotocol.

aik099 avatar aik099 commented on September 25, 2024 1

Glad you're able to figure that out.

from phpstormprotocol.

aik099 avatar aik099 commented on September 25, 2024

@vladimirbalin , I can't give you an exact answer, because I don't know the path to files inside a Docker, but here is an example, that might help:

  1. GuestOS (where a Web Server runs) has a PHP file at "/home/dev/sites/index.php"
  2. HostOS (where Virtual Machine with GuestOS runs on) accesses that file via "C:\Users\your_username\Documents\sites\index.php"
  3. You'll need this config:
projects_basepath: '/home/dev/',
projects_path_alias: 'C:/Users/your_username/Documents/',

Hope that helps.

from phpstormprotocol.

vladimirbalin avatar vladimirbalin commented on September 25, 2024

Guest OS Docker path:

/var/www/html/public/index.php

HostOS path of the same file:

\\wsl.localhost\Ubuntu\home\vladimirb\projects\learn\e-com-laravel\public\index.php

Tried some combination of these pathes, but still dont get it.

But most often, when executing this script, a file was created and opened in the directory "C:\home\vladimirb\projects\learn\e-com-laravel...".
So its just takes file from

phpstorm://open?file=/home/vladimirb/projects/learn/e-com-larave/resources/views/welcome.blade.php&line=20

and appends to C:/ by some reason

e-com-laravel is the name of the project folder where .idea exists

from phpstormprotocol.

aik099 avatar aik099 commented on September 25, 2024

Do you have only 1 project on the Docker VM?

If that is so, then the following configuration would do the trick:

projects_basepath: '/var/www/html/public/',
projects_path_alias: '\\wsl.localhost\Ubuntu\home\vladimirb\projects\learn\e-com-laravel\public\',

Is the \\wsl.localhost\Ubuntu\ a network mount on MS Windows?

from phpstormprotocol.

vladimirbalin avatar vladimirbalin commented on September 25, 2024

Do you have only 1 project on the Docker VM?

Is the \\wsl.localhost\Ubuntu\ a network mount on MS Windows?

  1. Yes, at once it only runs 1 project, but still doesnt work. It creates all directories and opens well but in C:\home\vladimirb...*file with exception*&line=132
  2. Yes, bassically its kind of a network mount on Win 10

from phpstormprotocol.

vladimirbalin avatar vladimirbalin commented on September 25, 2024

I think problem that it doesnt replace anything in file variable

Screenshots

Screenshot_2
Screenshot_1

from phpstormprotocol.

vladimirbalin avatar vladimirbalin commented on September 25, 2024

Ok, hardcoded like this, it finally works. Pretty dirty solution, gonna check little later and will comment here.

Screenshot

Screenshot_3

from phpstormprotocol.

vladimirbalin avatar vladimirbalin commented on September 25, 2024

We were need to replace(actually just add to start of the line) first '/' with the '//wsl$/Ubuntu', so we need to do like this:

projects_basepath: '/',
projects_path_alias: '//wsl$/Ubuntu/',

from phpstormprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.