Skip to content

[Phpstorm Plugin Support] Remote Call (Additional bugreport) #24355

Closed
@pquerner

Description

@pquerner
Q A
Bug report? yes
Feature request? yes
Symfony version 3.4-dev (bd3bc69)

Ticket #24218 was fixed via #24236 , but it introduced an error on Windows machines.

The following error is logged to the users Browser

Uncaught SyntaxError: Invalid Unicode escape sequence

The generated link from the profiler looks like this on a Windows 10 machine:

javascript:var rq = new XMLHttpRequest(); rq.open('GET', 'http://localhost:8091?message=G:\_projects\xxxx\app\Resources\views\user\edit.html.twig:1', true); rq.send(null);

(My browser is Google Chrome Version 61.0.3163.100)

If the URL is opened by hand it correctly opens the file in my PHPStorm IDE (with enabled Remote Call Plugin).

If we manually escape the Windows directory dividers (backslash) with additional backslashes, the URL should look like this:

javascript:var rq = new XMLHttpRequest(); rq.open('GET', 'http://localhost:8091?message=G:\\_projects\\xxxx\\app\\Resources\\views\\user\\edit.html.twig:1', true); rq.send(null);

and is working fine.

This has been reported before here #24236 (comment) but I was asked to create a new issue here #24218 (comment)

I guessed here #24236 (comment) that the generated link variable should again be looked at from a Windows machine. Although its currently unclear where the XHR link is coming from (like guessed here #24236 (comment))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions