Skip to content

Instantly share code, notes, and snippets.

Avatar

bolinfest

  • Facebook
View GitHub Profile
View initialize.js
#!/usr/bin/env node
// Run this file to generate initialize.rpc in the same directory.
// Then to test it:
//
// Microsoft.Python.LanguageServer < /Users/mbolin/src/test-lsp/initialize.rpc
//
// Ideally, the LSP would reply on stdout.
const fs = require("fs");
@bolinfest
bolinfest / mojave-build-error.txt
Created Jul 18, 2019
./tools/android_build.sh ~/android-ndk-r18b arm &> /tmp/mojave-build-error.txt
View mojave-build-error.txt
rm -f -r out/Makefile node node_g out/Release/node \
out/Release/node.exp
rm -f -r node_modules
rm -f test.tap
# Next one is legacy remove this at some point
rm -f -r test/tmp*
rm -f -r test/.tmp*
/Applications/Xcode_10.2.app/Contents/Developer/usr/bin/make test-addons-clean
rm -f -r test/addons/??_*/
rm -f -r test/addons/*/build
View gist:d76cf662b800f26a1c6d
/Users/mbolin/src/atom$ apm test
[96945:0923/224217:INFO:renderer_main.cc(200)] Renderer process started
Error Downloading Update: Could not get code signature for running application
[96941:0923/224218:INFO:CONSOLE(46)] "Window load time: 1052ms", source: file:///Users/mbolin/src/atom/static/index.js (46)
.............................[96941:0923/224219:INFO:CONSOLE(260)] "Uncaught BufferedProcessError: Failed to spawn command `bad-command-nope`. Make sure `bad-command-nope` is installed and on your PATH", source: /Users/mbolin/src/atom/src/buffered-process.coffee (260)
...................................................................................[96941:0923/224221:INFO:CONSOLE(919)] "Error setting item in object: Validation failed at null.foo.int, null cannot be coerced into an int", source: /Users/mbolin/src/atom/src/config.coffee (919)
[96941:0923/224221:INFO:CONSOLE(919)] "Error setting item in object: Validation failed at foo.int, null cannot be coerced into an int", source: /Users/mbolin/src/atom/s
View gist:bc21a11b77d3d645aafb
Node: v0.12.0
npm: v2.13.3
Installing build modules...
Installing apm...
Installing modules ✗
> atom@1.0.5 preinstall /Users/mbolin/src/bolinfest/atom
> node -e 'process.exit(0)'
npm ERR! addLocal Could not install /Users/mbolin/src/bolinfest/atom/git@github.com:facebooknuclideapm/nuclide-code-format.git#0.0.28
View gist:6618fa6702574ab30248
Sampling process 52346 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Atom Helper (pid 52346) every 1 millisecond
Process: Atom Helper [52346]
Path: /Applications/Nuclide.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Load Address: 0x10c1f6000
Identifier: com.github.atom.helper
Version: 1.0.0 (1.0.0)
Code Type: X86-64
Parent Process: Nuclide.bin [52304]
@bolinfest
bolinfest / -
Created Apr 23, 2014
./main.o Hello.m 5 6
View -
Num completions: 8779
Result 0 (priority=34, chunks=2, annotations=0)
int kind=15
argc kind=1
Result 1 (priority=34, chunks=2, annotations=0)
char ** kind=15
argv kind=1
Result 2 (priority=50, chunks=4, annotations=0)
View -
#include <clang-c/Index.h>
#include <stdio.h>
#include <stdlib.h>
void printCodeCompletionSuggestions(CXTranslationUnit tu, char* source, unsigned line, unsigned column) {
struct CXUnsavedFile *unsavedFiles = NULL;
unsigned numUnsavedFiles = 0;
unsigned options = clang_defaultCodeCompleteOptions();
CXCodeCompleteResults *results = clang_codeCompleteAt(tu, source, line, column, unsavedFiles, numUnsavedFiles, options);
unsigned numResults = results->NumResults;
View -
#include <clang-c/Index.h>
#include <stdio.h>
#include <stdlib.h>
void printCodeCompletionSuggestions(CXTranslationUnit tu, char* source, unsigned line, unsigned column) {
struct CXUnsavedFile *unsavedFiles = NULL;
unsigned numUnsavedFiles = 0;
unsigned options = clang_defaultCodeCompleteOptions();
CXCodeCompleteResults *results = clang_codeCompleteAt(tu, source, line, column, unsavedFiles, numUnsavedFiles, options);
View -
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSL
}
View gist:11196241
$ ./main.o example.c
Diagnostic count: 1
Diagnostic spelling: use of undeclared identifier 'retur'
Formatted diagnostic: example.c:5:3: error: use of undeclared identifier 'retur' [2, Semantic Issue]
No source ranges for diagnostic.