Check in first pass of a "-f" option for ProblemsCommand which#293
Check in first pass of a "-f" option for ProblemsCommand which#293cmore-zz wants to merge 1 commit intoervandew:masterfrom
Conversation
filters warnings (not errors) to those for the current file.
|
I just got a chance to look at this and I have a couple of questions:
It feels weird to me to have a -f argument on a command that operates project wide. I'm not familiar with how emacs-eclim utilizes the java_src_update vs the problems command so I don't know what a typical workflow in emacs would look like. |
|
First of all, thanks for your response and getting back to me. I appreciate you taking the time to do so. So, emacs-eclim, like eclipse itself, only has a single place for problems to display (for emacs-eclim, this is a "*eclim: problems_" buffer). The JSON returned from java_src_update is not currently acted upon by emacs-eclim. Instead, a complete update of the _eclim:problems* buffer is queued pending idle. This is similar to eclipse, where there's generally a single global "problems" tab. In the eclipse UI, one can change (via configuration) how global or local the contents of that tab are. For example, I have mine set such that warnings are local to the current file or selection, but errors are global. I'd like to have the equivalent behavior in emacs, so I don't have to go back to the eclipse UI (which I dislike) to see if there are warnings I can fix while I'm in the area. So, given all that, I don't think changes to what java_src_update returns is going to be helpful for emacs-eclim without creating some additional new functionality (such as an file-specific problems buffer, or something). While I think that might be worthy functionality (and likely would give a quicker response than issuing a separate problems command), it's pretty different from how emacs-eclim works today. |
Background
For my day job, I work on a large old codebase that has generates a bazillion (okay, about 40K) eclipse warnings at a reasonable warning level. That's an overwhelming number, but I like to correct warnings when I'm visiting a file for a bug fix or feature addition. So, as an emacs-eclim user I wanted to add an option to filter warnings down to the current file.
This changes treats a -f option as specifying a source file to limit warnings to. It has no effect on error reporting.
Issues