Daniel Hahler
ba0b44b65d
echo_highlight: cast msg to str
...
This helps to avoid errors with incomplete traceback/exception details
when using it with e.g. `echo_highlight(dir(jedi))`.
2016-08-03 11:19:11 +02:00
Daniel Hahler
369284a6bc
README: enhance Installation section
2016-08-03 11:18:41 +02:00
Daniel Hahler
3882c5dd32
Improve error message when the jedi module fails to load
...
Fixes https://github.com/davidhalter/jedi-vim/issues/560 .
2016-08-03 11:08:30 +02:00
Dave Halter
c94a143bfb
VIM apparently cannot deal with zero bytes in strings. Fixes #551
2016-07-30 15:59:15 +02:00
Tommy Allen
b7e42e6ad5
Fix preview autocmd being cleared for all buffers ( #597 )
...
Fixes https://github.com/davidhalter/jedi-vim/pull/582#issuecomment-235986169 .
2016-07-28 23:02:21 +02:00
Dave Halter
2eabe57616
Make the equals available in the completion list, fixes #350 .
2016-07-21 23:30:36 +02:00
Dave Halter
d9f92d5b24
Move the vim import to top.
2016-07-21 23:26:04 +02:00
Dave Halter
6b7dfe1c1a
Merge pull request #577 from blueyed/more-robust-initialize.py
...
Make initialize.py more robust
2016-06-16 21:18:44 +02:00
Tommy Allen
70360437cd
Prevent duplication of InsertLeave autocmds in buffers ( #582 )
2016-06-12 00:35:09 +02:00
Daniel Hahler
19ad3063d9
Make initialize.py more robust
...
Ref: https://github.com/davidhalter/jedi-vim/issues/574
2016-05-28 20:46:02 +02:00
Asher256
8334e505b3
Bug fix: E492: Not an editor command: jedi_vim.clear_call_signatures() ( #576 )
...
I got this error after I updated my local copy of jedi-vim to
the commit 'e8b88f0161ef2adabda97d4e083585a3becdcb53':
```
Error detected while processing function jedi#clear_call_signatures:
line 6:
E492: Not an editor command: jedi_vim.clear_call_signatures()
``
`
The error below happened because 'PythonJedi' was missing before
jedi_vim.clear_call_signatures() in autoload/jedi.vim.
I put back 'PythonJedi' and it solved the issue.
2016-05-27 20:57:22 +02:00
Dave Halter
e8b88f0161
When jedi-vim cannot load jedi, show_call_signatures should not throw errors all the time. One error at the beginning is enough.
2016-05-27 13:22:37 +02:00
Dave Halter
a0c3269420
Merge pull request #557 from blueyed/vim_eval-int
...
Cast integers with vim_eval
2016-04-08 14:49:24 +02:00
Daniel Hahler
75e9141111
Cast integers with vim_eval
...
This makes it clearer/more strict altogether and is future-proof in the
sense that `vim.eval` might return integers for numbers in Vim after all.
See #553 for a very noisy discussion of what led to this.
Although it might be a regression in neovim-python after all it is good
to be on the safe side.
The bonus here is that we get "notified" in case of a option that is
expected to be an integer is a string instead.
Fixes https://github.com/davidhalter/jedi-vim/issues/553 .
2016-04-08 14:37:44 +02:00
Dave Halter
5ccdd11282
Merge pull request #556 from blueyed/clarify-_catch_exception
...
Clarify arguments with _catch_exception
2016-04-07 22:30:42 +02:00
Dave Halter
5bcb17a8ad
Merge pull request #554 from blueyed/improve-error-with-use_splits_not_buffers
...
minor: improve error msg with invalid use_splits_not_buffers setting
2016-04-07 22:10:08 +02:00
Daniel Hahler
0f7b743b4e
Clarify arguments with _catch_exception
...
The whole int/string conversion with `vim.eval` is confusing enough, use
a boolean for `is_eval`.
2016-04-06 17:22:47 +02:00
Daniel Hahler
48ad42de86
minor: improve error msg with invalid use_splits_not_buffers setting
...
Ref: https://github.com/davidhalter/jedi-vim/issues/553
2016-04-06 14:01:03 +02:00
Daniel Hahler
0d613b5cf9
Merge pull request #549 from mozbugbox/rename-fix
...
Fix renaming: cursor pos and undo tracking (#545 , #502 )
2016-03-21 22:19:59 +01:00
mozbugbox
794af5b90a
Track undo properly in rename(). Fix #502
...
Use vim changenr() call to track change and undo. This is more
robust than bindly call 'normal! u'
2016-03-21 09:53:57 +08:00
mozbugbox
221d7dbee4
Fix: rename() kept wrong cursor position #545
...
The cursor would change to something else once in the insert mode. If
the new name was longer than the old one, the Parser couldn't get
the stmt at the wrong cursor position, thus rename failed.
Now save the cursor position before entering the insert mode. Then pass
the saved position to the 2nd call to the rename().
2016-03-20 23:05:15 +08:00
Dave Halter
e7193b5e5f
Merge pull request #547 from blueyed/improve-error-on-init
...
Improve error messages during init
2016-03-20 04:34:08 +01:00
Dave Halter
9ae6da6467
Merge pull request #548 from blueyed/use-m-with-search
...
jedi#smart_auto_mappings: use `\m` with `search()` for `magic`
2016-03-20 04:33:53 +01:00
Daniel Hahler
f08abefa31
jedi#smart_auto_mappings: use \m with search() for magic
...
With `nomagic` being set (not recommended, but might happen), the
pattern would not work.
This patch sets `\m` explicitly.
2016-03-18 23:16:07 +01:00
Daniel Hahler
cdfb7a5b4f
initialize.py: catch and handle any exception when import jedi_vim
...
This adds the traceback to it, which then will be displayed with
`v:exception` in the Vim part.
2016-03-18 23:08:49 +01:00
Daniel Hahler
de793216f5
minor: move code out of 'try' block in jedi#setup_py_version
2016-03-18 23:07:43 +01:00
Daniel Hahler
6b8d900b05
Use echoerr in jedi#init_python
...
This will abort the script, instead of finishing there only.
2016-03-18 23:06:43 +01:00
Daniel Hahler
df39189578
Fix no_jedi_warning: display actual error
...
Never really worked as intended in 676b378 .
Ref: https://github.com/davidhalter/jedi-vim/issues/460
2016-03-18 23:05:07 +01:00
Dave Halter
625c568b12
Merge pull request #527 from prologic/master
...
Fixes Python 2.6 compatibility issues with `str.format()`
2016-01-14 14:14:44 +01:00
James Mills
8215b220f9
Fixed Python 2.6 str.format() compatibility
2016-01-13 14:00:41 -08:00
Dave Halter
dc23f0b859
Merge pull request #501 from kashiro/fix/auto-selected-last-opt
...
check "noselect" and "noinsert" before <C-p>
0.8.0
2015-11-19 13:15:06 +01:00
Tomoyuki Kashiro
217e56d9bd
check "noselect" and "noinsert" before <C-p>
...
to prevent from selecting last option check "noselect" and "noinsert" before <C-p>
@see https://github.com/Shougo/neocomplete.vim/blob/master/doc/neocomplete.txt#L1817-L1826
2015-11-19 18:49:15 +09:00
Jacob Niehus
0c2831d9a6
Fix parameters missing from command line call signatures
...
Parameters (or ellipsis) should show up in call signatures even when the
index of the current argument is unknown.
Closes https://github.com/davidhalter/jedi-vim/pull/499 .
2015-11-12 02:03:46 +01:00
Dave Halter
b3e91e8de2
Merge pull request #497 from wilywampa/buffer_autocmds
...
Fix signatures only working in a single buffer
2015-11-07 21:15:14 +01:00
Jacob Niehus
13a4a0c0c4
Fix signatures only working in a single buffer
2015-11-07 11:43:56 -07:00
Jacob Niehus
2cf1d42fff
Fix handling of temporary tags file on Windows
...
Fixes https://github.com/davidhalter/jedi-vim/issues/482 .
Closes https://github.com/davidhalter/jedi-vim/pull/489 .
2015-11-02 01:04:16 +01:00
Bagrat Aznauryan
84f5cd92c7
Use escape_file_path in new_buffer
...
Fix: If a definition file path contains a space, the "open in split"
fails with an error.
Fixes https://github.com/davidhalter/jedi-vim/issues/491 .
Closes https://github.com/davidhalter/jedi-vim/issues/492 .
2015-11-02 01:02:22 +01:00
Daniel Hahler
9af06424fb
doc/jedi-vim.txt: retab with expandtab
...
Fixes https://github.com/davidhalter/jedi-vim/issues/437 .
Closes https://github.com/davidhalter/jedi-vim/pull/487 .
2015-10-26 23:53:55 +01:00
Jacob Niehus
4b32847110
Fix issues with wildignore and tag stack
...
Closes https://github.com/davidhalter/jedi-vim/pull/483 .
Fixes https://github.com/davidhalter/jedi-vim/issues/482 .
2015-10-23 00:31:28 +02:00
Daniel Hahler
a5be01fb0b
Merge pull request #481 from blueyed/improve-taglist-hack
...
Improve use_tag_stack-hack: use context managers, short 'tags'
2015-10-19 23:47:00 +02:00
Daniel Hahler
267df8b3da
Improve use_tag_stack-hack: use context managers, short 'tags'
...
Use a NamedTemporaryFile context manager, which removes the temporary
file again, and use it as the only entry for the 'tags' setting to
improve lookup performance.
2015-10-19 18:29:54 +02:00
Daniel Hahler
005cb5225f
Use string.ascii_lowercase instead of string.lowercase
...
Fixes https://github.com/davidhalter/jedi-vim/issues/478 .
Closes https://github.com/davidhalter/jedi-vim/pull/480 .
2015-10-18 22:14:31 +02:00
Dave Halter
95d8eb1b08
Merge pull request #479 from blueyed/fix-cached-signature-call
...
Handle parenthesis with show_call_signatures' cache
2015-10-18 21:45:18 +02:00
Daniel Hahler
431a0b11e5
Handle parenthesis with show_call_signatures' cache
...
After `o`, call signatures should show up after `abs(`.
2015-10-18 21:22:11 +02:00
Daniel Hahler
9a258c74f5
Merge branch 'wilywampa-callsig_columns'
...
Truncate command line call signature as described in #474 when the full
signature is too long to display.
Closes https://github.com/davidhalter/jedi-vim/issues/474 .
Closes https://github.com/davidhalter/jedi-vim/pull/475 .
2015-10-18 21:16:48 +02:00
Daniel Hahler
5c868b9a1f
Use utf8 ellipsis char instead of 3 dots
2015-10-18 21:16:37 +02:00
Jacob Niehus
62c423bf29
Add test case for truncation of cmdline signatures
2015-10-18 21:16:37 +02:00
Jacob Niehus
7abc3ad8d4
Truncate long command line call signatures
2015-10-18 21:16:37 +02:00
Jacob Niehus
9633044332
Allow fewer columns in call signatures if 'ruler' is set
2015-10-18 21:16:37 +02:00
Dave Halter
067ab1ea4b
Merge pull request #477 from blueyed/fix-cached-signature-call
...
Invalidate `show_call_signatures_delay` on InsertEnter
2015-10-18 21:01:37 +02:00