FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Parser error when editing php

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
oliviert



Joined: 23 Oct 2009
Posts: 4

PostPosted: Fri Oct 23, 2009 9:11 am    Post subject: Parser error when editing php Reply with quote

Hi the parser is not functionnal for me at all, and i can not find the reason.
So i do not have any side tree, of all my functions and variables.

Here are screenshots of the error:

thanks for your help, without this working, netbeans is just another text editor



nberr2.png
 Description:
and the details of the error !
 Filesize:  188.48 KB
 Viewed:  288 Time(s)

nberr2.png



nberr1.png
 Description:
the error that netbeans throw
 Filesize:  205.37 KB
 Viewed:  288 Time(s)

nberr1.png


Back to top
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 11:14 am    Post subject: Parser error when editing php Reply with quote

oliviert wrote:
Quote:
Hi the parser is not functionnal for me at all, and i can not find the reason.

So i do not have any side tree, of all my functions and variables.



Here are screenshots of the error:



thanks for your help, without this working, netbeans is just another text editor




Attachments:
http://forums.netbeans.org//files/nberr2_124.png
http://forums.netbeans.org//files/nberr1_183.png

Please, take rather development builds from:
http://bertram.netbeans.org/hudson/job/PHP-build/

should fix your problem
Radek
Back to top
oliviert



Joined: 23 Oct 2009
Posts: 4

PostPosted: Sat Oct 24, 2009 8:19 am    Post subject: Same Error with the dev snapshot Reply with quote

I just tried the dev snapshot and the same problem occur...

Could it be something wrong on my machine, outside of netbeans ?

I do use the sun jdk (latest).
i tried with openjdk, it's the same.

So, i'm lost with this error.
Back to top
View user's profile Send private message
Petr Pisl
Posted via mailing list.





PostPosted: Tue Oct 27, 2009 10:32 am    Post subject: Parser error when editing php Reply with quote

Hi,

could you try to run NB with new userdir from command line? Just run the
netbeans from bin folder with --userdir {path to new userdir}.

Let me know, whether it helps or not.

Regards,
Petr
Quote:
I just tried the dev snapshot and the same problem occur...



Could it be something wrong on my machine, outside of netbeans ?



I do use the sun jdk (latest).

i tried with openjdk, it's the same.



So, i'm lost with this error.










Back to top
oliviert



Joined: 23 Oct 2009
Posts: 4

PostPosted: Tue Oct 27, 2009 1:11 pm    Post subject: Still the same thing Reply with quote

Hi,

i was under root in terminal.
i launch netbeans with option --userdir /path/to/userhome

this user had never use netbeans before.
So the .netbeans in this user home directory have been created.

But when i tried to edit a php file from a new project that was not a netbeans project before, i did have the same error htat occured.

So i do still have the problem, and really i can not find why;

I'm under FC11, with the latest jdk from Sun.
I'll try to install netbeans on a windows virtual machine that run under my FC11, and let you know if i do experience the same problem.

BTW Thanks for your help
Back to top
View user's profile Send private message
oliviert



Joined: 23 Oct 2009
Posts: 4

PostPosted: Fri Oct 30, 2009 3:42 pm    Post subject: SOLVED Reply with quote

Very Happy I solved this problem by doing:

reinstall latest jdk from Sun.
and set correctly all java alternatives and slave, especially for:
java
keytool
rmiregistry
javac
jar
rmic

alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_16/bin/java 120 \
--slave /usr/bin/keytool keytool /usr/java/jdk1.6.0_16/bin/keytool \
--slave /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.6.0_16/bin/rmiregistry

alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_16/bin/javac 120 \
--slave /usr/bin/jar jar /usr/java/jdk1.6.0_16/bin/jar \
--slave /usr/bin/rmic rmic /usr/java/jdk1.6.0_16/bin/rmic


And set my default java with:
alternatives --config java


so i the edit my et/netbeans.conf (in netbeans directory) to set my new jdkhome

Launch netbeans and Voila!
everything is running well
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB