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 233325 - The chrome-netbeans-connector extension doesn't work with PHP projects
Summary: The chrome-netbeans-connector extension doesn't work with PHP projects
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-24 14:12 UTC by bug_repporter
Modified: 2013-07-25 12:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bug_repporter 2013-07-24 14:12:46 UTC
Hi,
I downloaded the extension chrome-netbeans-connector.crx and add it to chrome.
I opened a HTML or PHP project index file and I chose from the browser list [Chrome with Netbeans integration]
When I click on [Run project] or [Run file], the URL to the present project's index file is loaded in a new chrome tab and a yellow notice is displayed [Don't close this Tab it is debugged by chrome-netbeans-connector] and the page is correctly loaded in this tab but when I made a change in the current script source in the IDE and save changes the page is not reloaded and no things happens (no change) unfortunately.
I tested this with the following combinations and with latest chrome I have in my pc Version 28.0.1500.72 m :
Netbeans 7.3.1 + chrome-netbeans-connector_v1.0.crx / chrome-netbeans-connector_v1.0.9.crx  It works only for HTML project, other kind of project like PHP it doesn't work even if the index file is a html file, and there is no browser select list in the IDE, there is only a button [Run index.html] in the right panel [CSS Style] of the IDE when you open the index.html.
Netbeans 7.4 Build 201307232300 + chrome-netbeans-connector_v1.0.crx  the browser select list is present on the IDE but when you click it, the IDE tells you that the extension version is too old and you have to update it, I searched  "chrome-netbeans-connector.crx" in the netbeans 7.4… folder and drug-and drop it in chrome extension tab, it was installed (v1.0.9),  when running project, a new tab with the URL (with a different listening port 8383) is opened in chrome and it works only with HTML project,  other kind of project like PHP it doesn't work even if the index file is a html file.
Can you please fix this issue we need it is very helpful since it let to avoid page manual refreshing each time we made a change, by the way is this extensions specific  only for HTML project or it should work with other kind of projects.
The embedded webkit browser has the same issue with PHP project.
Thanks in advance keep up the good work
Comment 1 Vladimir Riha 2013-07-24 14:36:02 UTC
Hi, in 7.3.1 (and 7.3), web inspection works only in HTML/JavaScript projects, not PHP. And if I understood correctly, it works for you with HTML/JavaScript project ok, right?


In upcoming 7.4, these features are available in PHP/Web projects as well. I've tried following:

- run 7.4 Beta with empty user dir
- run PHP project (sample Todo List project) in NetBeans with IDE Integration, url of such page is http://localhost/TodoList/web/index.php
=> inspection works as supposed to.

Could you please describe step by step what are you doing and what are you seeing (URL of opened page expected vs. actually opened etc.). 
Also please: 
 - before starting NetBeans, edit file netbeans.conf in [netbeansInstallationFolder]/etc/netbeans.conf, there is a line starting with

   netbeans_default_options="-J-client ...

add -J-Dshow.webkit.protocol=true before the -J-client so result is 

   netbeans_default_options="-J-Dshow.webkit.protocol=true -J-client ...

Now if you run project in Chrome with NetBeans integration, if not opened, open Windows|Output and there should be panel called Webkit protocol. Attach content of this panel to this issue.

 - attach IDE when this problems happens (see [1])



Thank you in advance.

Adding Milan to CC: Milane, could you please try it in 7.4 Beta on Windows7 (make sure Chrome is updated to 28.x)? Thank you.





[1] http://wiki.netbeans.org/FaqLogMessagesFile





NetBeans 7.4 Beta, Ubuntu 12.04, JDK7u40 b33 32b, Chrome 28.0.1500.71
Comment 2 Vladimir Riha 2013-07-24 14:47:04 UTC
bug_repporter: Please try the steps from my previous comment in latest dev build from [1]. Thank you

[1] http://bits.netbeans.org/netbeans/trunk/nightly/latest/
Comment 3 mmolda 2013-07-24 14:53:28 UTC
I tried it on NetBeans 7.4 Beta and it works fine. I tried sample Todo List
Project and some new PHP Project. Everything works fine on 7.4 Beta and also on
latest dev build (201307232300).

Chrome 28.0.1500.72
NetBeans Connector 1.0.9

Product Version: NetBeans IDE 7.4 Beta (Build 201306141844)
Product Version: NetBeans IDE Dev (Build 201307232300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 4 Vladimir Riha 2013-07-24 14:55:18 UTC
Thanks Milane.

So closing as worksforme. Reporter, if you can reproduce it in latest dev build, please provide the requested information and simply reopen this issue. Thank you.
Comment 5 bug_repporter 2013-07-25 11:26:23 UTC
Hi,
Thanks for your reactivity and sorry for the delay.
I don't, but all what I did is to clean up my projects folders from all "nbproject" folders and recreating them from [Existing source] and magically it works fine in the 7.4 build201307232300 + chrome-netbeans-connector_v1.0.9.


Thanks again and sorry for the inconvenience
Comment 6 Vladimir Riha 2013-07-25 12:04:49 UTC
Thank you for confirmation, I'm glad it works for you.