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 244047 - Netbeans connector not recognized in Chrome 35
Summary: Netbeans connector not recognized in Chrome 35
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 244052 249270 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-24 11:28 UTC by autCyrius
Modified: 2015-09-11 11:02 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Chrome Version (4.16 KB, text/html)
2014-04-24 11:42 UTC, autCyrius
Details
Protected Preferences (39.06 KB, application/octet-stream)
2014-04-25 07:36 UTC, Vladimir Riha
Details
NetBeans connector error message 1 (19.45 KB, image/png)
2014-10-01 07:09 UTC, cornel.masson
Details
NetBeans Chrome Connector errors message 2 (24.39 KB, image/png)
2014-10-01 07:10 UTC, cornel.masson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description autCyrius 2014-04-24 11:28:37 UTC
System:
Windows 8.1 64 bit, de-DE
NetBeans IDE 8.0
Google Chrome	35.0.1916.69 (Offizieller Build 265428) beta-m

When I try to use the NetBeans connector with Google Chrome, it tells me to install the Extension. Installing it via the official google site doesn't work at all. Installing it manually does work, but only once (for this one debugging instance). If I then close the tab, and start debugging again, I have to install the Extension again (by drag&dropping the .crx into chrome (I don't have to uninstall it first)). Then it works again. Restart PC/NetBeans/Chrome does not change anything.

I've read in another issue that it might be due to localization, but this was in 2012 and Windows XP.
Comment 1 Vladimir Riha 2014-04-24 11:32:39 UTC
Could you please attach here content of following page opened in Chrome?

chrome://version

Could you also try stable Chrome, if it makes any difference? Thank you
Comment 2 autCyrius 2014-04-24 11:42:52 UTC
Created attachment 146918 [details]
Chrome Version
Comment 3 autCyrius 2014-04-24 11:48:58 UTC
Stable channel of Chrome works.
Comment 4 Vladimir Riha 2014-04-24 12:36:19 UTC
Thank you for the update, I'll try it later on Windows8 (en) with Beta Chrome as well.
Comment 5 kmcglinn 2014-04-24 14:36:57 UTC
Hi There,

This exact same thing has begun happening to me today (this was working previously for months). Here is my chrome version:

Google Chrome	35.0.1916.69 (Official Build 265428) m
OS	Windows 
Blink	537.36 (@172278)
JavaScript	V8 3.25.28.13
Flash	13.0.0.182
User Agent	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.69 Safari/537.36
Command Line	"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
Executable Path	C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Profile Path	C:\Users\KnoHolEM\AppData\Local\Google\Chrome\User Data\Default
Variations	
6dcb530d-d1261266
74785582-3f4a17df
514bad25-7215e5f8
e950616e-ca7d8d80
8afebf76-a993dfc1
c70841c8-a2567007
29f8fea-dffbf7ac
195ce1b5-d93a0620
9e5c75f1-5e376845
24dca50e-837c4893
ca65a9fe-91ac3782
8d790604-805355d4
4ea303a6-cf8ac7e6
b2612322-9b48079a
ea1014b7-dd21eb5a
5a3c10b5-e1cc0f14
244ca1ac-e1cc0f14
3ac60855-486e2a9c
246fb659-5c63917a
f296190c-8965af99
4442aae2-a5822863
ed1d377-e1cc0f14
75f0f0a0-4ad60575
e2b18481-bca011b3
e7e71889-4ad60575
398dbd56-ca7d8d80
Comment 6 kmcglinn 2014-04-24 14:47:53 UTC
Ok,

I fixed the problem although not sure how. I uninstalled the extension, then I went into task manager and closed down all instances of chrome, I then hit run in netbeans and was prompted that I needed to install the connector. I opened the browser through that window and installed. When chrome restarted it also asked me to log into google drive again (not sure if that is relevant). Now I can open and close chrome and run netbeans connector and works as before. 

Hopefully it doesn't start happening again!
Comment 7 Vladimir Riha 2014-04-25 06:39:12 UTC
Reproducible on Chrome 35 Beta and Windows (haven't tried Linux)

Tomasi, assigning to you but please if I'm wrong reassign it to someone else. Apparently Chrome 35 somehow changed something with extensions. Among others, with Chrome 35,  it won't be possible to install extensions from outside of WebStore (I guess it affects NB RC builds, maybe Beta?). 

Chrome 35 will be released at the end of May


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Google Chrome	35.0.1916.69 (Official Build 265428) beta-m
Comment 8 Tomas Mysik 2014-04-25 07:25:34 UTC
Nice. I have no idea where to look exactly but I guess there is noone else who could do that right now...
Comment 9 Petr Jiricka 2014-04-25 07:29:43 UTC
> it won't be possible to install extensions from outside of WebStore

Well, in RC/FCS builds, we do install the Chrome extension from the WebStore, so I'd guess the issue is something else.

Thanks Tomas for looking into this.
Comment 10 Vladimir Riha 2014-04-25 07:35:58 UTC
It seems like there is a new file called "Protected Preferences" in directory of Chrome's user profile. This file contains info about extensions. It used to be in "Preferences" in older versions. I'll upload the file here for reference.
Comment 11 Vladimir Riha 2014-04-25 07:36:49 UTC
Created attachment 146930 [details]
Protected Preferences
Comment 12 Tomas Mysik 2014-04-25 08:33:48 UTC
I made the fix as Láďa suggested, it seems to work for me. Láďo, please test carefully stable as well as beta version of Chrome. Also let me know if it is fine to backport it to Patch 1 (once it is verified).

Thanks a lot.

http://hg.netbeans.org/web-main/rev/df69e94154ba
Comment 13 Vladimir Riha 2014-04-25 08:40:28 UTC
Thank you, will try in first web-main build.

I know it's late but I think this would be good to either put to patch1 (maybe together with issue 244049) or place it to update center before Chrome 35 will be released. Otherwise Easel won't work with Chrome35+. I found yesterday that Chrome 35 should be released at the end of May, but I can't find this information now to verify the date...
Comment 14 Jiri Kovalsky 2014-04-25 09:16:47 UTC
I think we should deliver this fix in Patch 1 together with fix of #244049 if it gets fixed today. If not, it would go out in a follow up Patch 2. Tomasi, please backport the fix to release80 branch upon Lada's verification in trunk. Thanks!
Comment 15 Tomas Mysik 2014-04-25 09:24:26 UTC
Sure, I will do that.

Thanks.
Comment 16 Vladimir Riha 2014-04-25 11:12:01 UTC
Thanks Tomasi. I've tried following:

- Windows 7, Chrome 34 (stable) => works fine
- Windows 7, Chrome 35 (beta) => works fine
- Ubuntu 12.04, Chrome 34 (stable) => works fine

Chrome Beta on Linux does not work but this is not related to this issue.

Verified

Product Version: NetBeans IDE Dev (Build web-main-765-on-20140425)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 17 Tomas Mysik 2014-04-25 11:17:55 UTC
Transplanted to releases repo to the branch release80.

Thanks.

http://hg.netbeans.org/releases/rev/6eb57636aeb7
http://hg.netbeans.org/releases/rev/437376af50c6
Comment 18 Quality Engineering 2014-04-25 19:36:29 UTC
Integrated into 'releases/release80', will be available in build *201404251830* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/6eb57636aeb7
User: Tomas Mysik <tmysik@netbeans.org>
Log: #244047 - Netbeans connector not recognized in Chrome 35
(transplanted from df69e94154ba31e23ea2573b27c6b0f5ed66dfa9)
Comment 19 Quality Engineering 2014-04-26 04:51:46 UTC
Integrated into 'main-silver', will be available in build *201404260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/df69e94154ba
User: Tomas Mysik <tmysik@netbeans.org>
Log: #244047 - Netbeans connector not recognized in Chrome 35
Comment 20 autCyrius 2014-04-26 10:58:46 UTC
I can confirm that this bug is fixed now with:
Netbeans IDE Dev 201404260001
Google Chrome	35.0.1916.69 (Offizieller Build 265428) beta-m
Comment 21 Vladimir Riha 2014-04-26 15:32:39 UTC
*** Bug 244052 has been marked as a duplicate of this bug. ***
Comment 22 Vladimir Riha 2014-04-28 09:17:45 UTC
verified in patch1
Comment 23 cornel.masson 2014-10-01 07:07:33 UTC
I don't know if this is exactly the same bug, but I'm now experiencing the same kind of thing under Chrome 37.

When I click the green Run Project icon in NetBeans, I get an error message 'NetBeans Connector Chrome Extension is required' (see attachment 1 [details]). If I click the 'Not connected?' link, I get another error message (attachment 2 [details]). If I click 'Yes, the extension is installed now' , I get the same error.

If I cancel out and re-install NetBeans Connector in Chrome (from Chrome Web Store), it works. BUT only until the next Chrome restart, then it fails again.

Chrome version: 37.0.2062.124 m

NetBeans and platform version info:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 3
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Runtime: Java(TM) SE Runtime Environment 1.7.0-b147
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 24 cornel.masson 2014-10-01 07:09:09 UTC
Created attachment 149636 [details]
NetBeans connector error message 1
Comment 25 cornel.masson 2014-10-01 07:10:32 UTC
Created attachment 149637 [details]
NetBeans Chrome Connector errors message 2
Comment 26 Vladimir Riha 2014-10-01 07:17:51 UTC
Please download latest NetBeans 8.0.1 (https://netbeans.org/downloads/), it should work with it. There have been several fixes after 7.4
Comment 27 cornel.masson 2014-10-01 08:03:27 UTC
OK, I can confirm that it works with 8.0.1. My 7.4 didn't indicate that an update was available, but I guess it's because 8 is a new major version?



(In reply to Vladimir Riha from comment #26)
> Please download latest NetBeans 8.0.1 (https://netbeans.org/downloads/), it
> should work with it. There have been several fixes after 7.4
Comment 28 Vladimir Riha 2014-10-01 08:45:07 UTC
Yes, IDE update to major version must be done via a new installation. Thank you for confirmation.
Comment 29 Vladimir Riha 2014-12-11 07:32:56 UTC
*** Bug 249270 has been marked as a duplicate of this bug. ***
Comment 30 adam_felix_fps 2015-09-11 10:57:28 UTC
This is happening again for me when using Chrome Canary or Chromium.  I have to reinstall the plugin every time even though it is installed. Using real Chrome works OK but
Comment 31 adam_felix_fps 2015-09-11 10:59:24 UTC
This is happening again for me when using Chrome Canary or Chromium.  I have to reinstall the plugin every time even though it is installed. Using real Chrome works OK but I would prefer to use Chromium if possible.  For a short while I had Chromium listed as a browser that I could use with the connector but after updating it no longer appears. Canary and Chromium are both currently at 47 I think.  Chrome is at 45.
Comment 32 Vladimir Riha 2015-09-11 11:01:53 UTC
Please do not reopen this older issue.

There is a new update (invoke Help->Check for updates in NetBeans) for some latest plugin recognition issue and also a new version of NetBeans Connector has been released to Chrome Web Store.

If that won't help you, could you please file a new bug with precise version of Chrome/Chromium and IDE log (see http://wiki.netbeans.org/FaqLogMessagesFile)?

Thank you