h7r
h7r

Reputation: 5074

IntelliJ not creating method on unknown usage

On IntelliJ 12, contrary to what is said on [1], upon writing a method name that is not yet defined on its usage location, is not bringing any popup.

In the example below, for instance, given an already existing class SomeClass, I would expect IntelliJ, after writing "notYetDefinedMethod", to offer me to create a static void method on SomeClass, which does not happen.


    void foo () {
        SomeClass.notYetDefinedMethod ();
    }

This is the same behavior observed by user lichengwu (on answer from CrazyCoder) in question [2], but there it seems to be still unanswered.

How to achieve the behavior mentioned in [1]?

[1] http://www.jetbrains.com/idea/features/code_generation.html#link11

[2] How to generate a void method in IntelliJ IDEA?

Upvotes: 0

Views: 192

Answers (1)

h7r
h7r

Reputation: 5074

After further research I discovered that an issue [1] with the Coffeescript plugin can cause intentions not be shown. In sum, I disabled the Coffeescript plugin and the now I have again intentions and such completions.

[1] http://youtrack.jetbrains.com/issue/IDEA-97685

Upvotes: 2

Related Questions