BeetleJuice
BeetleJuice

Reputation: 40886

PhpStorm: set a specific library version as a project library

I am trying to make JQuery 1.8.3 and JQuery UI 1.9.2 project libraries in PhpStorm 2017. When I go to Settings >> Languages & Frameworks >> Javascript >> Libraries, there is a dropdown near the top with two options:

enter image description here

What's the recommended way to get IDE support for the specific versions of these libraries that I intend to use on my project?

Update

I have downloaded the uncompressed jQuery 1.8.3 file and saved it on disk. Then from Settings >> Languages & Frameworks >> JavaScript >> Libraries I selected Add... to link to that custom file and the jQuery documentation.

With @LazyOne's help, I was even able to download what are hopefully the right docs from api.jquery.com. However, the results are mixed:

From good...

enter image description here

To poor...

enter image description here

To non-existent...

enter image description here

To errors...

enter image description here

Upvotes: 0

Views: 85

Answers (1)

Dmitrii
Dmitrii

Reputation: 3557

I'm having the same results and this looks like a bug. I've tried the same project in 2016.3.3 and it showed me correct documentation while in 2017.2.3 IDE displays 2 identical links that do not work. You might want to report this at http://youtrack.jetbrains.com/issues/WEB#newissue=yes. This is also looks like a https://youtrack.jetbrains.com/issue/IDEA-77527 regression

Upvotes: 1

Related Questions