Home Download Buy Blog Forum Support

Oracle PL/SQL

Re: Oracle PL/SQL

Postby bizoo on Thu Jan 30, 2014 9:55 am

jbjornson wrote:
makebei wrote:Does anyone have this running with SublimeText 3? I used to have it running with SublimeText 2, but I can't get it to work with SublimeText 3. In the console I get the error message:

Unable to find target command: oracle_exec


I got this code from bizoo a while ago but he hasn't updated the package with it (maybe he's still using ST2). This gist linked to below also has some fixes for handling spaces in paths and preventing an error from being shown when executing a file that doesn't have any DML in it.

https://gist.github.com/jbjornson/8704419

I'd happy to create a patch to bizoo with a version that works on both ST2 and ST3 but I'm not sure how to handle the different import between the two versions:

On ST2:
Code: Select all
execmod = __import__("exec")


On ST3:
Code: Select all
from Default import exec as execmod


Anyone know how to handle both those import cases?

As exec is a statement in Python 2 (so ST2), I think the only way to manage it is with a conditional import (if) based on the sublime.version().
I asked jps to rename the exec.py file long time ago, but he refused.
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Oracle PL/SQL

Postby bizoo on Thu Jan 30, 2014 10:12 am

I am no longer interested in maintaining ST packages, if someone want to "carry the torch"...
I've merged the Pull requests but without testing anything.

In addition, it looks like some forks are better than the original, like:
https://github.com/mezdm/OracleSQL

Someone has already published a Oracle PL/SQL package:
https://sublime.wbond.net/packages/Oracle%20PL%20SQL
But it looks like a simple copy of tmBundle that only support syntax.
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Previous

Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests