Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Correct Syntax Flagged as Incorrect
Correct Syntax Flagged as Incorrect [message #72095] Wed, 28 May 2008 16:18 Go to next message
Eclipse UserFriend
Originally posted by: pete.holiday.gmail.com

I'm starting to use Eclipse with PDT and one thing that immediately struck
me is that the supposed syntax error checking is having some problems.
It's finding errors where there are none, and nothing I've done has been
able to get them to go away.

I've been able to get the red underlines to go away (via "report as you
type") but I can't get the red Xs in the sidebar (or the PHP Explorer) to
disappear. Here's an example of code it claims to have syntax errors:
(errors supposedly found on each line but the first one)

<?php
class Expo_Acl extends Zend_Acl {
public function __construct() { }
}

(Note that this syntax is correct, it works properly when executed, and
everything else is peachy... but PDT seems to think that there's something
horribly wrong with it)

I'm sure there's something I've done wrong here, but at this point I
really would just like to turn syntax checking off because it doesn't seem
to work very well with Zend Framework anyway. If there's a way to get it
working that would work as well. Any help would be appreciated.

-Pete
Re: Correct Syntax Flagged as Incorrect [message #72113 is a reply to message #72095] Wed, 28 May 2008 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

have you tried cleaning the project?

Project > Clean...

Nick

Pete Holiday wrote:
>
> I'm starting to use Eclipse with PDT and one thing that immediately
> struck me is that the supposed syntax error checking is having some
> problems. It's finding errors where there are none, and nothing I've
> done has been able to get them to go away.
>
> I've been able to get the red underlines to go away (via "report as you
> type") but I can't get the red Xs in the sidebar (or the PHP Explorer)
> to disappear. Here's an example of code it claims to have syntax errors:
> (errors supposedly found on each line but the first one)
>
> <?php
> class Expo_Acl extends Zend_Acl {
> public function __construct() { }
> }
>
> (Note that this syntax is correct, it works properly when executed, and
> everything else is peachy... but PDT seems to think that there's
> something horribly wrong with it)
>
> I'm sure there's something I've done wrong here, but at this point I
> really would just like to turn syntax checking off because it doesn't
> seem to work very well with Zend Framework anyway. If there's a way to
> get it working that would work as well. Any help would be appreciated.
>
> -Pete
>
Re: Correct Syntax Flagged as Incorrect [message #72129 is a reply to message #72113] Wed, 28 May 2008 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pete.holiday.gmail.com

I had been doing "Clean projects selected below" and that didn't do
anything. I just tried "Clean all projects" and that worked for some
reason... why one worked and not the other is beyond me (yes, I had the
one project I've created selected).

Now it seems that when I turn everything back on it's working properly.

Thanks!
Re: Correct Syntax Flagged as Incorrect [message #72147 is a reply to message #72129] Wed, 28 May 2008 17:39 Go to previous message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Smells like a bug.

If you can consistently reproduce it, please report it.

I would think the steps to reproduce are something like this:

0. install eclipse + PDT (state specific versions of Eclipse, WTP, PDT,
and Java)
1. create PDT project
2. create php file
3. type in file contents
4. save file
5. clean project (errors persist)
6. clean ALL projects (errors vanish)

If you have any specific settings turned on/off that differ from the out
of box settings, detail them too.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT

Nick

Pete Holiday wrote:
> I had been doing "Clean projects selected below" and that didn't do
> anything. I just tried "Clean all projects" and that worked for some
> reason... why one worked and not the other is beyond me (yes, I had the
> one project I've created selected).
> Now it seems that when I turn everything back on it's working properly.
>
> Thanks!
>

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
Previous Topic:2 New Articles + PDT Bug Day
Next Topic:RE: [pdt-dev] PHP 5.3.0 support
Goto Forum:
  


Current Time: Sun Jan 29 20:28:14 GMT 2023

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

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

Back to the top