Comments (9)
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.
Glad you're able to figure that out.
from phpstormprotocol.
@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:
- GuestOS (where a Web Server runs) has a PHP file at "/home/dev/sites/index.php"
- HostOS (where Virtual Machine with GuestOS runs on) accesses that file via "C:\Users\your_username\Documents\sites\index.php"
- You'll need this config:
projects_basepath: '/home/dev/',
projects_path_alias: 'C:/Users/your_username/Documents/',
Hope that helps.
from phpstormprotocol.
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.
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.
Do you have only 1 project on the Docker VM?
Is the
\\wsl.localhost\Ubuntu\
a network mount on MS Windows?
- 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
- Yes, bassically its kind of a network mount on Win 10
from phpstormprotocol.
I think problem that it doesnt replace anything in file variable
from phpstormprotocol.
Ok, hardcoded like this, it finally works. Pretty dirty solution, gonna check little later and will comment here.
from phpstormprotocol.
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)
- Provided Framework configuration doesn't work HOT 7
- How to manage it to work with projects on vagrant HOT 6
- ActiveX object not available for Windows 10 HOT 3
- Regular expression does not match HOT 19
- Windows 10 - No error but file is not open HOT 23
- got an error while opening file HOT 4
- Remove "//E:JScript" HOT 11
- How to uninstall this? HOT 3
- It work but with error HOT 2
- Popup every time I trigger a link with this protocol HOT 3
- Linux support HOT 5
- Cannot find file 'C:\Windows\system32\W' HOT 7
- Please add to urldecode for linux HOT 3
- The system cannot find the file specified HOT 1
- JetBrains toolbox dir HOT 7
- can't find run_editor.js HOT 2
- Problem with running this on windows HOT 2
- Can open file in PHPStrom8 HOT 6
- Problem with cloning on Windows HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpstormprotocol.