Monday, February 17, 2014

Re: trouble using python code with sql code

On 17/02/14 14:01, A Loumiotis wrote:
> On Mon, Feb 17, 2014 at 2:27 PM, Tony Mechelynck
> <antoine.mechelynck@gmail.com> wrote:
>> On 17/02/14 12:45, A Loumiotis wrote:
>>>
>>> Hi,
>>>
>>> Omni sql completion does not seem to work with python filetypes. The
>>> example provided in section 4.6 of the helpfile ft_sql.txt works, ie
>>> omni sql completion works within a perl file. If I repeat this
>>> example editing a python file instead:
>>>
>>> :e test.py
>>> :set filetype=sql
>>> :set ft=python
>>>
>>> omni sql completion does not work within a python file. Is this a bug
>>> or am I doing something wrong?
>>>
>>> I use VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33)
>>> MS-Windows 32-bit GUI version with OLE support.
>>>
>>> Thanks,
>>> Antonis
>>>
>> Which patchlevel? As in the following (from my gvim):
>>
>> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 16 2014 01:35:02)
>> Included patches: 1-183
>> Compiled by antoine.mechelynck@gmail.com
>> Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
>> [...]
>>
>> If the "Included patches" line is missing in your :version, then it is
>> 7.4.0. In that case I'd recommend installing "Vim without Cream"
>> http://sourceforge.net/projects/cream/files/Vim/ which is currently at
>> 7.4.179 (or to compile Vim 7.4.183 yourself).
>>
>> Also, which versions of $VIMRUNTIME/ftplugin/sql.vim and
>> $VIMRUNTIME/ftplugin/python.vim ? I didn't check, but these versions, or at
>> least a "Last change" datestamp, ought to be written somewhere near the top
>> of the files.
>>
>>
>> Best regards,
>> Tony.
>> --
>> Not exactly as shown.
>>
>> --
>> --
>> You received this message from the "vim_use" maillist.
>> Do not top-post! Type your reply below the text you are replying to.
>> For more information, visit http://www.vim.org/maillist.php
>>
>> --- You received this message because you are subscribed to the Google
>> Groups "vim_use" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to vim_use+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> I updated Vim and installed Vim without cream as you suggested but it
> did not solve the problem. I use version version 11.0 of
> $VIMRUNTIME/ftplugin/sql.vim with last change at 2013 May 13 and I use
> $VIMRUNTIME/ftplugin/sql.vim with last change stamp 2014 Feb 09.
>
> Any ideas?
> Antonis
>
Alas, not from me. Anyone else?



Best regards,
Tony.
--
The urge to gamble is so universal and its practice so pleasurable
that I assume it must be evil.
-- Heywood Broun

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: