Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Does not make a sense at all(PHP Development Tools (PDT) does not validate even simple errors)
icon13.gif  Does not make a sense at all [message #1744104] Thu, 22 September 2016 11:03 Go to next message
aaa aaa is currently offline aaa aaaFriend
Messages: 2
Registered: September 2016
Junior Member
//Some code
public function execute()
{
$session_manager1 = new User_Session();
$user_id = $session_manager->getUserSessionId();
}


after validating source file in PHP Development Tools (PDT) I have: no errors


Obviously there is an error $session_manager1 should be replaced with $session_manager

ZendStudio-5.5.1 does check it:

Variable $session_manager1 appears only once (line 37)
The value of variable $session_manager1 was never used (line 37)
Variable $session_manager appears only once (line 38)


Sorry but If PHP Development Tools (PDT) does not validate even that simple errors --- it does not make a sense to use it.
Re: Does not make a sense at all [message #1744123 is a reply to message #1744104] Thu, 22 September 2016 13:42 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
PDT checks only syntax errors, not semantic (runtime).

For variable checking you can use https://github.com/pdt-eg/Core-Plugin


Re: Does not make a sense at all [message #1744197 is a reply to message #1744123] Fri, 23 September 2016 10:15 Go to previous messageGo to next message
aaa aaa is currently offline aaa aaaFriend
Messages: 2
Registered: September 2016
Junior Member
So why you offer me to use some plugin? Why it is not implemented in IDE that available from here https://eclipse.org/pdt/ ?

"variable checking" is a basic and very important functionality and should be implemented in the IDE without need to install and plugins.
Re: Does not make a sense at all [message #1744365 is a reply to message #1744197] Mon, 26 September 2016 10:52 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
For someone is basic, for someone basic is something different. Probably for PDT 5.0 (Eclipse Oxygen 4.7) I'll move variable checking code to PDT (I'm author).

Currently after years of stagnation, we are focused on performance and stability existing features. We also cleaning up an API for adopters. We don't want more mess that already have in code.

If you compare PDT performance&stability today and 2 years ago, there is abyss.


Previous Topic:Automatic validation
Next Topic:PDT 4.1 released with Neon.1 !
Goto Forum:
  


Current Time: Thu Apr 25 22:16:58 GMT 2024

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

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

Back to the top