Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 238 Big Data Appliance
- 1.9K Data Science
- 450.2K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 437 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Intellisense not working for current package, and not completing schema names

It seems that intellisense is not working for current package, for example calling a function within the same package works if you add the full package name before the funcion name, but if you ommit it, it doesn't shows you any recomendation. The same for local variables.
Also it would be very nice adding support for autocompleting schema names accessible by the current user.
Comments
-
Did you just compile the package? If so, you will need to refresh intellisense:
Press the F1 Key and type "Oracle: Rebuild Intellisense Data"
If you still can't get it working, try this:
1) execute:
CREATE OR REPLACE PACKAGE "HR".cshaydemo IS
PROCEDURE test(a VARCHAR2);
END cshaydemo;
/
CREATE OR REPLACE PACKAGE BODY "HR".cshaydemo IS
PROCEDURE test(a VARCHAR2) IS
BEGIN
null;
END;
END cshaydemo;
/
2) Then, Press the F1 Key and type "Oracle: Rebuild Intellisense Data"
3) Then type:
begin
cshaydemo.
After typing the dot "." you should see the package name "test" pop up.
If you do not, let me know. If you do, see if you can come up with a testcase for me to try for your situation.
-
I extended your example adding a second procedure to the package and trying to call it within the same package, rebuilding intellisense and is not working for me also:
But if I put the package name where I'm in, it seems to work but without autocompleting parameters:
CREATE OR REPLACE PACKAGE BODY cshaydemo IS
PROCEDURE test(a VARCHAR2) IS
BEGIN
null;
cshaydemo.test
END;
PROCEDURE test2(a VARCHAR2, b number) IS
BEGIN
null;
END;
END cshaydemo;
-
That's right. You need to enter the package name and then a period to kick off the intellisense of a package. Not ideal, I know. Hopefully we will get better there.
Once you do that, select "test" and press tab for a template with all the parameters, or type a left parenthesis to be prompted one by one, eg:
cshaydemo. [select "test"] [press tab]
or
cshaydemo.test(
-
Thanks! It would be nice having this as the common way to do this is without specifying the name of the current package, and you usuarlly call to functions within the same package quite often.