Commit Graph

1490 Commits

Author SHA1 Message Date
Strahinja Val Markovic
9c443dabd8 Not matching catch against error message
That fails if a different locale is loaded because Vim localizes error messages.

Fixes #767
2014-01-11 11:55:40 -08:00
Strahinja Val Markovic
808d88bf55 Prevent error echos during completion, if possible
Related to #642.
2014-01-10 15:01:30 -08:00
Strahinja Val Markovic
46cf9734e8 Documenting issues with sign unplacing 2014-01-10 14:44:15 -08:00
Strahinja Val Markovic
9d06a3e54c Revert "Only removing our signs in buffer, no all"
This reverts commit 182848050e.

The reason we are reverting this is because removing signs in a loop causes
flicker. The only non-flicker approach is to remove all signs in a buffer with
"sign unplace buffer=<buffer-num>".

So no compatibility with other plugins for us.
2014-01-10 14:39:52 -08:00
Strahinja Val Markovic
182848050e Only removing our signs in buffer, no all
We used to remove all the signs in a buffer. Now we just remove the ones we set.
This prevents conflicts with other Vim plugins.
2014-01-10 12:54:20 -08:00
Strahinja Val Markovic
8866f798b6 Only clear the diag message echo once
Trying to clear it all the time removes other, non-YCM messages as well.

Fixes #766.
2014-01-10 12:18:24 -08:00
Strahinja Val Markovic
6e6e6043c3 Handling diags pointing to content not in file
Also handling no location_extent for diags.
2014-01-09 15:48:48 -08:00
Strahinja Val Markovic
365f67f82c Docs now mention line highlight depends on signs 2014-01-09 14:11:15 -08:00
Strahinja Val Markovic
dc01ad8240 Ensuring there are no "press enter" prompts
This is for the diagnostic echo.
2014-01-09 13:49:06 -08:00
Strahinja Val Markovic
f8f20b8eea Typo fix 2014-01-09 13:21:11 -08:00
Strahinja Val Markovic
5216fee8a1 Typo fix 2014-01-09 10:59:44 -08:00
Strahinja Val Markovic
0caf28de8f Updating vimdoc from README 2014-01-09 09:45:28 -08:00
Strahinja Val Markovic
63cc559f1a Minor doc rewording 2014-01-08 20:04:43 -08:00
Strahinja Val Markovic
34f654e3a4 More doc updates for diagnostics UI 2014-01-08 20:03:42 -08:00
Strahinja Val Markovic
5efd920815 Renaming and documenting the new options. 2014-01-08 19:43:21 -08:00
Strahinja Val Markovic
8090373afd Now can populate the loclist like Syntastic 2014-01-08 19:09:40 -08:00
Strahinja Val Markovic
cb359c0b6a New options for controlling the diag ui 2014-01-08 18:43:17 -08:00
Strahinja Val Markovic
4a9b7cb63e More doc updates since Syntastic support removed
Not done yet, still a way to go.
2014-01-06 23:05:01 -08:00
Strahinja Val Markovic
5f9a5bdcfb Typo fix 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
eca30e356d Minor README rewording 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
c8fd002b66 Removing forgotten debug statement 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
05552efd19 Now highlighting the full identifier for diag
Instead of just underlining the first char of an identifier, we now underline.
the full identifier.
2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
6fdddc861b Showing clang diag ranges with red squiggles 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
209d22cfdb DiagnosticInterface now uses server diag objects 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
a9ea9d648d Minor refactoring 2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
3ed8d9883c Diagnostic ranges now exposed to server clients
Still haven't used them in the Vim client though, but will soon.
2014-01-06 15:24:06 -08:00
Strahinja Val Markovic
e5abbdb540 Increasing API version to 8
Needed because of recent changes to Diagnostic struct etc.
2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
9656fac2f4 Diagnostic struct now holds source ranges
Also, line/column/file info is now in Location. The server API is the same
currently, but will change to reflect all of this soon.
2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
65e6b55268 Now showing red squiggle under diagnostic location 2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
a3918788c0 FAQ item about dropped Syntastic support 2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
c9e9a640ac Echoing diag text on when cursor on diag line 2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
6c01881e1a Replaced Syntastic support with YCM-native code
Currently, the only supported Syntastic features are the error signs in the
gutter. Other features will be added in the future.
2014-01-06 15:24:05 -08:00
Strahinja Val Markovic
e8d1a4cef8 Working around a Vim bug that causes flickering.
If the user had a hidden buffer and a recent version of Vim, the screen would
flicker every time the user typed. This was caused by a Vim bug.

On every key press, we end up calling GetUnsavedAndCurrentBufferData(), which
calls GetBufferOption( buffer_object, 'ft' ). If the buffer_object represents a
hidden buffer, Vim would flicker.

This would happen because we'd call "buffer_object.options[ 'ft' ]" in recent
versions of Vim, and that line of code causes Vim to flicker. I don't know why.
We're extracting the 'ft' value without going through buffer_object.options, and
that works just fine.

Fixes #669.
2014-01-06 15:00:51 -08:00
Strahinja Val Markovic
96b28b93a1 Optimizing overlap correction for common case
Most of the time there's nothing after the cursor.
2014-01-05 12:16:53 -08:00
Strahinja Val Markovic
a18807d31e Candidate overlap with buffer text improved
Now, "foobar.h" will be changed to insert "foo" if the text after the cursor is
"bar.h". This already worked for "foobar" and "bar", but the overlap search
would stop before a non-word character. This has now been resolved.
2014-01-05 12:07:15 -08:00
Strahinja Val Markovic
df161cff52 Adding more include paths to YCM's ycm_extra_conf 2014-01-04 20:45:52 -08:00
Strahinja Val Markovic
91368c09ea Handling vim.error from omnifunc
If the omnifunc encounters a syntax error, we need to handle this without
showing a traceback to the user.
2014-01-04 16:17:44 -08:00
Strahinja Val Markovic
e424d75c42 Preventing traceback for detailed diagnostic
Previously we'd show a Python traceback if the user asked for a detailed
diagnostic in a file that wasn't supported by Clang (something written in Python
perhaps). Now we show an nice, far less scary message informing the user of
this.

Fixes #748.
2014-01-02 14:24:17 -08:00
Strahinja Val Markovic
afb70bf65e Revert "Not using Syntastic lazy redraw anymore"
This reverts commit 4d8fea4b2d.

Since the commit we are reverting didn't resolve #669, we are reverting it to
fix #593 (again).
2013-12-27 10:54:36 -08:00
Strahinja Val Markovic
b3f70a6c95 Forwarding args for SafePopen to Popen directly 2013-12-24 18:53:23 -08:00
Strahinja Val Markovic
7fac081bea Merge branch 'fix-omnisharp-launch' of https://github.com/nop00/YouCompleteMe into nop00-fix-omnisharp-launch 2013-12-24 18:47:45 -08:00
Val Markovic
22b3b8428c Merge pull request #745 from dzhioev/master
Changed HEAD of third_party/frozendict (Create gitignore file).
2013-12-24 18:03:49 -08:00
Pavel Sergeev
e9b5dd1361 Changed HEAD of third_party/frozendict (Create gitignore file).
This commit gets rid of annoying "modified: third_party/frozendict
(untracked content)" git status when *.pyc file was created inside
third_party/frozendict.
2013-12-25 04:52:30 +04:00
davits
619e1c0b83 File&Dir issue fix 2013-12-24 12:25:07 +04:00
Davit Samvelyan
bd6f7d8dfb Merge pull request #1 from Valloric/master
Syncing
2013-12-23 22:53:31 -08:00
Strahinja Val Markovic
b1d71bbb91 Better handling of unknown extra conf files
Previously, we'd implicitly turn off future notices about unknown extra conf
files if we already raised one exception about it. This breaks when the user
ends up not receiving the "unknown extra conf, load?" message.

Now we only turn off the notice as a result of the user saying "don't load this"
so that if the first request fails to reach them, they'll get a second (and
third etc) request about it.

Fixes #615
2013-12-21 11:19:39 -08:00
Strahinja Val Markovic
1edf22357f Try to cleanup files only if they stil exist
Fixes #738
2013-12-20 13:01:48 -08:00
Val Markovic
f286b43404 Merge pull request #736 from dzhioev/master
Changed HEAD of third_party/argparse (Create gitignore file).
2013-12-18 13:28:34 -08:00
Pavel Sergeev
62bf774e14 Changed HEAD of third_party/argparse (Create gitignore file). 2013-12-18 22:23:47 +04:00
Strahinja Val Markovic
737109e7aa Check for libc++ before using it.
Fixes #731.
2013-12-17 18:35:03 -08:00