Skip to content

Commit fbcd879

Browse files
authored
Merge pull request #5062 from dotty-staging/ide-upgrade
Upgrade IDE dependencies
2 parents 5add130 + 2d00d59 commit fbcd879

File tree

6 files changed

+144
-117
lines changed

6 files changed

+144
-117
lines changed

.drone.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ pipeline:
2323
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
2424
test:
2525
group: test
26-
image: lampepfl/dotty:2018-08-22
26+
image: lampepfl/dotty:2018-08-31
2727
commands:
2828
- cp -R . /tmp/1/ && cd /tmp/1/
2929
- ./project/scripts/sbt ";compile ;test"
3030
- ./project/scripts/cmdTests
3131

3232
test_bootstrapped:
3333
group: test
34-
image: lampepfl/dotty:2018-08-22
34+
image: lampepfl/dotty:2018-08-31
3535
commands:
3636
- cp -R . /tmp/2/ && cd /tmp/2/
3737
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
3838
- ./project/scripts/bootstrapCmdTests
3939

4040
test_sbt:
4141
group: test
42-
image: lampepfl/dotty:2018-08-22
42+
image: lampepfl/dotty:2018-08-31
4343
commands:
4444
- cp -R . /tmp/4/ && cd /tmp/4/
4545
- ./project/scripts/sbt sbt-dotty/scripted
@@ -49,7 +49,7 @@ pipeline:
4949

5050
# DOCUMENTATION:
5151
documentation:
52-
image: lampepfl/dotty:2018-08-22
52+
image: lampepfl/dotty:2018-08-31
5353
commands:
5454
- ./project/scripts/genDocs
5555
secrets: [ bot_pass ]
@@ -61,7 +61,7 @@ pipeline:
6161
# PUBLISHING:
6262
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
6363
publish_nightly:
64-
image: lampepfl/dotty:2018-08-22
64+
image: lampepfl/dotty:2018-08-31
6565
environment:
6666
- NIGHTLYBUILD=yes
6767
commands:
@@ -72,7 +72,7 @@ pipeline:
7272
environment: nightly
7373

7474
publish_release:
75-
image: lampepfl/dotty:2018-08-22
75+
image: lampepfl/dotty:2018-08-31
7676
environment:
7777
- RELEASEBUILD=yes
7878
commands:
@@ -96,7 +96,7 @@ pipeline:
9696
event: tag
9797

9898
publish_sbt_release:
99-
image: lampepfl/dotty:2018-08-22
99+
image: lampepfl/dotty:2018-08-31
100100
environment:
101101
- RELEASEBUILD=yes
102102
commands:

language-server/src/dotty/tools/languageserver/DottyLanguageServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class DottyLanguageServer extends LanguageServer
381381
val uriTrees = driver.openedTrees(uri)
382382

383383
val defs = Interactive.namedTrees(uriTrees, includeReferences = false, _ => true)
384-
defs.map(d => symbolInfo(d.tree.symbol, d.namePos)).asJava
384+
defs.map(d => JEither.forLeft(symbolInfo(d.tree.symbol, d.namePos))).asJava
385385
}
386386

387387
override def symbol(params: WorkspaceSymbolParams) = computeAsync { cancelToken =>

language-server/test/dotty/tools/languageserver/util/actions/CodeDocumentSymbol.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import scala.collection.JavaConverters._
1717
class CodeDocumentSymbol(override val marker: CodeMarker, expected: Seq[SymInfo]) extends ActionOnMarker {
1818

1919
override def execute(): Exec[Unit] = {
20-
val results = server.documentSymbol(marker.toDocumentSymbolParams).get().asScala
20+
val results = server.documentSymbol(marker.toDocumentSymbolParams).get().asScala.map(_.getLeft)
2121
val expectedSymInfos = expected.map(_.toSymInformation)
2222

2323
assertEquals(expectedSymInfos, results)

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ object Build {
832832
fork in run := true,
833833
fork in Test := true,
834834
libraryDependencies ++= Seq(
835-
"org.eclipse.lsp4j" % "org.eclipse.lsp4j" % "0.4.1",
835+
"org.eclipse.lsp4j" % "org.eclipse.lsp4j" % "0.5.0.M1",
836836
Dependencies.`jackson-databind`
837837
),
838838
javaOptions := (javaOptions in `dotty-compiler-bootstrapped`).value,

0 commit comments

Comments
 (0)