Skip to content

Instantly share code, notes, and snippets.

Jorge jvican

Block or report user

Report or block jvican

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View frontend-test.json
{
"version" : "1.1.2",
"project" : {
"name" : "frontend-test",
"directory" : "/home/jvican/Code/bloop/frontend",
"sources" : [
"/home/jvican/Code/bloop/frontend/src/test/scala-2.12",
"/home/jvican/Code/bloop/frontend/src/test/scala",
"/home/jvican/Code/bloop/frontend/src/test/java",
"/home/jvican/Code/bloop/frontend/target/scala-2.12/src_managed/test"
@jvican
jvican / Cli.scala
Created Jun 26, 2019
Nailgun CLI implementation **prototype** via Caseapp for Sailgun (Scala based client)
View Cli.scala
package sailgun.caseapp
import _root_.caseapp.core.Parser
import _root_.caseapp.core.Messages
import _root_.caseapp.core.WithHelp
import java.io.PrintStream
import java.io.InputStream
import sailgun.protocol.Defaults
import sailgun.protocol.Streams
@jvican
jvican / frontend.json
Created Jun 15, 2019
An example of a real-world config file for one of the main bloop modules
View frontend.json
{
"version" : "1.1.2",
"project" : {
"name" : "frontend",
"directory" : "/Users/jvican/Code/bloop/frontend",
"sources" : [
"/Users/jvican/Code/bloop/frontend/src/main/scala-2.12",
"/Users/jvican/Code/bloop/frontend/src/main/scala",
"/Users/jvican/Code/bloop/frontend/src/main/java",
"/Users/jvican/Code/bloop/frontend/target/scala-2.12/src_managed/main"
View machine-benchmark-data.log
➜ ~ uname -a
Linux lamppc8 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
stepping : 3
microcode : 0x1c
View metals-connection-error.log
code navigation does not work for the file '/Users/jvican/Code/bloop/integrations/gradle-bloop/src/test/scala/bloop/integrations/gradle/ConfigGenerationSuite.scala' because the build target gradleBloop212-test is being compiled. Wait until compilation is finished and try again.
build shutdown: bloop
java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: com.sun.jna.LastErrorException: [32] Broken pipe
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at scala.meta.internal.metals.BuildServerConnection.$anonfun$shutdown$1(BuildServerConnection.scala:41)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
@jvican
jvican / default.nix
Last active Apr 2, 2019 — forked from ottidmes/default.nix
VS Code Live Share extension
View default.nix
# Baseed on previous attempts of others: https://github.com/NixOS/nixpkgs/issues/41189
{ lib, vscode-utils, autoPatchelfHook, bash, file, makeWrapper, dotnet-sdk
, curl, gcc, icu, libkrb5, libsecret, libunwind, libX11, lttng-ust, openssl, utillinux, zlib
, enableDiagnosticsWorkaround ? false, gccStdenv, dos2unix
}:
with lib;
let
# https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually
@jvican
jvican / BraveTracer.scala
Created Mar 28, 2019
This is a Scala wrapper around Brave tracer (Zipkin) APIs.
View BraveTracer.scala
package bloop.tracing
import brave.{Span, Tracer}
import brave.propagation.TraceContext
import monix.eval.Task
import monix.execution.misc.NonFatal
import scala.util.Failure
import scala.util.Success
@jvican
jvican / stacktrace-metals-reconnect.log
Created Mar 11, 2019
Stack trace when reconnecting to build server after a dropout
View stacktrace-metals-reconnect.log
Failed to connect with build server, no functionality will work.
org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: com.sun.jna.LastErrorException: [32] Broken pipe
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.request(RemoteEndpoint.java:161)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:91)
at com.sun.proxy.$Proxy8.buildShutdown(null)
at scala.meta.internal.metals.BuildServerConnection.shutdown(BuildServerConnection.scala:41)
at scala.meta.internal.metals.MetalsLanguageServer.autoConnectToBuildServer(MetalsLanguageServer.scala:988)
at scala.meta.internal.metals.MetalsLanguageServer.quickConnectToBuildServer(MetalsLanguageServer.scala:981)
at scala.meta.internal.metals.MetalsLanguageServer.executeCommand(MetalsLanguageServer.scala:871)
@jvican
jvican / bloop-config-minimal-example.json
Created Aug 28, 2018
These are all the mandatory fields that a Bloop project needs.
View bloop-config-minimal-example.json
{
"version" : "1.0.0",
"project" : {
"name" : "frontend",
"directory" : "/Users/jvican/Code/bloop/frontend",
"sources" : [
"/Users/jvican/Code/bloop/frontend/src/main/scala-2.12",
"/Users/jvican/Code/bloop/frontend/src/main/scala",
"/Users/jvican/Code/bloop/frontend/src/main/java",
"/Users/jvican/Code/bloop/frontend/target/scala-2.12/src_managed/main"
@jvican
jvican / bloop-config-minimal-example.json
Created Aug 28, 2018
These are all the mandatory fields that a Bloop project needs.
View bloop-config-minimal-example.json
{
"version" : "1.0.0",
"project" : {
"name" : "frontend",
"directory" : "/Users/jvican/Code/bloop/frontend",
"sources" : [
"/Users/jvican/Code/bloop/frontend/src/main/scala-2.12",
"/Users/jvican/Code/bloop/frontend/src/main/scala",
"/Users/jvican/Code/bloop/frontend/src/main/java",
"/Users/jvican/Code/bloop/frontend/target/scala-2.12/src_managed/main"
You can’t perform that action at this time.