<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - PL/SQL Code Intelligence - Comments</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence</link>
 <description>Comments for &quot;PL/SQL Code Intelligence&quot;</description>
 <language>en</language>
<item>
 <title>The folding is another bug</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5356</link>
 <description>&lt;p&gt;I looked at the lexer, and it looks like it&#039;s making the right noises about&lt;br /&gt;
supporting folding.  Then I had a look at the language service file&lt;br /&gt;
koSQLLanguage.py, and saw this line:&lt;/p&gt;
&lt;p&gt;self._lexer.supportsFolding = 0&lt;/p&gt;
&lt;p&gt;I changed the &#039;0&#039; to a &#039;1&#039;, restarted Komodo, and it&#039;s folding fine.&lt;/p&gt;
&lt;p&gt;Instabug at &lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=76875&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=76875&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=76875&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Fri, 09 May 2008 10:34:53 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5356 at http://community.activestate.com</guid>
</item>
<item>
 <title>Code completion</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5352</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
it would be very nice to have, although not a big issue. What would be much better is code folding. I started looking at other .py to see how it can be done. Surely you&#039;re more knowledgeable than myself to do it. But if I can help in any way, just drop me a note.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
</description>
 <pubDate>Fri, 09 May 2008 01:02:32 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5352 at http://community.activestate.com</guid>
</item>
<item>
 <title>Just to wrap up this thread...</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5348</link>
 <description>&lt;p&gt;GSalem tested the new koSQLLanguage.py module, and reports that it&#039;s working fine.&lt;br /&gt;
I have to admit that we in the Komodo group don&#039;t have much experience with&lt;br /&gt;
Oracle.  MySQL, Postgres, SQLite, and even ODBC/Access, yes.  We figured that&lt;br /&gt;
the PL-SQL module was working fine in the field, since no one had complained.&lt;br /&gt;
After a quick look, I saw it was flawed, and not just in the way it&#039;s missing&lt;br /&gt;
a few hundred keywords.&lt;/p&gt;
&lt;p&gt;We&#039;ll be shipping the fixed version in the next alpha of Komodo 4.4, both IDE&lt;br /&gt;
and Edit.&lt;/p&gt;
&lt;p&gt;As for the question about code-completion that started this discussion, with&lt;br /&gt;
over 1100 keywords in the language, I can see simple three-character completion&lt;br /&gt;
like we have for many other languages might deliver enough.&lt;/p&gt;
&lt;p&gt;Hmmm, maybe raising that subject doesn&#039;t close this thread.  Please reply on&lt;br /&gt;
other kinds of completion you&#039;d like to see.&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 14:21:09 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5348 at http://community.activestate.com</guid>
</item>
<item>
 <title>no</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5347</link>
 <description>&lt;p&gt;The question is that there is no need to generate the pyo. And you already answered it.&lt;br /&gt;
Thanks a lot&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 13:18:33 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5347 at http://community.activestate.com</guid>
</item>
<item>
 <title>What&#039;s the question?</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5346</link>
 <description>&lt;p&gt;It looks like your question was cut off in the title.&lt;/p&gt;
&lt;p&gt;- Eric&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 13:02:51 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5346 at http://community.activestate.com</guid>
</item>
<item>
 <title>IT seems there is no need to</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5345</link>
 <description>&lt;p&gt;Am I right?&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 12:58:00 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5345 at http://community.activestate.com</guid>
</item>
<item>
 <title>Let Komodo create the .pyo files</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5344</link>
 <description>&lt;p&gt;There are problems with the existing koSQLLanguage.py file:&lt;/p&gt;
&lt;p&gt;There is no extension for PL/SQL files.  I&#039;ve added &quot;*.plsql&quot;&lt;/p&gt;
&lt;p&gt;There is no color scheme at all for PL/SQL files.  I&#039;ve&lt;br /&gt;
refactored the class so *.sql and *.plsql files share the&lt;br /&gt;
same scheme.&lt;/p&gt;
&lt;p&gt;The synonym for &quot;REM&quot; comments wasn&#039;t handled, so I added that,&lt;br /&gt;
using Scintilla&#039;s &quot;InListAbbrev&quot; functionality, so any prefix&lt;br /&gt;
of &quot;remark&quot; beginning with &quot;rem&quot; will match, case-insensitively.&lt;/p&gt;
&lt;p&gt;gsalem, I&#039;ll email you the new koSQLLanguage.py I&#039;m about to check in,&lt;br /&gt;
could you tell me if it works?&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 12:51:25 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5344 at http://community.activestate.com</guid>
</item>
<item>
 <title>I modiofied the koSQLanguage.py</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5343</link>
 <description>&lt;p&gt;but how to make it into a .pyo? if I try python -O it gives an error about not finding module xpcom.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 12:44:51 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5343 at http://community.activestate.com</guid>
</item>
<item>
 <title>thanks a lot</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5333</link>
 <description>&lt;p&gt;It would be very nice of you&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 10:16:22 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5333 at http://community.activestate.com</guid>
</item>
<item>
 <title>I&#039;ll add your keywords to the language service for v 4.4</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5330</link>
 <description>&lt;p&gt;Hope you don&#039;t feel you spent too much time on UDL.&lt;/p&gt;
&lt;p&gt;I&#039;ll still look at the file to see if there&#039;s a bug&lt;br /&gt;
somewhere.&lt;/p&gt;
&lt;p&gt;- Eric&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 09:36:49 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5330 at http://community.activestate.com</guid>
</item>
<item>
 <title>I&#039;ll look into the standard lexer as you say</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5327</link>
 <description>&lt;p&gt;I&#039;ll try to see if I can &quot;enhance&quot; it with more reserved words.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
 <pubDate>Thu, 08 May 2008 00:33:36 -0700</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">comment 5327 at http://community.activestate.com</guid>
</item>
<item>
 <title>Could you elaborate on your question?</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5321</link>
 <description>&lt;p&gt;Which PL-SQL lexer do you mean?  The one that ships with Komodo, or the one&lt;br /&gt;
that gsalem wrote?&lt;/p&gt;
&lt;p&gt;I&#039;m not an expert on SQL, but my understanding is that there&#039;s a core&lt;br /&gt;
set of keywords, and then each vendor has extended the language in&lt;br /&gt;
their own way.  Could you list any keywords that are missing?&lt;/p&gt;
&lt;p&gt;It&#039;s easy for us to ship a proper set of keywords.  I&#039;ve created&lt;br /&gt;
a public bug at &lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=76743&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=76743&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=76743&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another advantage of going with the existing lexer: it handles case-insensitivity&lt;br /&gt;
of keywords, but UDL only does case-sensitive keywords.&lt;/p&gt;
</description>
 <pubDate>Wed, 07 May 2008 13:00:29 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5321 at http://community.activestate.com</guid>
</item>
<item>
 <title>Is there a good reason why</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5318</link>
 <description>&lt;p&gt;Is there a good reason why the PL-SQL lexer behaved as a test lexer for my SQL script? I thought a PL-SQL lexer should recognize the standard SQL keywords.&lt;/p&gt;
</description>
 <pubDate>Wed, 07 May 2008 11:59:17 -0700</pubDate>
 <dc:creator>davitof</dc:creator>
 <guid isPermaLink="false">comment 5318 at http://community.activestate.com</guid>
</item>
<item>
 <title>Thanks</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5317</link>
 <description>&lt;p&gt;Thanks&lt;/p&gt;
</description>
 <pubDate>Wed, 07 May 2008 11:55:43 -0700</pubDate>
 <dc:creator>davitof</dc:creator>
 <guid isPermaLink="false">comment 5317 at http://community.activestate.com</guid>
</item>
<item>
 <title>Got the UDL file, I&#039;ll have a look at it</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comment-5316</link>
 <description>&lt;p&gt;The &quot;PL/SQL&quot; support that ships with Komodo is a combination of&lt;br /&gt;
the LexSQL.cxx lexer that comes with Scintilla, and the&lt;br /&gt;
koSQLLanguage.py language service that we wrote (and you can find&lt;br /&gt;
in /lib/mozilla/components/koSQLLanguage.py).&lt;/p&gt;
&lt;p&gt;I&#039;m only looking at the source, but&lt;br /&gt;
it looks like it does folding on comments, ( ... ), and the BEGIN/&lt;br /&gt;
LOOP/IF ... END constructs.  If the main difference is that you&lt;br /&gt;
want it to handle the extra keywords, you can add them to&lt;br /&gt;
the list of keywords in class koSQLLanguage.py::koPLSQLLanguage&lt;br /&gt;
-- watch out, this file defines classes for both koSQLLanguage&lt;br /&gt;
and koPLSQLLanguage.&lt;/p&gt;
&lt;p&gt;I will have a look at the UDL file, as I&#039;m curious whether the&lt;br /&gt;
problem is in the UDL itself or the engine, but it seems to me&lt;br /&gt;
that we should add this list of keywords to the existing&lt;br /&gt;
language service.&lt;/p&gt;
&lt;p&gt;Is there anything else you&#039;re looking for in PL/SQL editing?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Eric&lt;/p&gt;
</description>
 <pubDate>Wed, 07 May 2008 10:49:28 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 5316 at http://community.activestate.com</guid>
</item>
<item>
 <title>PL/SQL Code Intelligence</title>
 <link>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence</link>
 <description>&lt;p&gt;Hi all,&lt;br /&gt;
Is there any way to get the udl files used to build SQL and PL/SQL code intel? I use PL/SQL a lot and would like to enhance the CI&#039;s support for it (and for sure give back to the community)?&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/pl-sql-coide-intelligence#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-discussion-0">Komodo discussion</category>
 <category domain="http://community.activestate.com/os/debian-ubuntu">Debian / Ubuntu</category>
 <pubDate>Mon, 14 Jan 2008 15:05:52 -0800</pubDate>
 <dc:creator>gsalem</dc:creator>
 <guid isPermaLink="false">1822 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
