[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] bug #239707 discussion
|
Hi all,
The 2nd step:
All files are not parsed in the background by the
org.eclipse.dltk.validators.internal.core.ValidatorBuilder class
from the org.eclipse.dltk.validators.core plugin
<file:///C:/ALEXEY/RubyGearsWorkspaceClean/org.eclipse.dltk.validators.core/>
Reconciling does not create markers - only annotations in the editor.
Additional processing could be added using the
org.eclipse.dltk.validators.core.IBuildParticipant interface - for
examples please look at the RubyTodoTaskAstParser + RubyTodoParserType
+ extension point.
That changes should be stable now.
Regards,
Alex
Alex Panchenko wrote:
Hi all,
1st step - IProblemReporter.reportProblem(IProblem) now returns void.
if you were using returned IMarker to store additional information -
please use
IProblem.getID() and IProblem.getArguments() - they are persisted to
the marker attributes now.
Use
- marker.getAttribute(IScriptModelMarker.ID, 0)
- String[] CorrectionEngine.getProblemArguments(IMarker)
to retrieve them.
Regards,
Alex
Alex Panchenko wrote:
Hi Michael,
I have started working on these two issues.
The correct solution would be
a) report problems from the reconciler to the annotation model. This
could be solved without breaking API, using code similar to the
option #2.
b) report problems as markers from builder
Thanks for your ideas.
Regards,
Alex
Michael Spector wrote:
Hi All,
I would like to discuss possible solutions to the bug #239707
<https://bugs.eclipse.org/239707>
There are two solutions I can see now, the first is breaking the API
the other - is not:
1. Introduce new extension point: ISourceModuleProblemFinder that
will be responsible
for re-parsing a source module being reconciled. Implementing
extension class will accept
IProblemRequestor (which should be un-deprecated) for reporting on
found problems.
2. Use dirty hack, like this: http://pastebin.com/mf22397e
In addition, I think this bug should be solved ASAP, since
reconciler does not work properly.
What are your comments?
--
Michael
------------------------------------------------------------------------
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev