Ólafur Páll Geirsson

Results 142 issues of Ólafur Páll Geirsson

```scala class C { this: Map[Int, String] => } class D { this: String => } class E { this: E => } ``` ```diff -- obtained ++ expected Occurrences:...

Semantic
Bug

I ran the following test on a few open source Scala projects and collected statistics on examples when the scala.meta parser throws a ParseException while scalac is happy. https://github.com/olafurpg/scalafmt/blob/master/src/test/scala/scala/fmt/ProjectTest.scala Here...

Parsing

```scala object From { implicit val unwise: String => Option[Int] = str => None val sure: Option[Int] = "7" } ``` ```diff $ metac -P:semanticdb:synthetics:on implicit.scala && metap META-INF/semanticdb/implicit.scala.semanticdb -...

Semantic
Scalac

It would be nice if there was an option like `-P:semanticdb:cleanup:none` that disabled the `synchronizeSourcesAndSemanticdbFiles` phase in the SemanticDB compiler plugin https://github.com/scalameta/scalameta/blob/ff542e7c5b937822c12d0aa1ef7d6ab92b2fc5e1/semanticdb/scalac/library/src/main/scala/scala/meta/internal/semanticdb/scalac/SemanticdbPipeline.scala#L70-L72 This phase is expensive and it can be...

Reported by @heksesang in the Metals Gitter channel ```bash $ cat å.scala object A $ metac å.scala $ ls META-INF ``` I expected the `META-INF/semanticdb/å.scala.semanticdb` file to be generated.

Given input file https://github.com/scalacenter/scalafix/blob/0333c38f5f5e6d45f05fd65616dd4b3ed191c4af/scalafix-tests/shared/src/main/scala/test/PrettyTest.scala ```diff --- SemanticDB v4.1.0 +++ SemanticDB v4.1.4 @@ -85,15 +85,15 @@ [86:9..86:22]: test/Test.C#compoundType1. => val method compoundType1: AnyRef { i: Int } [87:9..87:22]: test/Test.C#compoundType2. => val...

spree

Scalameta trees construct parent links by default and because trees are immutable, this means the scalameta parser re-constructs the entire subtree whenever it constructs a new parent node. This is...

Trees

```scala // enrich.scala object a { implicit class RichInt(x: Int) { def soRich(other: Int) = x + other } val op = 1 op soRich 2 } ``` produces the...

Bug
Scalac

Currently, the website is hosted in the repo https://github.com/scalameta/tutorial. We might want to consider having the website in the main repository. The benefit is that documentation would be closer to...

Docs

We already have a test case https://github.com/scalameta/scalameta/blob/0855a8defcefe0cec2bef80f79d43b2f974cdf9d/tests/jvm/src/test/resources/metac.expect#L1407-L1409 The object symbol has no occurrence ```diff + expected [0:8..0:15): example example/MacroAnnotations# [3:6..3:22): MacroAnnotations

Bug
Scalac