-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlplus does not exit after running build #5
Comments
Thank you for sharing this information. I'll include it in the readme... |
fix in version 0.0.9 |
Another approach can be to add an "echo" command with the "sqlplus" command as a command argument as shown: "tasks":[
//Run sqlplus in args
{
"taskName":"sqlplus",
"command":"echo",
"args":["exit","|","echo","show","errors","|","sqlplus","username/password@sid","@\"${file}\""],
"isShellCommand": true,
"showOutput": "always"
}
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The readme suggests making a task to run sqlplus to build/compile code.
Unless the script/file contains an "exit" statement, sqlplus will hang in the background and never complete, as described here: http://serverfault.com/questions/87035/run-oracle-sql-script-and-exit-from-sqlplus-exe-via-command-prompt
A solution that works better is to create a bat file, such as
run_sqlplus.bat
and place the following command inside it:echo exit | echo show errors | sqlplus %1 %2
The build task definition then becomes:
This will run sqlplus, output any errors, and then exit cleanly back to VS Code.
It would be great if you could update the readme with this workaround/improvement.
The text was updated successfully, but these errors were encountered: