PHPStorm recognize URL as Directories/Files

Hi,

This is what's happening:

it recognizes them as paths, not as URLs where I'd like to download the files.

This is what the diagram shows:

How to solve that? I'm on PHPStorm 2018.2

11 comments
Official comment

Thanks for filing an issue (https://youtrack.jetbrains.com/issue/WEB-34164)! It will be fixed ASAP.

Hi there,

Hmm ...

Could you please show the screenshot of the "Settings/Preferences | Editor | Language Injections"

No need to show all entries (there will be 2 screens of them) -- sort them first by Scope column and show those with  "IDE" or "Project" in the Scope column.

0

Thanks for the reply!

 

Unfortunately I've got only built-in in the Scope column:



 

0

IDE version?

Does it work OK in another (brand new) project?

If you disable all 3rd party (not bundled by default) plugins -- will it make any difference?

Have you tried "File | Invalidate Caches" and restart IDE? May help if it's some kind of glitch with indexes... especially if you have updated your IDE recently.

What menu will you see if you place caret (actual caret and not just cursor) onto such warning and hit Alt+Enter?

Maybe it's context dependant? Is it a plain HTML file or what?

 

I don't have better ideas right now. It seems to work OK here...

(P.S. You can always start from scratch by deleting all IDE settings ... but lets leave it will very end).

1

This is my version:

 

PhpStorm 2018.2
Build #PS-182.3684.42, built on July 26, 2018
Licensed to ------- / ------
Subscription is active until June 6, 2019
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

 

I'm on a plain .html file btw now I've seen that this happens only on the files where the dart support is enabled, so I'll ask help there

2

@Alexander Doroshko

Thanks for the reply!

I've the that the issue state was updated to fixed, can I already download that?

I've also tried using EAP Program of my IDE even tough I think that wouldnt have chage so much:

PhpStorm 2018.2.1 EAP
Build #PS-182.3911.19, built on August 1, 2018
Licensed to ------ / ---------

Subscription is active until June 6, 2019
For non-commercial open source development only.
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0 

 

Dart plugin version:

Version: 182.3911.9

0

The issue contains Fix Versions and Fixed in Builds fields. The latter is now empty but it will be updated as soon as the nightly build is done. You'll be able to get the fix when the publicly available IDE version is equal or greater than what you see in these fields. I plan to backport the fix in 2018.2.2. If you continue using EAPs you'll get the fix sooner.

1

@Alexander Doroshko .

Hello again, idk if it's meant to be already fixed, but now I'm experiencing this: 

A relative path such as /js/foo.js is bugged and seen as single files/directories but links like https://example.com/js/foo.js is seen properly.

IntelliJ IDEA 2018.2.3 (Ultimate Edition)
Build #IU-182.4323.18, built on August 28, 2018
Licensed to -------- / Mattia ----
Subscription is active until June 6, 2019
For non-commercial open source development only.
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Dart version: 182.4129.13

0

> A relative path such as /js/foo.js ...

Paths that start with slash are not relative :). Remove leading slash.

0

've misspelled it, anyways here is it what is happening:

 

 


Thanks for the support again!

0

If `HexPanel_Server/js/` folder doesn't exist then this warning looks correct.

0

Please sign in to leave a comment.