Disable group by completion insight in SQL Worksheet
Does anyone know how to disable the group by completion insight in a SQL worksheet? I like all of the code completions other than this one; it has messed up may queries.
I have searched the preferences and cannot find it. I thought I remembered enabling it at one point, but now I'm stuck.
Thanks
Does anyone know how to disable the group by completion insight in a SQL worksheet? I like all of the code completions other than this one; it has messed up may queries.
I have searched the preferences and cannot find it. I thought I remembered enabling it at one point, but now I'm stuck.
Thanks
Similar Messages
-
Group By Completion Insight Bug
1. Open a connection and type the following:
select d.dummy, count(d.dummy) from dual d group by d.dummy;
2. Now modify the select list as follows:
select d.dummy, count(d.dummy), count(d.dummy) sum from dual d group by d.dummy;
3. Completion insight changes the code to:
select d.dummy, count(d.dummy), count(d.dummy) from dual d group by d.dummy, count;
ORA-00904: "COUNT": invalid identifier
Version 2.1.1.64
Java(TM) Platform 1.6.0_15
Oracle IDE 2.1.1.64.45
Versioning Support 2.1.1.64.45
Mac OSX LeopardHi Vadim,
I agree with you about the order of the SQL clauses. They must have been pretty keen on it 'making sense' in English. Meh! ;)
Autocomplete is cool, but as someone who can touch type (albeit at only ~70 wpm!), I usually find waiting for it to kick in a bit tiresome given that I can finish "select * from" in not much more than a second. I don't turn it off because it hardly ever gets a chance to fire.
I do use autocomplete in some other tools; in VB, it gives you a canonical map of the object model you are working with (often there seem to be things missing in SQL Developer). In TextMate, on the other hand, it isn't so 'smart', but its wicked fast, which it does by simply relying on text in the current file. Both work well. I do understand there is a different set of challenges in a DBMS client, though.
Incidentally, when I just tried selecting two tables simultaneously, the tool generated invalid SQL:
select * from V_TN_SPAN_GRPS _, V_TNS_WITH_DEFAULT_CONTRACTS S
(i.e. it supplied an underscore as the alias for the first view.)
Also, Ctrl+Space doesn't work for me (I'm on a Mac). Actually, there appear to be several default keymappings that don't work on a Mac. Here is my version info...
About
Oracle SQL Developer 3.0.02
Version 3.0.02
Build MAIN-02.83
Copyright © 2005,2010 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.58.80
Product ID: oracle.sqldeveloper
Product Version: 11.1.2.02.83
Version
Component Version
========= =======
Java(TM) Platform 1.6.0_20
Oracle IDE 3.0.02.83
Versioning Support 3.0.02.83
Properties
Name Value
==== =====
apple.awt.graphics.UseOpenGL false
apple.awt.graphics.UseQuartz false
apple.laf.useScreenMenuBar true
awt.nativeDoubleBuffering true
awt.toolkit apple.awt.CToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
com.apple.macos.smallTabs true
com.apple.mrj.application.apple.menu.about.name SQL_Developer
com.apple.mrj.application.growbox.intrudes false
file.encoding MacRoman
file.encoding.pkg sun.io
file.separator /
gopherProxySet false
http.agent Mozilla/5.0 (Java 1.6.0_20; Mac OS X 10.5.8 x86_64; en_US) ICEbrowser/v6_1_3
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 1292186226787790000
ide.build MAIN-02.83
ide.conf /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.config_pathname /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir /Users/henrycollingridge/.sqldeveloper
ide.product oracle.sqldeveloper
ide.splash.screen splash.gif
ide.startingcwd "/Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin"
ide.user.dir /Users/henrycollingridge/.sqldeveloper
ide.user.dir.var IDE_USER_DIR
ide.vcs.noapplications true
ide.work.dir /Users/henrycollingridge/sqldeveloper
java.awt.graphicsenv apple.awt.CGraphicsEnvironment
java.awt.printerjob apple.awt.CPrinterJob
java.class.path ../../ide/lib/ide-boot.jar
java.class.version 50.0
java.endorsed.dirs /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/endorsed
java.ext.dirs /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext
java.home /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
java.io.tmpdir /var/folders/Z7/Z7MY8LDOGtWDoXjXAewXxk++0Wk/-Tmp-/
java.library.path .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.protocol.handler.pkgs oracle.jdevimpl.handler
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_20-b02-279-9M3165
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.util.logging.config.file logging.conf
java.vendor Apple Inc.
java.vendor.url http://www.apple.com/
java.vendor.url.bug http://bugreport.apple.com/
java.version 1.6.0_20
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Apple Inc.
java.vm.version 16.3-b01-279
jdbc.library /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/jdbc/lib/ojdbc5.jar
line.separator \n
log.file.name ../\log\datamodeler.log
mrj.build 9M3165
mrj.version 1050.1.6.0_20-279
oracle.home /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.mapDateToTimestamp false
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/jlib/orai18n.jar
os.arch x86_64
os.name Mac OS X
os.version 10.5.8
path.separator :
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 64
sun.awt.exception.handler apple.awt.CToolkit$EventQueueExceptionHandler
sun.boot.class.path ../../rdbms/jlib/ojdi.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsfd.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar
sun.boot.library.path /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries
sun.cpu.endian little
sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle
sun.java.launcher SUN_STANDARD
sun.java2d.ddoffscreen false
sun.jnu.encoding MacRoman
sun.management.compiler HotSpot 64-Bit Server Compiler
sun.os.patch.level unknown
svnkit.sax.useDefault true
user.country US
user.dir /Users/henrycollingridge/software/oracle_sql_developer/3.0 EA2/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin
user.home /Users/henrycollingridge
user.language en
user.name henrycollingridge
user.timezone Pacific/Auckland
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.58.80 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.58.80 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.58.80 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.58.80 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.58.80 Loaded
Database UI oracle.ide.db 11.1.1.4.37.58.80 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.58.80 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.58.80 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.58.80 Loaded
File Support oracle.ide.files 11.1.1.4.37.58.80 Loaded
Help System oracle.ide.help 11.1.1.4.37.58.80 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.58.80 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.58.80 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.58.80 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.58.80 Loaded
Log Window oracle.ide.log 11.1.1.4.37.58.80 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.58.80 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.58.80 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.58.80 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.58.80 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.2.02.83 Loaded
Oracle SQL Developer - 3rd Party Database Browsers oracle.sqldeveloper.thirdparty.browsers 11.1.1.02.83 Loaded
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.1.1.02.83 Loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 1.1.1.02.83 Loaded
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Antlr3 Translator oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 11.1.1.02.83 Loaded
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.02.83 Loaded
Oracle SQL Developer - Object Viewer oracle.sqldeveloper.oviewer 11.1.1.02.83 Loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.1.1.02.83 Loaded
Oracle SQL Developer - Reports oracle.sqldeveloper.report 11.1.1.02.83 Loaded
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 11.1.1.02.83 Loaded
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 11.1.1.02.83 Loaded
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.1.1.02.83 Loaded
Oracle SQL Developer - Snippet oracle.sqldeveloper.snippet 11.1.1.02.83 Loaded
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 11.1.1.02.83 Loaded
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 2.0.0.02.83 Loaded
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.1.1.02.83 Loaded
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.1.1.02.83 Loaded
Oracle SQL Developer - User Extensions Support oracle.sqldeveloper.userextensions 11.1.1.02.83 Loaded
Oracle SQL Developer - Worksheet v2 oracle.sqldeveloper.worksheet 11.1.1.02.83 Loaded
Oracle SQL Developer - XML Schema oracle.sqldeveloper.xmlschema 11.1.1.02.83 Loaded
Oracle SQL Developer Data Modeler oracle.datamodeler.viewer 3.0.0.654 Loaded
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.02.83 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.58.80 Loaded
Peek oracle.ide.peek 11.1.1.4.37.58.80 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.58.80 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.58.80 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.58.80 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.58.80 Loaded
Runner oracle.ide.runner 11.1.1.4.37.58.80 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.58.80 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.58.80 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.58.80 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.58.80 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.58.80 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.58.80 Loaded
audit oracle.ide.audit 11.1.1.4.37.58.80 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.4.37.58.80 Loaded
mof-xmi oracle.mof.xmi 11.1.1.4.37.58.80 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.4.37.58.80 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.4.37.58.80 Loaded
palette2 oracle.ide.palette2 11.1.1.4.37.58.80 Loaded
status oracle.ide.status 11.1.1.4.37.58.80 Loaded -
On my system, with win xp pro and jdk 1.5.0_09, completion insights don't work in SQL Worksheet.
I've forced debug mode in sqldeveloper.conf en started up SQL Developer 1.1.1.25.14 via the command prompt, which means stack traces are now dumped to system out.
This is what happens when I type ctrl-space in SQL Worksheet:
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getDefaultInsightContext
INFO: context = fr
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getInsightData
INFO: getInsightData: fr
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil executeOracleQuery
INFO: Prepared:select object_type,owner,object_name,rank from ( select object_type,owner,object_name,0 rank from all_objects where object_name = :NAME
and UPPER(owner) = nvl(:OWNER,UPPER(sys_context('USERENV', 'CURRENT_SCHEMA'))) and object_type not in ( 'SYNONYM' ) union all select ao.object_typ
,ao.owner,ao.object_name,decode(UPPER(syn.owner), nvl(:OWNER,UPPER(sys_context('USERENV', 'CURRENT_SCHEMA'))),10,20) from all_objects ao,all_synonyms syn
where ao.owner = syn.table_owner and ao.object_name = syn.table_name and syn.synonym_name = :NAME ) where object_type not in ('PACKAGE BODY') order
by rank
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:NAME:FR
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:null
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil executeOracleQuery
INFO: Prepared:select 'SCHEMA' object_type , :OWNER owner , :OWNER object_name from all_users where username = :OWNER
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:FR
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getInsightData
INFO: Found base Object
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight findAliasedName
INFO: Checking:select * fr
Exception invoking action: completion-insight
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at oracle.dbtools.raptor.insight.CompletionInsight.getInsightData(CompletionInsight.java:247)
at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:777)
at oracle.javatools.editor.insight.AbstractInsight.invokeCompletionTypeAction(AbstractInsight.java:395)
at oracle.javatools.editor.insight.AbstractInsight.invokeAction(AbstractInsight.java:368)
at oracle.javatools.editor.BasicEditorPane.invokeAction(BasicEditorPane.java:1983)
at oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction(IdeKeymapHelper.java:185)
at oracle.javatools.editor.keys.MultiKeyHandler.keyPressed(MultiKeyHandler.java:334)
at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:191)
at java.awt.Component.processKeyEvent(Component.java:5446)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2713)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Hope this helps...On my system, with win xp pro and jdk 1.5.0_09,
completion insights don't work in SQL Worksheet.
I've forced debug mode in sqldeveloper.conf en
started up SQL Developer 1.1.1.25.14 via the command
prompt, which means stack traces are now dumped to
system out.
This is what happens when I type ctrl-space in SQL
Worksheet:
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getDefaultInsightContext
INFO: context = fr
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getInsightData
INFO: getInsightData: fr
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil
executeOracleQuery
INFO: Prepared:select
object_type,owner,object_name,rank from ( select
object_type,owner,object_name,0 rank from all_objects
where object_name = :NAME
and UPPER(owner) =
nvl(:OWNER,UPPER(sys_context('USERENV',
'CURRENT_SCHEMA'))) and object_type not in (
'SYNONYM' ) union all select ao.object_typ
,ao.owner,ao.object_name,decode(UPPER(syn.owner),
nvl(:OWNER,UPPER(sys_context('USERENV',
'CURRENT_SCHEMA'))),10,20) from all_objects
ao,all_synonyms syn
where ao.owner = syn.table_owner and ao.object_name =
syn.table_name and syn.synonym_name = :NAME ) where
object_type not in ('PACKAGE BODY') order
by rank
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:NAME:FR
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:null
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil
executeOracleQuery
INFO: Prepared:select 'SCHEMA' object_type , :OWNER
owner , :OWNER object_name from all_users where
username = :OWNER
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:FR
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getInsightData
INFO: Found base Object
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
findAliasedName
INFO: Checking:select * fr
Exception invoking action: completion-insight
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
at java.lang.String.substring(String.java:1768)
at
oracle.dbtools.raptor.insight.CompletionInsight.getIns
ightData(CompletionInsight.java:247)
at
oracle.javatools.editor.insight.AbstractInsight.showIn
sight(AbstractInsight.java:777)
at
oracle.javatools.editor.insight.AbstractInsight.invoke
CompletionTypeAction(AbstractInsight.java:395)
at
oracle.javatools.editor.insight.AbstractInsight.invoke
Action(AbstractInsight.java:368)
at
oracle.javatools.editor.BasicEditorPane.invokeAction(B
asicEditorPane.java:1983)
at
oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction
(IdeKeymapHelper.java:185)
at
oracle.javatools.editor.keys.MultiKeyHandler.keyPresse
d(MultiKeyHandler.java:334)
at
java.awt.AWTEventMulticaster.keyPressed(AWTEventMultic
aster.java:191)
at
java.awt.Component.processKeyEvent(Component.java:5446
at
javax.swing.JComponent.processKeyEvent(JComponent.java
:2713)
at
java.awt.Component.processEvent(Component.java:5265)
at
java.awt.Container.processEvent(Container.java:1966)
at
java.awt.Component.dispatchEventImpl(Component.java:39
55)
at
java.awt.Container.dispatchEventImpl(Container.java:20
24)
at
java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.KeyboardFocusManager.redispatchEvent(Keyboard
FocusManager.java:1810)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(
DefaultKeyboardFocusManager.java:672)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEve
nt(DefaultKeyboardFocusManager.java:920)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertio
ns(DefaultKeyboardFocusManager.java:798)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(Def
aultKeyboardFocusManager.java:636)
at
java.awt.Component.dispatchEventImpl(Component.java:38
41)
at
java.awt.Container.dispatchEventImpl(Container.java:20
24)
at
java.awt.Window.dispatchEventImpl(Window.java:1778)
at
java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(
EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Ev
entDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchT
hread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchT
hread.java:149)
at
java.awt.EventDispatchThread.run(EventDispatchThread.j
ava:110)
Hope this helps...The Oracle instance I'm connecting to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
PL/SQL Release 9.2.0.7.0 - Production
CORE 9.2.0.7.0 Production
TNS for Solaris: Version 9.2.0.7.0 - Production
NLSRTL Version 9.2.0.7.0 - Production -
"completion insight" and "change case as you type" won't work for sql file
Hi there,
Just updated to 3.1 on my Mac Lion. It's very likely a bug since it used the work with 3.0.
I have a "temp.sql" file where I store several queries. I start SQL Developer, open "temp.sql", connect to a DB but "completion insight" and "change case as you type" won't work anymore.
If I click in "Unshared SQL Worksheet", the new worksheet tab will work fine with completion and change case, but I want to use my temp.sql and save things there when closing the application.
To reproduce yourself the issue:
Open SQL Dev, connect to a DB (it will open a worksheet), do some queries and check that change case and completion are working, quit SQL Dev, but save the worksheet in a sql file before. Re-open SQL Dev and open the sql file. Connect to the same DB and try to change the queries or create another. Completion and change case won't work anymore.
About
Oracle SQL Developer 3.1.07
Version 3.1.07
Build MAIN-07.42
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product Version: 11.2.0.07.42
Version
Component Version
========= =======
Java(TM) Platform 1.6.0_31
Oracle IDE 3.1.07.42
Versioning Support 3.1.07.42Well, it's partially working, if your sql file is big (like mine), say with more than 1000 lines, then, maybe because of memory usage, the automatic completion won't work as expected, though, sometimes, after a while, crtl-space would stil work.
So, the problem may have been addressed, but I believe this feature can be definitely improved. -
Completion Insight Problem for SQL Developer 3.0.04.34 ?
Hello,
I am observing that for a SQL Worksheet which has more than 270 lines of different SQL queries, the Completion Insight doesn't work.
I am using Oracle SQL Developer 3.0.04.34 on a Windows 7 (32 bit machine).
Is there anything else which needs to be checked?
Edited by: 922015 on Mar 19, 2012 11:02 PMCan't reproduce. Need a test case.
select * from emp; -- repeated 500 times
then
select * from e<ctrl-space> -- line #501
works. -
I recently downloaded SQL developer Version 2.1.1.64. However the code completion feature is not working automatically. I have checked the Automatically complete code in SQL worsheet checkbox under Tools->Preferences-> Code Editor-> Completion Insight.
Strangely, I get the code completion pop up window when I explicitly press the completion insight shortcut(Ctrl + Space).
Please help.
Thanks and Regards.Hi, I am getting the following logs :
Code completion time = 1015
*...?aux tok2?, parse time = 63
InsightableOracleDatabase.fetch() time = 360
Code completion time = 844
Finished parsing = 0
*...?aux tok2?, parse time = 62
InsightableOracleDatabase.fetch() time = 344
Code completion time = 812
Finished parsing = 0
*...?aux tok2?, parse time = 63
InsightableOracleDatabase.fetch() time = 359
Code completion time = 891
Finished parsing = 0
Thanks -
Completion Insight Won't Work After Changing Worksheet's Connection.
I've noticed that with 3.1.07.42 completion insight seems unreliable and managed to track it down to being caused by switching a worksheet's connection. The completion insight functionality seems to remain stuck in the first connection.
Steps to recreate:
1. Open a worksheet to connection1.
2. Paste in two incomplete queries. One for a table only present in connection1, and another with the same for connection2.
3. Verify that completion insight works for the query for connection1.
4. Switch worksheet's connection to connection2
5. Try to bring up the completion insight for the connection2 query. Fails for me.
6. Try to bring up the completion insight for the connection1 query. Still works.I don't know how to verify this but maybe there was a bad batch of ink out there. My ink was low, changed the cartidge, still not joy. I did the clean heads so many times i ran out of another color. I changed the print head assembly and still no joy. I gave up at this point, but does anyone know if HP has any advisaries about bad ink (up till now I have always used HP Ink). Or maybe they wouldn't want to admit it because of all of the repairs they would be resposible for.
-
Code Templates/Completion Insight SQL Developer 3.2.2
Hello, today I got the version 3.2.2. During the first start all setting from my previous version were imported and all work perfect, except the completion insight.
If I write
ssf +[CTRL + Space]
the result in the previous version is
select * from
In the new version, for the same input is:
ssfselect * from
For other code template it is the same, the id for the code template will not be delete while setting the code template.
Is this a bug or is there somethin wrong with my enviroment?It's a bug that's been fixed for version 4.0.
-
How can I turn off auto formatting whilst working in the SQL Worksheet?
Friends,
Hope you can help with a quick question.
Is it possible to stop the auto formatting of SQL statements in the SQL worksheet?
e.g. When I type select * from dual it auto formats to becomes SELECT * FROM DUAL when I hit return.
I am using SQL Developer 2.1.1.64
Thanks in advancePreferences - Code Editor - Completion Insight - uncheck Change case as you type
Have fun,
K. -
Completion Insight not working correctly when using Enterprise User Security (EUS) logon
This is a pre existing issue we've experienced with SQL Developer, though I've only just worked out what is causing the issue it is present in previous versions of the tool, up to the current 4.0.EA2.
We experience issues with the Completion Insight functionality of SQL Developer.
When we log into a database using Enterprise User Security i,e authenticating against OID, the schema of the database account is prefixed to any reference to public synonyms, ie all user_%, all_%, dba_% and v$% views.
When I change the authentication of the database account back to normal database authentication the schema prefix correctly isn't shown. It simply suggests the synonym name of the views.
An example of this is as follows when attempting to query the DBA_TABLES view:
The database account is ORADBA and has DBA privs.
The EUS user that is mapped to the ORADBA schema is dbutler.
The ORADBA user is configured to authenticate externally (against OID).
I login with my dbutler directory credentials:
If I start typing:
select * from dba_tabl
The object name is suggested as ORADBA.dba_tables
If I change the authentication of the ORADBA account back to database authentication, the prefix is no longer present.
i.e If I start typing:
select * from dba_tabl
The object name is suggested as dba_tablesIf you're not using DB 10.2 this is the "expected" behavior for the DB. See also metalink note 351170.1 "Enterprise Users Can Connect to a Database when the OID Account is Disabled"
regards,
--Olaf -
BUG: EA 2.1 code editor: completion insight doesn't work in opened files
I just migrated from SQLDEV 1.5.5 to EA 2.1. It's nice that I colud find so many of my suggestions implemented in this new version. THANKX :-)
code editor:
When I'm working in SQL Worksheet the "completion insight" feature is working well, but when I try to use it in an opened file, it doesn't work.
Is there a special preference to turn on for use with files?
Edited by: @chris on 12.11.2009 10:57Correct it did work in 1.5. on .sql files, when connected, so I have updated the ER to bug. We also need to expand this to support PL/SQL files.
Sue -
3.1EA1: Completion insight
Hello,
Im using SQL Developer on Windows 7 32-bit, Java 1.6.0_27, Oracle 10gR2
Completion insight is not working when writing a query in an *.sql file. Eventough the database connection is opened and selected in the sql-worksheet.
Kind regards,
D.Hi Vadim,
Thanks for picking up this thread. A quick update on my research for this matter...
1) In 3.0.04.34, I have no trouble getting Code Insight to work on an opened SQL file once a connection is selected from the drop-down list.
2) In 3.1.06.44, it does not work after selecting the first connection, but will after switching to another connection, e.g.,
Test case:
a. Open a SQL file containing "select deptno from emp"
b. Select a "local_scott" connection from the drop-down list.
c. Change text to "select deptno, e from emp" and ctrl-space with cursor immediately after the ", e". No result.
d. Select another connection, say "remote_scott", from the drop-down list.
e. Repeat (c), highlighting "empno" and "ename" in the list. Enter to add to the SQL text. 3) In 3.1.06.44, running from the command line, I got the following exception while adding ", j" followed by ctrl-space:
Registered TimesTen
Parser.forest(): AssertionErrorunwind labeled_nonblock_stmt: unlabeled_nonblock_stmt!; @[0,11)
Exception in thread "InsightThread" java.lang.NullPointerException
at oracle.dbtools.raptor.insight.CompletionInsight.complete(CompletionInsight.java:740)
at oracle.dbtools.raptor.insight.CompletionInsight$InsightThread.run(CompletionInsight.java:507)
but it seemed to work fine anyway.
It's great that a workaround exists. I leave any bug raising up to you.
-Gary -
Completion Insight not working
A customer is using the same version of SQL Developer on the same workstation platform as myself. My Completion Insight works, his does not.
SQL Developer version 3.1.07 on Windows 7 Professional.
Completion Insight is enabled under Tools->Preferences->Completion Insight. Regardless of this setting the ctl + <space> shortcut works instantly for me, but under no circumstances for the customer.
I made a test account on the DB that mirrors customer's privileges - my Completion Insight using the test account still works, so the problem must be with local to his install.
I verified his SQL Developer files came from the same zip file I used for my own installation.
Any ideas what is preventing his Completion from working?You might consider upgrading your customer to the latest release, v3.2.20.09
In the meantime, I've noticed completion insight NOT working when there's a syntax/parsing issue. For example, what's in the worksheet code wise when they try it?
With an empty worksheet, if they type select * from <ctrl><space>, does nothing come back? -
Code/completion insight Multi column select
Hi
Is it possible to select multiple columns via code insight pop up window.
For example if I have the following query
select a.
from table a
If I type a. completion insight will show me the columns for the table. I would like select more than one column at one time (like in TOAD)
Thanks in advanceNo, but you can:
* request it at the SQL Developer Exchange
* use the popup describe of the table (selecting the table name in the worksheet and pressing shift-F4)
* drag a table from the navigator treeview to the worksheet to generate a SELECT statement with all columns
Have fun,
K. -
Hallo,
in the SQL Worksheet the insight copletion window shows 50 lines (column names of a table). Is it possible to increase the number of lines?Completion insight works the following way:
It fetches the first 50 items of each type (it was 20 in the release 1.5). If there are more items, then there is the "..." item at the bottom of the list. Selecting it would reset the item limit to 1000, but this action is one time only. (When writing this I've just realized that there is a subtle bug: the query with limit 1000 would definitely be slower so I should raise the bailout time limit.)
More reasonable alternative to expanding the list with the "..." selection is typing the next character. Then, please note, that the list is not narrowed down in traditional sense. Say you have entered
select * from all_<ctrl-space>
the list of "all_" viewes exceeds threshold of 50 items, so when you type
select * from all_t<ctrl-space>
then the previous list is completely discarded and dictionary query is reissued with narrowed down pattern "all_t%"; otherwise there would be missing items!
Maybe you are looking for
-
Error when processing your request
Error when processing your request What has happened? The URL http://vinay:8000/sap/bc/webdynpro/sap/zfirst_web was not called due to an error. Note The following error text was processed in the system NSP : Die URL enthält keine vollständige D
-
Overheatin​g question
Hi guys, i just bought a HP Pavilion dv6-7015ca Entertainment Notebook PC with a Nvdia 630M and i7-3610QM processors, i was just wondering what the maximum temperature that the laptop can sustain? This question was solved. View Solution.
-
Spry UI 1.7 slideshow images cascade down page in design view
When I put in the Spry slideshow all the images go down the page in bullets. It works fine in the browsers, so it is no problem. But... it is SO annoying because I am trying to finish off the page and do some stuff under this slideshow but i can se
-
How can I get an image to open from Lr 4.4 and edit in CS4 with the Lr edits intact?
I get a warning message in Lr saying I need to update my camera raw to 7.4 and have done so. No change though.
-
List of persons selected with PNP
Hi all, Is it possible to get the list of selected persons using the pnp LDB. Thus before get pernr statement i want know the list of all selected persons. Thanks in advance,