This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246023 - Panel for selecting GroovyDoc should be more descriptive
Summary: Panel for selecting GroovyDoc should be more descriptive
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-26 16:06 UTC by blake1024
Modified: 2014-07-29 02:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blake1024 2014-07-26 16:06:30 UTC
Given groovy file with:


public class NewClass {
    String s;
    s.
}

Typing the period after the s, or ctl-space after that, doesn't provide code completion (or a list of possible methods).

I have the JavaDocs correctly configured because it works with Java files.

Also, when you go to Tools / Options / Miscellaneous / Groovy

There is a place for Groovy Doc.  What goes there?  Groovy seems to come with docs in html and pdf formats only.

Thanks!
Comment 1 Martin Janicek 2014-07-28 09:15:59 UTC
Code completion doesn't show any methods because the context is wrong. Actually the issue is more that the code completion shows few items - code abbreviations, which shouldn't be present too (see issue 149976). If you place your piece of code inside of any method, e.g.

class NewGroovyClass {
	
    public void method() {
        String s;
        s.
    }
}

You will see correct set of possible fields/methods.

About the documentation, you need to setup your Groovy Docs first. Go to Tools / Options / Miscellaneous / Groovy and simple choose the directory where your HTML doc lies (something like /home/martin/Downloads/groovy-2.4.0-beta-1/html).

But agree the description about what should be chosen could be more descriptive.
Comment 2 Martin Janicek 2014-07-28 09:18:09 UTC
Decreasing priority and changing the issue summary. I will update the description to be more understandable. The rest of the report was (hopefully :)) explained in comment 1.
Comment 3 Martin Janicek 2014-07-28 10:58:07 UTC
Description updated in change-set: web-main #d0325e8a7885
Comment 4 Quality Engineering 2014-07-29 02:32:39 UTC
Integrated into 'main-silver', will be available in build *201407290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d0325e8a7885
User: Martin Janicek <mjanicek@netbeans.org>
Log: #246023 - Panel for selecting GroovyDoc should be more descriptive