Skip to content

Instantly share code, notes, and snippets.

Ólafur Páll Geirsson olafurpg

Block or report user

Report or block olafurpg

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 gist:bb1145266a14bdb0cecb847c8d1fb2b9
2020-01-28 16:20:03
Full thread dump TwitterJDK 64-Bit Server VM (25.222-b10-jvmci-0.30-Tw8r22b0 mixed mode):
"Attach Listener" #43 daemon prio=9 os_prio=31 tid=0x00007faf872be000 nid=0x9407 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"bloop-io-42" #42 daemon prio=5 os_prio=31 tid=0x00007faf37f34000 nid=0x7403 waiting on condition [0x0000700004e7a000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005c000d320> (a java.util.concurrent.SynchronousQueue$TransferStack)
View gist:2991e1fa154f02afeda958609c72759e
2020-01-28 16:19:34
Full thread dump TwitterJDK 64-Bit Server VM (25.222-b10-jvmci-0.30-Tw8r22b0 mixed mode):
"Attach Listener" #73 daemon prio=9 os_prio=31 tid=0x00007f8a5401a800 nid=0x9807 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"NGSession 4: (idle)" #70 prio=5 os_prio=31 tid=0x00007f8ab6aed000 nid=0xa707 in Object.wait() [0x0000700002711000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000000719e89040> (a java.lang.Object)
View gist:6c0e816e11fc01296ef1f5e339d39c9e
diff --git a/metals/src/main/scala/scala/meta/internal/pantsbuild/BloopPants.scala b/metals/src/main/scala/scala/meta/internal/pantsbuild/BloopPants.scala
index 3dca37a..26ec5c5 100644
--- a/metals/src/main/scala/scala/meta/internal/pantsbuild/BloopPants.scala
+++ b/metals/src/main/scala/scala/meta/internal/pantsbuild/BloopPants.scala
@@ -30,6 +30,7 @@ import scala.sys.process.Process
import scala.meta.io.Classpath
import coursierapi.MavenRepository
import scala.meta.internal.io.PathIO
+import java.nio.file.StandardCopyOption
View gist:2c56f4f239c80f467552f7e65cfe4cc9
diff --git a/frontend/src/main/scala/bloop/data/Project.scala b/frontend/src/main/scala/bloop/data/Project.scala
index 3bf914d..7ae05fc 100644
--- a/frontend/src/main/scala/bloop/data/Project.scala
+++ b/frontend/src/main/scala/bloop/data/Project.scala
@@ -5,6 +5,7 @@ import bloop.logging.{DebugFilter, Logger}
import bloop.ScalaInstance
import bloop.bsp.ProjectUris
import bloop.config.Config
+import bloop.data.Platform
import bloop.engine.Dag
View gist:d15833f9b519ac286e36a5daad8f07a5
diff --git a/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala b/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala
index 34c7258..11f34b6 100644
--- a/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala
+++ b/mtags/src/main/scala/scala/meta/internal/pc/AutoImports.scala
@@ -37,14 +37,14 @@ trait AutoImports { this: MetalsGlobal =>
}
}
+ def isImportPosition: Boolean =
+ findLastVisitedParentTree(pos).exists(_.isInstanceOf[Import])
View minimize.scala
package minimize
object app {
import cats.tagless._
import util.Try
import cats.tagless.implicits._
import cats.implicits._
import cats._
import cats.free.Free
import cats.arrow.FunctionK
View defaulted_property.diff
diff --git a/src/python/pants/backend/project_info/tasks/export.py b/src/python/pants/backend/project_info/tasks/export.py
index d2390d3..7fd9896 100644
--- a/src/python/pants/backend/project_info/tasks/export.py
+++ b/src/python/pants/backend/project_info/tasks/export.py
@@ -7,6 +7,7 @@ from collections import defaultdict
from twitter.common.collections import OrderedSet
+from pants.backend.jvm.subsystems.dependency_context import DependencyContext
from pants.backend.jvm.subsystems.jvm_platform import JvmPlatform
View sc.diff
commit d1c32af12806e4874a0403183bb27457f365ea1f
Author: Olafur Pall Geirsson <lgeirsson@twitter.com>
Date: Sun Nov 3 10:56:02 2019 +0000
Add support for `*.sc` files
diff --git a/metals/src/main/scala/scala/meta/internal/metals/Compilers.scala b/metals/src/main/scala/scala/meta/internal/metals/Compilers.scala
index 3b1caa3..1063986 100644
--- a/metals/src/main/scala/scala/meta/internal/metals/Compilers.scala
+++ b/metals/src/main/scala/scala/meta/internal/metals/Compilers.scala
View gist:a5680c662fb68d5d925bc79df5c8f670
commit 3f09ac8e6c921586b4dc8949b25ce4759f064776
Author: Olafur Pall Geirsson <lgeirsson@twitter.com>
Date: Thu Oct 10 12:44:44 2019 +0200
Experiment with debugging breakpoints
diff --git a/metals/src/main/scala/scala/meta/internal/metals/debug/DebugProtocol.scala b/metals/src/main/scala/scala/meta/internal/metals/debug/DebugProtocol.scala
index 4736d6e..04f9e28 100644
--- a/metals/src/main/scala/scala/meta/internal/metals/debug/DebugProtocol.scala
+++ b/metals/src/main/scala/scala/meta/internal/metals/debug/DebugProtocol.scala
View readme.md

Hello!

This is a tutorial

println("## This is header 2")
1.to(10).foreach(i => println(s"* $i"))
You can’t perform that action at this time.