Skip to content

Instantly share code, notes, and snippets.

@micbou
micbou / .ycm_extra_conf.py
Created April 13, 2016 08:32
Header files flags
import json
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
]
@micbou
micbou / centos6-x86_64
Last active May 1, 2016 20:55
Dependencies of pre-built libclang 3.8.0 binary on Linux 64-bit.
libdl.so.2
librt.so.1
libpthread.so.0
libm.so.6
libstdc++.so.6
libgcc_s.so.1
libc.so.6
ld-linux-x86-64.so.2
@micbou
micbou / update.py
Last active August 25, 2016 22:04
Update ycm_core library when needed
#!/usr/bin/env python
import os.path as p
import subprocess
import sys
DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) )
DIR_OF_YCMD = p.join( DIR_OF_THIS_SCRIPT, 'third_party', 'ycmd' )
sys.path.insert( 1, DIR_OF_YCMD )
@micbou
micbou / token-two-fields.md
Last active August 28, 2016 15:26
Set of values taken by the kind and type fields
kind type
Punctuation None
Keyword None
Literal Integer
Literal Floating
Literal Imaginary
Literal String
Literal Character
Literal Macro
@micbou
micbou / token-one-field.md
Last active August 28, 2016 15:26
Token with one field
kind
Punctuation
Keyword
Integer
Floating
Imaginary
String
Character
Macro
@micbou
micbou / clang-fatal-errors.md
Last active September 2, 2016 16:34
Clang fatal error messages
  • too many errors emitted, stopping now
  • module '%0' not found
  • could not build module '%0'
  • module '%0' is needed but has not been provided, and implicit use of module files is disabled
  • could not acquire lock file for module '%0': %1
  • timed out waiting to acquire lock file for module '%0'
  • cyclic dependency in module '%0': %1
  • cannot open file '%0': %1"
  • file '%0' modified since it was first processed
  • %0 byte order mark detected in '%1', but encoding is not supported
MSVC Number of warnings
Before After
@micbou
micbou / gist:d4c1c8213df28d90c076f46892de2c40
Created February 6, 2017 19:39
Failures in racerd tests with MSVC 32-bit
failures:
---- http::list_path_completions_std_library stdout ----
url: http://127.0.0.1:61597/list_completions
thread 'http::list_path_completions_std_library' panicked at 'called `Result::unwrap()` on an `Err` value: SyntaxError("EOF While parsing value", 1, 1)', C:\bot\slave\stable-dist-rustc-win-msvc-32\build\src\libcore\result.rs:837
stack backtrace:
0: 0x16ca8c3 - std::panicking::default_hook
at C:\bot\slave\stable-dist-rustc-win-msvc-32\build\src\libstd\panicking.rs:359
1: 0x16cd4fa - std::panicking::rust_panic_with_hook
at C:\bot\slave\stable-dist-rustc-win-msvc-32\build\src\libstd\panicking.rs:553
@micbou
micbou / gist:a7dcccac3d426a9a19727b0212a56b17
Last active February 6, 2017 22:15
Racerd tests with Rust 1.15.0
(gdb) next
Single stepping until exit from function main,
which has no line number information.
running 9 tests
test http::find_definition ... [New Thread 0x7ffff69ff700 (LWP 3375)]
[New Thread 0x7ffff67fe700 (LWP 3376)]
[New Thread 0x7ffff65fd700 (LWP 3377)]
POST http://127.0.0.1:0/find_definition -> 200 OK (0.460236 ms)
[New Thread 0x7ffff63fc700 (LWP 3378)]
MB
412.9^ #
| #::::::::::::::::::::::::::::::::::
| # :
| :# :
| @# :
| @# :
| @# :
| @# :
| @# :