Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Terminal error when clicking run in SQLcl or Run Script on a script

Gavin PlucknettJan 22 2025 — edited Jan 22 2025

Oracle SQL Developer Extension for VSCode version - 24.4.1

Certain scripts no longer run when using the run in SQLcl or Run on Script buttons or shortcut keys in vscode and produce the error.

After experimenting I can run short scripts, if you save the below as test.sql and then run in SQLcl this will work.

spoo hello 
set echo on verify on 

col text NEW_VALUE text noprint 

SELECT 'Hello World' text 
from dual; 

PROMPT &&text

If I run my script which is around 750 lines of code I get the above error.

If I run the test.sql script and then run my script in the open terminal it executes fine so doesn't appear to be an issue with my script. Is there a limit on the command string that VS code can use or something?

UPDATE - After more testing, it appears that just under 700 lines is the limit. I reduced my script to 694 lines (31305 characters) and that ran successfully. I added another insert statement which took it to 700 lines (31546 characters) and this produced the error message.

Comments
Post Details
Added on Jan 22 2025
0 comments
210 views