Show JavaScript reference documentation

Hello,

 

is there a way to show the JavaScript reference documentation for standard type functions like Array.prototype.slice()?

 

When I press Ctrl + Q to show the documentation I always get  an error "Cannot fetch remote documentation: internal error". 

I am connected to the internet and updating WebStorm usually works fine.

 

Thank you,

Stefan

0
5 comments

Both Ctrl+Q (quick documentation) and Shift+F1 (external documentation) work for me. Please can you provide a code snippet I can use to recreate the issue plus your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)?

0
Avatar
Permanently deleted user

I am very sorry about this... Everything seems to work after I have rebooted my machine... sorry for that. :(

0
Avatar
Permanently deleted user

Today I have received the error again.

I am on Ubuntu 16.04 using WebStorm 2017.1.4.

This is added to the log file after I have executed Ctrl + Q:

2017-06-27 10:02:57,720 [5256004] INFO - mentation.DocumentationManager - Argument for @NotNull parameter 'file' of com/intellij/webcore/libraries/ScriptingLibraryTable$FileStateFinder.getFileState must not be null 
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'file' of com/intellij/webcore/libraries/ScriptingLibraryTable$FileStateFinder.getFileState must not be null
at com.intellij.webcore.libraries.ScriptingLibraryTable$FileStateFinder.getFileState(ScriptingLibraryTable.java)
at com.intellij.webcore.libraries.ScriptingLibraryTable.getFileState(ScriptingLibraryTable.java:150)
at com.intellij.webcore.libraries.ScriptingLibraryManager.getFileState(ScriptingLibraryManager.java:303)
at com.intellij.webcore.libraries.ScriptingLibraryManager.isLibraryFile(ScriptingLibraryManager.java:312)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.filterResolveResultsByLibraryScope(JSResolveUtil.java:741)
at com.intellij.lang.javascript.documentation.JSDocumentationProvider.generateDoc(JSDocumentationProvider.java:459)
at com.intellij.lang.documentation.CompositeDocumentationProvider.generateDoc(CompositeDocumentationProvider.java:144)
at com.intellij.codeInsight.documentation.DocumentationManager$DefaultDocumentationCollector.a(DocumentationManager.java:1146)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1153)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:90)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:146)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:144)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:90)
at com.intellij.codeInsight.documentation.QuickDocUtil.runInReadActionWithWriteActionPriorityWithRetries(QuickDocUtil.java:96)
at com.intellij.codeInsight.documentation.DocumentationManager$DefaultDocumentationCollector.getDocumentation(DocumentationManager.java:1144)
at com.intellij.codeInsight.documentation.DocumentationManager.a(DocumentationManager.java:717)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:418)
at com.intellij.util.Alarm$Request.access$700(Alarm.java:343)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:385)
at com.intellij.util.Alarm$Request.run(Alarm.java:396)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:237)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

I have set the cursor on some and pressed Ctrl + Q:

if(myArray.some(x => x === 'foo')) {
// do something
}

Thank you and sorry for the circumstances

0

Can't recreate with provided code snippet:

Can you replicate the issue in a new project? Looks as if something is wrong with project library definitions...

0
Avatar
Permanently deleted user

Hello Elena,

sorry for my late response. I wanted to test things for some time. It seems you were right and there was something wrong in my project. I have created a new one and from that point of time everything works like a charm.

Thank you very much for your support.

 

0

Please sign in to leave a comment.