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

Bug 307566

Summary: Removed task tags remain in Tasks list view
Product: [WebTools] WTP Source Editing Reporter: Robert Wenner <robert.wenner>
Component: wst.sseAssignee: Rakesh <rakes123>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: daniel_megert, nsand.dev, rakes123, thatnitind
Version: 3.2   
Target Milestone: 3.3 M1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Robert Wenner CLA 2010-03-30 13:51:28 EDT
Build Identifier: Build id: 20100218-1602

Task tags in files that are not source code (e.g., CSS, HTML) remain even after deleting the tag from the text.

This is annoying because it gives a wrong view of what fixme and todo items are still open.

Reproducible: Always

Steps to Reproduce:
Create new Java project (enter name 'bug' and click Finish).
Show the Tasks view.

Go to project properties, filter in "tag". Select the top level Task Tags, not the one under Java Compiler.

Configure workspace settings.
Check "Enable searching for Task Tags" checkbox.
Add a new tag, e.g., "@fixme".
In the "Filters" tab, add a new extension like CSS if it isn't there yet.
Click Ok, say yes to make the changes effective.
Click Ok, say yes to make the changes effective.

Expand the project in the package explorer.
Right-click the project name and select "New >" and create a new file.
Name the file "bug.css" (or whatever extension you configured), click "Finish".

Enter
/* @fixme fix this */
in the new file and save it.
A new task tag appears in the Tasks view as expected.

Remove the contents of the new file and save it.

Defect: The task tag is still in the Tasks list.

Here's what does not help:
- Right-click the task tag in the Tasks list to delete it manually: delete is disabled.
- Rebuilding the project: no change.
- Refreshing the project: no change.
- Go to workspace task tag properties as described above and click "clean and redetect tags": no change (including clicking apply and ok and yes to make changes effective).
- Deleting the whole file: that gets rid of the task tag but unfortunately
  of the file contents as well.
Comment 1 Dani Megert CLA 2010-03-31 03:20:38 EDT
This is either contributed by WTP or some additional plug-in that you installed.
Comment 2 Rakesh CLA 2010-06-25 06:37:19 EDT
Created attachment 172736 [details]
Patch

Reference markerAttributes was 'null' ,which was preventing markers to be deleted.
Comment 3 Nick Sandonato CLA 2010-08-09 18:01:12 EDT
Code released to HEAD.
Comment 4 Nick Sandonato CLA 2010-08-09 18:02:02 EDT
Comment on attachment 172736 [details]
Patch

Appears to be a duplicate fix (or a subset of) Bug 174813.
Comment 5 Nick Sandonato CLA 2010-08-09 18:02:31 EDT
Duping.

*** This bug has been marked as a duplicate of bug 174813 ***