[tasklist] Compiler submodule

"Tim Lebedkov" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <004501c2dc31$4a0f2550$158efe91@timpc>
Hello,

an attachment to this eMail is a new submodule: compiler. It replaces
default CompilationEngine
and creates a SuggestionProvider for compilation errors. Each time you
compile
something (e.g. F9) it recreates suggestions of this type (use internal
compilation for better results).

There are some things we have to discuss:
1. I don't know whether it is a good idea to create a submodule for it. It
is really small.
   That's why I did not committed it yet
(2)(Tor) It would be very nice to combine this functionality with the
    functionality which is already in "javaparser"; which generates
    not just suggestions for the errors themselves, but additional
    suggestions to "autofix" the errors. For example, if you get
    "undefined class: File", it generates the suggestion
    "import class java.io.File".  The code which analyzes errors
    is tightly coupled to the java parser annotations right now,
    so that would need to be refactored in some way.
(3)(Tor) On the other hand, it might be nice to keep it optional for two
    reasons:
    (a) because it's tied in to the user-activated compilation,
        it follows a different rescan model than the other suggestion
        providers.   For example, presumably errors can occur in
        lots of files, not just the one you're looking at, and all
        these should be included. When should errors be cleared -
        not until next recompile? etc. etc.
    (b) It replaces the builtin compilation engine. I only took
        a brief look, but it looked as though it duplicated rather
        than delegate to the builtin engine, which means the
        architects (yarda, jesse) might have some objection to making
        it part of the standard release.
4 ...

SUGGESTIONS are welcome

Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Compiler.zip (application/x-zip-compressed, 19.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.