spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
568 stars 102 forks source link

Ray not open files in PHPStorm, Atom, VScode in Ubuntu 20.04 #611

Closed abkrim closed 2 years ago

abkrim commented 2 years ago

I put same issue in discussion. After some time, put here, because I think is a mistake.

On documentation, not show anything about problems with ray and open with external apps.

I have tried different configurations with different editors, opening the files from the ray itself.

In all cases, the error message is the same: There is no manager for the archive.

I think the command to open files is wrong, and that is why the error occurs.

Versions

To Reproduce

Expected behavior Open the file when I click on it

Screenshots Castris_20211221_115336 Castris_20211219_190821

Translate error: "Could not find any application or driver for ... [phpstorm|vscode|atom]

Desktop (please complete the following information):

Working on shell

If I like open in shell any file any of below commands works in my computer.

> phpstorm server.php
> atom server.php
> code server.php
AdrianMrn commented 2 years ago

I think for Linux you need to install URL protocols, eg for code: https://github.com/shengyou/vscode-handler or phpstorm: https://github.com/aik099/PhpStormProtocol

Reopen the issue if this doesn't solve your problem!

abkrim commented 2 years ago

Hi. Sorry but that doesn't quite work almost with PHPStorm

Ray send url decode %2Fhome%2Fuser.... instead a normal string '/home/user/...'.

Castris_20211221_192924

README of phpstrom-url-handler

## Usage

It can be used to open files at the specified line from within the browser by
placing a link of the following kind in the markup:

    <?php
    $file = "/path/to/filename.php";
    $line = 35;
    print "<a href='phpstorm://open?url=file://$file&line=$line'>Open with PhpStorm</a>";
    // Alternate Syntax to match PhpStorm 8 for the Macintosh
    print "<a href='phpstorm://open?file=$file&line=$line'>Open with PhpStorm</a>";
    ?>

Thanks.

AdrianMrn commented 2 years ago

I've added this issue to our internal issue tracker and will have a look at it sometime in the next couple of weeks!

abkrim commented 2 years ago

A lot of thanks.

AdrianMrn commented 2 years ago

In the next version (releasing in a couple of weeks), you can set a custom editor url: image

Please let me know if the URL is still being decoded, and I'll have another look at this.