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 
  

First contact with NetBeans PHP, and few questions about it.

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Sergio Lopes
Posted via mailing list.





PostPosted: Tue Aug 19, 2008 10:30 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Hi,

I just installed NetBeans IDE 6.5 Beta, with PHP support, and was
trying to use it, as I want to stop using Aptana Studio. My first
impression of the PHP module was very good, I like the way it works
overall, but a few things are not working properly.

One is the debugger, I wasn't able to configure XDebug properly,
following the Wiki and the tutorial on how to configure the developing
environment on windows, NetBeans always complains that it received no
communication from the debugger, showing me a message box with some
hints and a link for the tutorial I was using.

I'm using XAMPP, the full version, on a Windows XP SP3 machine, and I
have 3 different php.ini files, that I changed, commenting out the
zend optimizer and adding the following lines:
zend_extension_ts="C:\Tools\xdebug\php_xdebug-2.0.3-5.2.5.dll"
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\Tools\xampp\tmp"

The php.ini files are xampp/apache/bin/php.ini, xampp/php/php.ini and
xampp/php/php5.ini.

Also, every time I try to debug a project, if the browser is not
opened, the following error appears:

java.lang.AssertionError
at org.netbeans.modules.php.dbgp.StartActionProviderImpl$ServerThread.run(StartActionProviderImpl.java:298)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Aptana didn't had a debugger, so I can easily live without a PHP
debugger, but there is one other problem, or feature that doesn't work
for me, and I would like to know if there is a workaround for it. I
have a php project that is under version control, using SVN, that
project has a few folders with only images, they are used for an image
gallery. Because the gallery is quite big and there is no reason for
the images to be under version control, I added the folders to the
ignore list. They are on the project folder but not on the SVN server.
The problem is that when I run the project, those folders are ignored
and are not copied to the apache directory, therefor, though I can see
the scripts and files, the gallery just doesn't work as there are no
images in the apache directory.

Is there a way to keep the folders ignored under SVN but still
considered valid folders to the IDE? I'm assuming that the problem is
the ignore property since other images are copied when I run the
project, only the ones inside ignored folders are not.

--
Best regards

S
Back to top
Jacob



Joined: 18 Aug 2008
Posts: 21

PostPosted: Wed Aug 20, 2008 3:02 am    Post subject: Reply with quote

To check the debugger run phpinfo() in a php script, then make sure the xdebug settings are present.
Back to top
View user's profile Send private message
Sergio Lopes
Posted via mailing list.





PostPosted: Wed Aug 20, 2008 1:36 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Quote:
To check the debugger run phpinfo() in a php script, then make sure the xdebug settings are present.
Sorry not to have mentioned it, but I have checked with phpinfo
function. There's a all section about XDebug with version 2.0.3
enabled, I have debug output on the apache's temp folder and I can see
more debug info whenever an error occurs in my code, that is, the
browser shows me more info, for all I can see, I have xdebug correctly
installed and my php installation is using it.


--
Sem mais e com os melhores cumprimentos,

S
Back to top
radek matous
Posted via mailing list.





PostPosted: Wed Aug 20, 2008 6:13 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Sergio Lopes wrote:

Hi Sergio,
Quote:
Hi,

I just installed NetBeans IDE 6.5 Beta, with PHP support, and was
trying to use it, as I want to stop using Aptana Studio. My first
impression of the PHP module was very good, I like the way it works
overall
great to hear about it
Quote:
, but a few things are not working properly.

One is the debugger, I wasn't able to configure XDebug properly,
following the Wiki and the tutorial on how to configure the developing
environment on windows, NetBeans always complains that it received no
communication from the debugger, showing me a message box with some
hints and a link for the tutorial I was using.

caused probably by already reported bug #142754. See
http://www.netbeans.org/issues/show_bug.cgi?id=142754.
Despite the fact I cannot reproduce this bug, I tried slightly to
improve the logic when dbg session is started, assertion should'n be
thrown anymore, logging was improved a little bit.

Because unreproducible for me, there is no 100% guarantee that the bug
was already fixed. You can help to verify, if you like.

How to verify that bug is fixed:
1/ download the latest version (download from
http://deadlock.netbeans.org/hudson/job/PHP-build/ at least #7488 or newer )
2/ start netbeans with logging enabled (./netbeans
-J-Dorg.netbeans.modules.php.dbgp.level=500)
3/ provide feedback
http://www.netbeans.org/issues/show_bug.cgi?id=142754. If not registered
yet then http://www.netbeans.org/servlets/Join

thanks in advance
Quote:
Also, every time I try to debug a project, if the browser is not
opened, the following error appears:

java.lang.AssertionError
at org.netbeans.modules.php.dbgp.StartActionProviderImpl$ServerThread.run(StartActionProviderImpl.java:298)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

as mentioned - bug #142754
Quote:
I have a php project that is under version control, using SVN, that
project has a few folders with only images, they are used for an image
gallery. Because the gallery is quite big and there is no reason for
the images to be under version control, I added the folders to the
ignore list. They are on the project folder but not on the SVN server.
The problem is that when I run the project, those folders are ignored
and are not copied to the apache directory, therefor, though I can see
the scripts and files, the gallery just doesn't work as there are no
images in the apache directory.

Is there a way to keep the folders ignored under SVN but still
considered valid folders to the IDE? I'm assuming that the problem is
the ignore property since other images are copied when I run the
project, only the ones inside ignored folders are not.

folders ignored by SVN should be copied into apache directory (meant
file no listed by command "svn status" ).
Just folowing files are intentionally not copied into apache directory:
1/ all the project metadata (nbproject/*.*)
2/ files ignored by IDE (according to pattern in
Tools/Options/Miscellaneous/Files)

else, please file an issue - http://www.netbeans.org/issues/enter_bug.cgi

Radek


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@php.netbeans.org
For additional commands, e-mail: users-help@php.netbeans.org
Back to top
Sergio Lopes
Posted via mailing list.





PostPosted: Thu Aug 28, 2008 1:39 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Sorry for the late reply, was unable to use my computer.

Quote:
Because unreproducible for me, there is no 100% guarantee that the bug was
already fixed. You can help to verify, if you like.
Currently no, I will be able to do it in the next 2 weeks or so. I
don't know if I can do it sooner.


Quote:
folders ignored by SVN should be copied into apache directory (meant file no
listed by command "svn status" ).
Just folowing files are intentionally not copied into apache directory:
1/ all the project metadata (nbproject/*.*)
2/ files ignored by IDE (according to pattern in
Tools/Options/Miscellaneous/Files)

else, please file an issue - http://www.netbeans.org/issues/enter_bug.cgi

As I just configured NetBeans Beta 6.5 on my ubuntu machine I notice
another problem with the files. This time the images on that should be
ignored were copied but some images that should not be ignored, and
were copied on the windows machine, are not on the destination folder.
I'll try to test this issue, to try and figure out something more
useful, after I get more information I'll file an issue report.

Two other things:

a) A redeploy or undeply/deploy features, like the one available for
JEE projects would be great. Currently, due to some images not being
copied, I tried to run the project several times to see if it would
copy the missing files, but the IDE never pick up the files as being
missing in the web folder and never copied the file, I had to manually
place it there. It would be nice to have some option to force the IDE
to copy everything like it was the first run.

b) Why are settings like run url and copy folder destination stored on
the project.properties file instead of the private/project.properties?
Using SVN I always ignored the private folder, for other NetBeans
tools, private folder stores settings that make sense on the local
machine, and I can still have the nbproject folder so that other users
just open the project without having to create a new one.
As the path to the web folder into which the files are copied is
stored in the project.properties and not the
private/project.properties, it is hell to share the same project
between different computers, worst if they are different OS.
I just checked out a project, created in Windows, onto my ubuntu and
the paths just didn't work, naturally being set as Windows' paths.
Also various exceptions were thrown as none of the paths existed in
the current machine.
Can these settings be placed under the private folder?

Looking at my properties file, things like "copy.src.files",
"copy.src.target", "run.as" and "url", are all local settings,
developers can set them differently and some are even OS dependent. I
could place an enhancement request or issue report, but I would like
to know if such things are possible or if there is some reason to the
way they are implemented.

--
Sem mais e com os melhores cumprimentos,

S
Back to top
radek matous
Posted via mailing list.





PostPosted: Thu Aug 28, 2008 5:08 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Sergio Lopes wrote:
Quote:
Sorry for the late reply, was unable to use my computer.


Quote:
Because unreproducible for me, there is no 100% guarantee that the bug was
already fixed. You can help to verify, if you like.

Currently no, I will be able to do it in the next 2 weeks or so. I
don't know if I can do it sooner.



ok
Quote:
Quote:
folders ignored by SVN should be copied into apache directory (meant file no
listed by command "svn status" ).
Just folowing files are intentionally not copied into apache directory:
1/ all the project metadata (nbproject/*.*)
2/ files ignored by IDE (according to pattern in
Tools/Options/Miscellaneous/Files)

did you edit settings "Files ignored by IDE" in
Tools/Options/Miscellaneous/Files?
Quote:
Quote:
else, please file an issue - http://www.netbeans.org/issues/enter_bug.cgi


As I just configured NetBeans Beta 6.5 on my ubuntu machine I notice
another problem with the files. This time the images on that should be
ignored were copied but some images that should not be ignored, and
were copied on the windows machine, are not on the destination folder.
I'll try to test this issue, to try and figure out something more
useful, after I get more information I'll file an issue report.

reporting it would be great, thanks. I don't understand this sentence
"were copied on the windows machine, are not on the destination
folder.", so were copied or not or where were copied?
Quote:
Two other things:

a) A redeploy or undeply/deploy features, like the one available for
JEE projects would be great. Currently, due to some images not being
copied, I tried to run the project several times to see if it would
copy the missing files, but the IDE never pick up the files as being
missing in the web folder and never copied the file, I had to manually
place it there. It would be nice to have some option to force the IDE
to copy everything like it was the first run.

include this info into your report. Just a note, files are copied just
after file change, not before first run.
Quote:
b) Why are settings like run url and copy folder destination stored on
the project.properties file instead of the private/project.properties?
Using SVN I always ignored the private folder, for other NetBeans
tools, private folder stores settings that make sense on the local
machine, and I can still have the nbproject folder so that other users
just open the project without having to create a new one.
As the path to the web folder into which the files are copied is
stored in the project.properties and not the
private/project.properties, it is hell to share the same project
between different computers, worst if they are different OS.
I just checked out a project, created in Windows, onto my ubuntu and
the paths just didn't work, naturally being set as Windows' paths.
Also various exceptions were thrown as none of the paths existed in
the current machine.
Can these settings be placed under the private folder?

Looking at my properties file, things like "copy.src.files",
"copy.src.target", "run.as" and "url", are all local settings,
developers can set them differently and some are even OS dependent. I
could place an enhancement request or issue report, but I would like
to know if such things are possible or if there is some reason to the
way they are implemented.

we are aware about some problems related to it, we are going to
discuss/evaluate/potentially fix which metadata should be shared and
which not, there are other related problems
http://www.netbeans.org/issues/show_bug.cgi?id=145477

-thanks
Radek


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@php.netbeans.org
For additional commands, e-mail: users-help@php.netbeans.org
Back to top
Sergio Lopes
Posted via mailing list.





PostPosted: Thu Aug 28, 2008 10:56 pm    Post subject: First contact with NetBeans PHP, and few questions about it. Reply with quote

Quote:
did you edit settings "Files ignored by IDE" in
Tools/Options/Miscellaneous/Files?
No, I did not changed the pattern for the files ignored by the IDE.
And looking at it, all images should have been copied.

Quote:
Quote:
Quote:

else, please file an issue - http://www.netbeans.org/issues/enter_bug.cgi


As I just configured NetBeans Beta 6.5 on my ubuntu machine I notice
another problem with the files. This time the images on that should be
ignored were copied but some images that should not be ignored, and
were copied on the windows machine, are not on the destination folder.
I'll try to test this issue, to try and figure out something more
useful, after I get more information I'll file an issue report.


reporting it would be great, thanks. I don't understand this sentence "were
copied on the windows machine, are not on the destination folder.", so were
copied or not or where were copied?

Not my finest sentence Smile
I'll try to explain my scenario in a better way. I one computer with
both Windows and Ubuntu Linux installed, the first time I used the PHP
modules I was using Windows XP. So the first problem about images not
being copied was on that OS.
The project I'm working on is a complete backup of what is deployed on
the live server, so I have all the gallery images in the project. On
Windows, I set the gallery folders, with the bulk of the images, to be
ignored by SVN.
When running the project for the first time, all the images in the
ignored folders were not copied. This was what made me ask if the
SVN's ignore attribute was being used when running/copying a project.

Today I download the beta onto my Ubuntu and checkout the project,
when running the project, I noticed that the images on the ignored
folders, those folders ignored in SVN, not in the IDE, were copied,
but some images, not ignored on SVN, were not copied.

Result: on windows OS, images under svn ignored folders were not
copied, but every other file was, on Ubuntu, images under svn ignored
folders were copied, but some files on "normal" folders were not.

Hope this clears the sentence :D


I'll try to look at this issue and make some more test to see if there
was any exception I missed, some warning or some other thing that
might be causing some files, in this case images, to be left out.

Currently I have some other things to work on, so I don't know when I
can test this properly.

--
Best regards,

S
Back to top
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