Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345801

Summary: Syntax error doesn't appear in Problems view
Product: [Technology] DLTK Reporter: Toshihiro Izumi <euthanasia_waltz>
Component: CommonAssignee: dltk.common-inbox <dltk.common-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: zulus
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/c/dltk/org.eclipse.dltk.core.git/commit/?id=5fee7d872185444760c6e5d4c12db3b9006e9838
Whiteboard:

Description Toshihiro Izumi CLA 2011-05-14 03:09:10 EDT
Make errorneous php file and save it
=> Problem marker appears on PHP Editor as usual but not in Problems view

Env:
Eclipse SDK 3.7M7
WTP 3.3.0M7
DLTK 3.0M7
PDT cvs-head

Cause:
org.eclipse.dltk.compiler.problem.DefaultProblemFactory

>    public String getMarkerType(IProblem problem) {
>        if (problem.getID() instanceof IProblemIdentifierExtension) {
>            return ((IProblemIdentifierExtension) problem.getID())
>                    .getMarkerType();
>        }
>        return problem.isTask() ? getTaskMarkerType() : getProblemMarkerType();
>    }
>
>    protected String getProblemMarkerType() {
        return DefaultProblem.MARKER_TYPE_TASK; // <<< should be MARKER_TYPE_PROBLEM
>    }
>
>    protected String getTaskMarkerType() {
>        return DefaultProblem.MARKER_TYPE_TASK;
>    }