IDEA freezes when initiating ApexDoc comments

Issue #1126 resolved
Scott McClung created an issue

I'm running into a repeatable issue on the mac where IDEA freezes when initiating a doc block with '/**'. The freeze happens immediately after typing the second asterisk. It's a hard freeze that requires a force quit.

I've tried Invalidating the cache and disabling the ApexDoc comments but the problem persists.

Attached are the logs and thread dumps from today. I'm not sure what, if any, IC2 debug options would be helpful so this may be short on info.

Any thoughts on any workarounds?

Comments (4)

  1. Scott Wells repo owner

    Scott, this seems to be similar to an issue reported by a handful of other folks. I can see the deadlock in the thread dumps you've provided (thanks for those!). Basically some other IDE thread has locked the stub index used by IC, and IC is blocked waiting on it. I can't tell why that lock is never being released just yet, though. Let me investigate a bit more.

  2. Scott Wells repo owner

    I'm unable to reproduce this with the new ApexDoc formatter in 2.1.1.1. Please feel free to reopen if you still see the behavior.

  3. Log in to comment