Comments (2)
Looking at the screenshot I can tell, that you've copied over contents from https://github.com/aik099/PhpStormProtocol/tree/master/PhpStorm%20Protocol%20(Win) folder directly to the C:\Program Files\
folder. That is incorrect.
You should copy https://github.com/aik099/PhpStormProtocol/tree/master/PhpStorm%20Protocol%20(Win) folder itself into C:\Program Files\
so at the end you'll have a C:\Program Files\PhpStorm Protocol (Win)
folder and any further actions should happen in there.
from phpstormprotocol.
Yes, the reason for pop occus is the wrong path of run_editor.js. But for phpstorm://open?file=%file&line=%line
format , Your regexp is not suitable.
So i rewrite the script for myself.
var settings = {
bin_path: "D:\\Program Files\\JetBrains\\PhpStorm 2022.3.2\\bin\\phpstorm64.exe ",
window_title: 'PhpStorm'
};
var url = decodeURIComponent(WScript.Arguments(0));
//WScript.Echo(url);
if(url.indexOf('phpstorm') != -1){
var line = url.substring(url.indexOf('&line=')+6);
url = url.substring(url.indexOf('file='));
var file = url.substring(url.indexOf('file=')+5, url.indexOf('&'));
var editor = settings.bin_path+'--line %line% "%file%"';
var command = editor.replace(/%line%/g, line)
.replace(/%file%/g, file)
.replace(/\//g, '\\');
//WScript.Echo(command);
var shell = new ActiveXObject('WScript.Shell');
shell.Exec(command);
shell.AppActivate(settings.window_title);
}else{
WScript.Echo(url.indexOf('错误的url协议'));
}
Which is less complex and works ok.
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
- Mac pstorm in usr/local/bin HOT 28
- 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 1
- 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
- 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.