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 228538 - Connect dialogue box pops up unexpectedly
Summary: Connect dialogue box pops up unexpectedly
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 15:47 UTC by berniev
Modified: 2013-08-07 13:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
pic of dialogue box (9.82 KB, image/png)
2013-04-13 15:47 UTC, berniev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description berniev 2013-04-13 15:47:39 UTC
Created attachment 133485 [details]
pic of dialogue box

Product Version: NetBeans IDE Dev (Build 201304102301)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.0.0-32-generic-pae running on i386; UTF-8; en_AU (nb)

Can't be at all precise but from time to time when typing I get a Connect dialogue box pops up, with focus on the password field.

most recent was in something like 
<?php
$q = "some stuff {} stuff";
?>
then cursor between {} and typing $this->. After $t it pops up. It seems the letter after the $ can be any a-zA-Z.

Takes at least a couple of clicks on Cancel to make it go away.
Once it happens, it is repeatable by backspacing out the $t and repeating. Doesn't re-trigger if you leave the $ and retype the rest.

Very strange.
Comment 1 Ondrej Brejla 2013-04-14 06:50:50 UTC
Sorry, but I don't know that dialog :/ Maybe Tomas? Or somewhere in the infrastructure? Tomasi, can you evaluate it, and if it's not yours, reassing to e.g. IDE/Code? Thanks.
Comment 2 Tomas Mysik 2013-04-15 05:51:55 UTC
Never seen this dialog myself I think. Adding our QA to CC - guys, do you know the dialog from the attachment? My guess is that it could come from Database support - don't you know?

Thanks.
Comment 3 Tomas Mysik 2013-04-15 05:54:01 UTC
Reassigning to ide/Code, please evaluate. Thanks.
Comment 4 Vladimir Riha 2013-04-15 06:24:33 UTC
Yes, it pops up (in my case) if I want code completion for tables/dbs inside string that looks like sql query. Workaround could be to connect to database in Services|Databases so IDE won't be asking for credentials.

I can see that it is opened always twice.  Reassigning to DB
Comment 5 berniev 2013-04-15 06:45:33 UTC
Yes, thinking about it, the bit about strings that look like sql queries is spot on.

Wasn't aware this was even possible [and I wasn't alone it seems!]. Can find no mention in options.

So regardless if this is then an actual bug then or not ..

Repeating yesterday's rant in another bug report, as a matter of design principle, IMHO, every smart like this that affects the user experience but is not essential to basic operation should have an enable/disable option.
Comment 6 Vladimir Riha 2013-08-07 13:03:35 UTC
I've tried it again and I cannot reproduce it anymore with steps from comment #0

Product Version: NetBeans IDE Dev (Build 201308052300)
Updates: Updates available
Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Libor Fischmeistr 2013-08-07 13:09:54 UTC
Vlada thank you.

I was also unsuccessful to reproduce it.

When you use code completion and in the list of offers should be some item related to DB it needs to be connected to that DB - need to know username and password...

Closing as WORKSFORME.

Please try to reproduce with latest daily build and if this message-box still appears to you, reopen with IDE log.

http://wiki.netbeans.org/FaqLogMessagesFile