This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132604 - Can not change Source folder for AirAlliance demo
Summary: Can not change Source folder for AirAlliance demo
Status: CLOSED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 11:13 UTC by Victoria Zhukovskaya
Modified: 2008-04-18 13:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
properies window (76.44 KB, image/png)
2008-04-11 11:14 UTC, Victoria Zhukovskaya
Details
Updated NMB (50.90 KB, text/plain)
2008-04-11 14:13 UTC, Tomas Kianicka
Details
Screenshot of propeties to set (169.34 KB, text/plain)
2008-04-15 13:28 UTC, Tomas Kianicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2008-04-11 11:13:54 UTC
1. install plugin org-netbeans-modules-php-samples.nbm 
2. Create AirAlliance sample (with default settings )
3. Invoke Properites for AirAlliance project
4. Change Source Folder for - D:\Program Files\Apache Software Foundation\Apache2.2\htdocs
  See warning message Project URL has to end with "/" (has to be directory)

I think the issue blocks demo sample
See screanshot
Comment 1 Victoria Zhukovskaya 2008-04-11 11:14:40 UTC
Created attachment 60038 [details]
properies window
Comment 2 Victoria Zhukovskaya 2008-04-11 11:14:56 UTC
Build #2004 (Apr 11, 2008 8:23:48 AM)
Comment 3 Tomas Mysik 2008-04-11 12:26:21 UTC
Now we check that the Project URL ends with a slash ("/") so the problem is in the sample itself and not in PHP 
project - fix is trivial, just to add missing slash to the Project URL and to recreate the sample.

I wrote an email about this issue to the author of the sample and ask him to fix it. Then I will close this issue.
Comment 4 Tomas Kianicka 2008-04-11 14:08:27 UTC
slash added, changed index default property

cannot push to release61-php repository due to authorization, attaching nbm to the issue and sending to php-dev
Comment 5 Tomas Kianicka 2008-04-11 14:13:03 UTC
Created attachment 60047 [details]
Updated NMB
Comment 6 Tomas Mysik 2008-04-14 09:13:40 UTC
Reassigning.
Comment 7 Tomas Kianicka 2008-04-14 18:09:11 UTC
This issue was already done. Project path is fixed and also the index file property was set.

Actual sample is at release61-php repository. It is not standalone module so I cannot attach updated NBM with the
sample. Sample should be included at PHP build.
Comment 8 Tomas Mysik 2008-04-15 08:52:58 UTC
Incorrect milestone.
Comment 9 Victoria Zhukovskaya 2008-04-15 12:42:00 UTC
I reopen the issue 

 there is no warning message (as above)
but  IDE does not copy source to selected folder D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\AirAlliance
And after try to change source folder we have empty tree on project tab.

my configuration:

Product Version: NetBeans IDE PHP (Build 2008-04-15_10-26-11)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_US (php)
Userdir: D:\Documents and Settings\vz153235.OLYMP\.netbeans\6.1php-ea
Comment 10 Victoria Zhukovskaya 2008-04-15 12:42:36 UTC
reopen
Comment 11 Victoria Zhukovskaya 2008-04-15 12:52:53 UTC
workaround is

use copy files from source to another location
Comment 12 Tomas Kianicka 2008-04-15 13:28:27 UTC
Created attachment 60200 [details]
Screenshot of propeties to set
Comment 13 Tomas Kianicka 2008-04-15 13:38:39 UTC
Workaround is not needed. In readme.html which opens in a browser is written that this setting of the php server and
copy path is user specific. In readme.html, there are no concrete steps to establish correct copying. Someone has path
to htdocs at C:\Program Files\... someone at different location.

Setting to correct running php sample is in Project properies: (screenshot phpSamples.jpeg)
1) check "Copy files ..." option
2) Set your specific path to php docs (or htdocs) with sample subdirectory
3) set your specific URL of the sample directory

Now when you click the project and select Run. The index.php of the sample should appear at the browser window.
Comment 14 Victoria Zhukovskaya 2008-04-15 13:53:50 UTC
Yes I agree. - I meant the same in my workaround.
But I guess that will be greate use the same scenario as for new created php project.

If we will use  Your steps - we can debug project with help IDE. (copy is only copy) IDE shows and works with sources.
Thank You for your comments.

Comment 15 Victoria Zhukovskaya 2008-04-15 13:55:34 UTC
certainly we can create sample in htdocs directly
Comment 16 Victoria Zhukovskaya 2008-04-15 13:57:58 UTC
sorry 
I missed 'not'

I mean  'we can NOT  debug project with help IDE'
Comment 17 Tomas Kianicka 2008-04-15 19:15:03 UTC
I see. Well unfortunatelly the changing of the wizard is not just a cosmetic change.

I created simple wizard, which cannot handle such features, I admit that. Unfortunatelly, I didn't receive more
specifications about the wizard, on contrary I was told that this simple wizard is sufficient. Although this does not
block the sample itself. 

Still, I think we are speaking about one sample, that will be included to PHP build. Disability of debugging the sample
directly after the creation, without setting the properties is acceptable.

I am not able to fix it in this super-short time period before the final release of 6.1. If I have more time and
information about correct wizard (by cooperating with PHP Developers) and also some more materials about wizard creation
(documents about wizard itself - javadoc is not enough), I can probably handle it.
Comment 18 Victoria Zhukovskaya 2008-04-16 10:03:11 UTC
Ok. I understand.

For demonstrate debuger for this sample I can   offer this scenario:
1. Create Project in folder ...\Apache2.2\htdocs\AirAlliance\
2. Change Project URL on properties window to http://localhost/AirAlliance/web/ (f.e.)

In this case we can debug sample.

I can delete this issue from umbrella 131609
Do you object to this?

Comment 19 Tomas Kianicka 2008-04-17 16:25:38 UTC
Ok, I'll add these instructions to the readme.html.

BTW, I have no idea what the umbrella 131609 is. You can delete it.
Comment 20 Tomas Kianicka 2008-04-17 16:37:26 UTC
Ok, I'll add these instructions to the readme.html.

BTW, I have no idea what the umbrella 131609 is. You can delete it.
Comment 21 Victoria Zhukovskaya 2008-04-17 17:27:48 UTC
I delete this issue from umbrella issue (131609)
Let me know when You  update
thank You.
Comment 22 Victoria Zhukovskaya 2008-04-18 13:18:29 UTC
verified in NetBeans IDE Early Access for PHP (Build 200804180006)
readme was changed.

PS
please do not close issues
This issue was closing before verifying