Mac: A certain file won't open an editor tab

After I upgraded to 11.0.3, there's a single file in one project that will not open in WebStorm (Mac).  I have no idea why. There's no error message.

Attached is a screenshot showing that when I click on the file, it shows up in the breadcrumb view at the top of the Webstorm window, but no editor tab opens.

Does anyone have an idea what could be happening?

Comment actions Permalink

With WebStorm 12 EAP I actually get an AssertionError:

Attempt to create a composite block with no children
java.lang.AssertionError: Attempt to create a composite block with no children
 at com.intellij.webcore.formatter.CompositeBlock.<init>(
 at com.intellij.webcore.formatter.chainedMethods.CallChainBlockBuilder$ReferenceBlock.<init>(
 at com.intellij.webcore.formatter.chainedMethods.CallChainBlockBuilder.a(
 at com.intellij.webcore.formatter.chainedMethods.CallChainBlockBuilder.buildBlocks(
 at com.intellij.lang.javascript.formatter.blocks.JSBlock.buildChainBlocks(
 at com.intellij.lang.javascript.formatter.blocks.JSBlock.getSubBlocks(
 at com.intellij.psi.formatter.common.NewLineBlocksIterator.a(
 at com.intellij.psi.formatter.common.NewLineBlocksIterator.a(
 at com.intellij.psi.formatter.common.NewLineBlocksIterator.a(
 at com.intellij.psi.formatter.common.NewLineBlocksIterator.hasNext(

Comment actions Permalink

Does the problem persists after invalidating caches (File/Invalidate caches, Restart)? If yes, can you attach a file that shows up the issue plus your settings (File/Export settings)?

Comment actions Permalink

Invalidate and restart did not fix the problem. Still getting the exceptions in WebStorm 12 EAP.  Attached are my settings and the individual file.

Comment actions Permalink

I just found another file that has the same issue.

I also did a full

rm -rf repo
git clone [myrepo]

and the error persists. I still cannot open either of these files.

Comment actions Permalink

Can't recreate in EAP when using your settings and files... Please try creating a new project and copy both attachjed files to it - can you open these files in this new project?

Comment actions Permalink

problem is tracked as, please follow it for updates

Comment actions Permalink

Per that issue, I removed comments that I had between chained statements:

function getSAMLToken (req, res, next) {

  if (req.body.tokenid && req.body.agentid) {
      wrap(require('rest/interceptor/timeout'), { timeout: 15000 }).
      wrap(require('rest/interceptor/basicAuth'), {
username: config.get('security.pingOne.clientId'),
        password: config.get('security.pingOne.secret')
path: '' + req.body.tokenid }).

the file will now open, but syntax highlighting stops working about halfway through the file.  If I change a line of a chained call, I get an exception.

For example, if I change




I get this exception:

java.lang.IndexOutOfBoundsException: Index: 152, Size: 0
 at java.util.ArrayList.rangeCheck(
 at java.util.ArrayList.get(
 at com.intellij.openapi.editor.impl.view.TextLayoutCache.a(
 at com.intellij.openapi.editor.impl.view.TextLayoutCache.invalidateLines(
 at com.intellij.openapi.editor.impl.view.EditorView.invalidateRange(
 at com.intellij.openapi.editor.impl.EditorImpl$1.attributesChanged(
 at com.intellij.openapi.editor.impl.EditorImpl$1.afterAdded(
 at com.intellij.openapi.editor.impl.MarkupModelImpl.fireAfterAdded(
 at com.intellij.openapi.editor.impl.MarkupModelImpl.a(
 at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(
 at com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil.a(
 at com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil.addHighlighterToEditorIncrementally(
 at com.intellij.codeInsight.daemon.impl.HighlightingSessionImpl$1.process(
 at com.intellij.codeInsight.daemon.impl.HighlightingSessionImpl$1.process(
 at com.intellij.util.containers.TransferToEDTQueue.processNext(
 at com.intellij.util.containers.TransferToEDTQueue.access$300(
 at com.intellij.util.containers.TransferToEDTQueue$
 at java.awt.event.InvocationEvent.dispatch(


The syntax highlighting I'm able to resolve by finding where it stops, and hitting ENTER after the last ".".  It appears that there is definitely something wrong with how that last dot on a line chaining feature is implemented.


Please sign in to leave a comment.