Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Tasklist with TODO in code not working
Tasklist with TODO in code not working [message #1687839] Thu, 19 March 2015 20:39 Go to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Eclipse for PHP Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

I make use of //TODO in code very often.
Migrating from Indigo to Luna it doesn't work anymore.

For the old code with //TODO I actually still see the icon on the left where are the line numbers, and the task is present in the tasklist.
For the new code I'm writing now, nothing happens.

Any idea?
Re: Tasklist with TODO in code not working [message #1687844 is a reply to message #1687839] Thu, 19 March 2015 20:49 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
This should wok correctly. I tested on fresh workspace and everything is ok.

What you have in PHP/Validation/Task Tags?

/**
* @todo Test
*/
Work?

Is this auto-build enabled? Menu -> Project -> Build Automatically

Tasks should be update after each save operation.


Re: Tasklist with TODO in code not working [message #1688198 is a reply to message #1687844] Fri, 20 March 2015 09:59 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
I've tested this morning on a fresh installation + new workspace, on another computers with a different OS (Windows), with all the defaults: it's the same:
//TODO, @todo //FIXME... nothing is working.
(Everything available in PHP/Validation/Task Tags)

About "Build Automatically", I prefer F5, but even with Build Automatically nothing changes.

Are you sure you are testing with Eclipse Luna for PHP developer?
https://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr2

[Updated on: Fri, 20 March 2015 10:04]

Report message to a moderator

Re: Tasklist with TODO in code not working [message #1688204 is a reply to message #1688198] Fri, 20 March 2015 10:09 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
Sure, everything is working fine for me. Have you something in logs? Window / Show View / Other / Error Log

Re: Tasklist with TODO in code not working [message #1688210 is a reply to message #1688204] Fri, 20 March 2015 10:20 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
I've just tried a 3rd new installation on another OS: Mint 17 XFCE 32 bit.
Same problem.
So, since now I've tested Mint 64 bit, Mint 32 bit, Windows 32 bit. Everyone with the same problem.
And apart from the task list another important problem is this one
https://www.eclipse.org/forums/index.php/t/1063115/
VERY annoying and it's the default on every of the 3 installation tested.

About the error log, there is only an error about GIT (I don't use it).
Re: Tasklist with TODO in code not working [message #1688217 is a reply to message #1688210] Fri, 20 March 2015 10:31 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
The thing is that a fresh install doesn't work with the defaults.
Steps to reproduce the problem:
1) Download Eclipse Luna for PHP
https://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr2

2) Extract
3) Launch
4) Create PHP project
5) Add a php file
6) In the editor write //TODO or //@todo or //FIXME (or anything else present in the task tags)
7) Press CTRL+S to save (this should make the task appears in the tasklist)
8) Select the project folder and press F5 to be more sure the project is rebuilt

NOTHING HAPPENS. It's a bug or a bad default.
This happen on fresh install + new workspace, on any OS I've tested: Mint 64, Mint 32, Windows 32.

[Updated on: Fri, 20 March 2015 10:32]

Report message to a moderator

Re: Tasklist with TODO in code not working [message #1688220 is a reply to message #1688217] Fri, 20 March 2015 10:37 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
Still no luck: http://cl.ly/image/2e1q3N1K2928

On ubuntu also works correctly for me. I'll try on windows later.


Re: Tasklist with TODO in code not working [message #1688227 is a reply to message #1688220] Fri, 20 March 2015 10:47 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Have you tried a fresh install? Because maybe you have some option that are not the default.
Re: Tasklist with TODO in code not working [message #1688230 is a reply to message #1688227] Fri, 20 March 2015 10:50 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
Off course fresh. On updated installation (from luna SR0) also works correctly. I'm using this every day Wink

By defalt PDT highlight @todo, TODO, FIXME, XXX always.

Can you check Preferences / Validation ? PHPTaskValidator should be checked. Is it?


Re: Tasklist with TODO in code not working [message #1688233 is a reply to message #1688230] Fri, 20 March 2015 10:57 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Ahve you also tried the same version
Eclipse for PHP Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
?
Re: Tasklist with TODO in code not working [message #1688234 is a reply to message #1688233] Fri, 20 March 2015 10:59 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member

Quote:
Can you check Preferences / Validation ? PHPTaskValidator should be checked. Is it?

Yes both for Manual and Build
Re: Tasklist with TODO in code not working [message #1688237 is a reply to message #1688233] Fri, 20 March 2015 11:02 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
Yes, and this is strange. Can you zip your fresh workspace and upload somewhere. I'll try to compare it.

Re: Tasklist with TODO in code not working [message #1688238 is a reply to message #1688234] Fri, 20 March 2015 11:03 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
I'm now going to test it with the 4th OS: Xubuntu 32... I'm back in a few minutes...
Re: Tasklist with TODO in code not working [message #1688239 is a reply to message #1688238] Fri, 20 March 2015 11:04 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Quote:
Can you zip your fresh workspace and upload somewhere. I'll try to compare it.

OK thanks. I'll be back in 5 minutes.
Re: Tasklist with TODO in code not working [message #1688245 is a reply to message #1688239] Fri, 20 March 2015 11:13 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Workspace download:
https://www.sendspace.com/file/viwwxw
Re: Tasklist with TODO in code not working [message #1688249 is a reply to message #1688245] Fri, 20 March 2015 11:18 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
On Xubuntu 32 is working!
That's not good! Sad What I'm I gonna do now?! I can't change OS just for having //TODO! Sad
Re: Tasklist with TODO in code not working [message #1688252 is a reply to message #1688249] Fri, 20 March 2015 11:22 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
So doesn't work on windows only?

Re: Tasklist with TODO in code not working [message #1688255 is a reply to message #1688252] Fri, 20 March 2015 11:30 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
No, it works only on Xubuntu
while not working on Mint 32, Mint 64 and Win 32.
Maybe there are other OS where it works but of the 4 I've tested, only Xubuntu works.

NB: Xubuntu 14.04 32b and Mint 17 XFCE 32b are basically the same OS! Confused

[Updated on: Fri, 20 March 2015 11:31]

Report message to a moderator

Re: Tasklist with TODO in code not working [message #1688264 is a reply to message #1688255] Fri, 20 March 2015 11:48 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
What VM you have on Mint? OpenJDK (is default)? If yes can you switch to oracle java [1] >= 7?

I have only windows 8.1 64 with oracle java 8, and also working correctly :/

[1] - https://launchpad.net/~webupd8team/+archive/ubuntu/java


Re: Tasklist with TODO in code not working [message #1688265 is a reply to message #1688255] Fri, 20 March 2015 11:48 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
I've also checked the JRE 7 Version. On Mint was a little bit older, but now it's the exact version and doesn't work anyway.

This is ridiculous!

[Updated on: Fri, 20 March 2015 11:49]

Report message to a moderator

Re: Tasklist with TODO in code not working [message #1688268 is a reply to message #1688265] Fri, 20 March 2015 11:53 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
By the way, Openjdk-7-jre Version: 7u75-2.5.4-1~trusty1
Re: Tasklist with TODO in code not working [message #1688269 is a reply to message #1688268] Fri, 20 March 2015 11:54 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
can you switch to oracle version? Sometimes OpenJDK doesn't work well.

Re: Tasklist with TODO in code not working [message #1688276 is a reply to message #1688269] Fri, 20 March 2015 12:08 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
OK, I'm gonna try.

However if I don't solve the other problem here
https://www.eclipse.org/forums/index.php/t/1063115/
I'll surely get back to Indigo because I can't stand that kind of huge bug (cannot be other than a bug: a formatter that join a splitted line on a single kilometric line is a bug... or crazy by design!).
Re: Tasklist with TODO in code not working [message #1688282 is a reply to message #1688276] Fri, 20 March 2015 12:18 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
WAIT A MINUTE! I've found something...
If I create a project without clicking "Next", it owrks!
If I create a project clickng "Next" EVERY project stops working, and they will never work again not even repeating the magic sequence on a new project
It starts working again only in a new workspace!

So I'm close to the solution of the problem....

Re: Tasklist with TODO in code not working [message #1688287 is a reply to message #1688282] Fri, 20 March 2015 12:27 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
Ok I see this now. If you click next, "Project->Build Automatically" is disabled. So no validation is performed. You have to recheck it. After that everything is woking again, run project->build project.

Re: Tasklist with TODO in code not working [message #1688299 is a reply to message #1688287] Fri, 20 March 2015 12:49 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
Yes, it works! But why for EVERY project and not only for the new one? It stops working the entire Workspace!!!

I've also found the following differences in .project inside the working project. This depend only on clicking "next or not.

WORKING PROJECT
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>b</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.common.project.facet.core.builder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.dltk.core.scriptbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.php.core.PHPNature</nature>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
	</natures>
</projectDescription>


NOT WORKING PROJECT
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>c</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.dltk.core.scriptbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.common.project.facet.core.builder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
		<nature>org.eclipse.php.core.PHPNature</nature>
	</natures>
</projectDescription>


Re: Tasklist with TODO in code not working [message #1688302 is a reply to message #1688299] Fri, 20 March 2015 12:55 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
"build automatically" is global eclipse settings. It also disable build on any other project (java, python, C++).

I updated your bug on bugzilla. We will take care of it for next release. Thanks!

Project builders order is different because if you click next, you are able to change facets (for example composer if you install appropriate plugin). Just ignore it Wink


Re: Tasklist with TODO in code not working [message #1688336 is a reply to message #1688302] Fri, 20 March 2015 13:59 Go to previous message
Rik Bartolini is currently offline Rik BartoliniFriend
Messages: 44
Registered: July 2010
Location: Italy
Member
The strange behaviour is that starting a new project change a global setting like that.
However, now that I know it, it's easy to set it back.

Thanks for updating the bug report, I would have added this now that I'm back from lunch Razz

Unfortunately, all this efforts are useless now that I see your reply to the other problem
https://www.eclipse.org/forums/index.php/t/1063115/
Previous Topic:Project name in explorer is preceded with >
Next Topic:The formatter joins multiline string on a single line
Goto Forum:
  


Current Time: Fri Sep 20 23:12:47 GMT 2024

Powered by FUDForum. Page generated in 0.06731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top