Bug 432231 - Tasks view not working correctly on Javascript projects
Summary: Tasks view not working correctly on Javascript projects
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 04:23 EDT by Chris H CLA
Modified: 2017-09-15 12:48 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris H CLA 2014-04-08 04:23:00 EDT
In the Tasks view, the following things don't work:

1. When setting a filter such as "in the same project", when "Show all" is selected in the top left corner, it'll show markers from all projects in the workspace. (Okay, so on playing with it some more, maybe I'm misinterpreting and this is actually the desired behavior. But if that's the case, the UI is misleading, the configuration elements should be grayed out when "Show all" is selected.)

2. For JavaScript projects, even when "Show All" isn't selected and "TODOs" is, it won't show new TODOs. It shows them after you go to Windows -> Preferences -> Javascript -> Validator -> Task Tags, change something and press apply. 

3. It would be really useful to be able to exclude certain subfolders' markers from being shown in the Tasks view. I'm using node.js a lot, and end up with hundreds of TODOs from node modules I'm using, which unfortunately makes the Tasks view unusable on those projects (which is a shame because I think it's an awesome feature). I tried excluding all the node modules from the working set, but it still shows the markers.

Also see this question StackOverflow:

http://stackoverflow.com/questions/22881044/tasks-view-in-eclipse-not-showing-todos
Comment 1 Paul Webster CLA 2014-04-08 09:55:47 EDT
(In reply to None Of Your Business from comment #0)
> 
> 2. For JavaScript projects, even when "Show All" isn't selected and "TODOs"
> is, it won't show new TODOs. It shows them after you go to Windows ->
> Preferences -> Javascript -> Validator -> Task Tags, change something and
> press apply. 

I assume you got your javascript project support from JSDT?

PW
Comment 2 Paul Webster CLA 2014-04-08 09:57:20 EDT
Also, you should consider updating your bugzilla name field.

It's part of your communication with committers, and you probably want it to reflect that.

PW
Comment 3 Nitin Dahyabhai CLA 2014-04-08 10:20:37 EDT
Of the 3 unrelated things mentioned in comment 0:

1) The Tasks View comes from the Platform. Any issues with *how* it works aren't going to be solved by JSDT.
2) You have to Build the project in order to have your TODOs detected in JavaScript files, and it has to have the JavaScript Validation Builder enabled on the project. You probably allowed it to Rebuild when you modified the preferences.
3) Task Tags aren't detected in Library folders. If there's anything for which you don't care about validation output or task tag detected, make it a Library folder rather than a Source folder.

As Paul asked in comment 1, though, are you sure you're using JSDT? And if so, which version?
Comment 4 Chris H CLA 2014-04-08 11:50:06 EDT
(In reply to Paul Webster from comment #2)
> Also, you should consider updating your bugzilla name field.
> 
> It's part of your communication with committers, and you probably want it to
> reflect that.
> 
> PW

Yeah sorry about the name. I was having trouble getting it to accept my registration and fed it that in a moment of frustration. How do I change it now?
Comment 5 Chris H CLA 2014-04-08 11:57:54 EDT
(In reply to Nitin Dahyabhai from comment #3)
> Of the 3 unrelated things mentioned in comment 0:
> 
> 1) The Tasks View comes from the Platform. Any issues with *how* it works
> aren't going to be solved by JSDT.
> 2) You have to Build the project in order to have your TODOs detected in
> JavaScript files, and it has to have the JavaScript Validation Builder
> enabled on the project. You probably allowed it to Rebuild when you modified
> the preferences.
> 3) Task Tags aren't detected in Library folders. If there's anything for
> which you don't care about validation output or task tag detected, make it a
> Library folder rather than a Source folder.
> 
> As Paul asked in comment 1, though, are you sure you're using JSDT? And if
> so, which version?

I'm using JSDT, version 1.5.2.v201401171657-7H7FFhXFC7sReuSlgtfhew. And I think you're right about the rebuild, and I do remember having to allow that. But I have the project set to "build automatically", so intuitively, I would have expected it to pick up new tasks automatically.

As per your 3), you, sir, are a genius. Setting it to library solved the issue. I'll link your answer on StackOverflow. If you have an account there, post it as an answer, and I'll accept it.

Should I refile 1) in platform then?
Comment 6 Nitin Dahyabhai CLA 2014-04-08 12:28:07 EDT
(In reply to None Of Your Business from comment #5)
> But I have the project set to "build automatically", so intuitively, I
> would have expected it to pick up new tasks automatically.
As would I.

> Should I refile 1) in platform then?
That right pane not being emptied can be confusing. I think it's worth a shot.
Comment 7 Paul Verest CLA 2014-04-08 23:25:19 EDT
It should have been stated by Chris (NOYB), that the project is Nodeclipse .project like

	<?xml version="1.0" encoding="UTF-8"?>
	<projectDescription>
		<name>NodeExpressEjsLESS</name>
		<comment></comment>
		<projects>
		</projects>
		<buildSpec>
			<buildCommand>
				<name>com.eclipsesource.jshint.ui.builder</name>
				<arguments>
				</arguments>
			</buildCommand>
		</buildSpec>
		<natures>
			<nature>org.nodeclipse.ui.NodeNature</nature>
			<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
		</natures>
	</projectDescription>


I have updated answer on http://stackoverflow.com/questions/22881044/tasks-view-in-eclipse-not-showing-todos

This issue should be renamed into something like "Separate TODOs parser from JSDT".
otherwise it like usage question.

Related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=223131 (ECMAScript 5)
Comment 8 Vsevolod Golovanov CLA 2017-09-15 12:48:23 EDT
With Eclipse Oxygen task tags in js don't work at all. They don't show up in Tasks view, aren't marked on the vertical/overview rulers. At the same time validation works fine: marks errors, shows in problems... I assume this is the same issue.