Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Last active January 28, 2020 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkawachi/b2304e8c8b2040eb71d1e57baedb2c75 to your computer and use it in GitHub Desktop.
Save tkawachi/b2304e8c8b2040eb71d1e57baedb2c75 to your computer and use it in GitHub Desktop.
Dotty の launchIDE 時の手順

DottyIDEPlugin.scala

  1. .dotty-ide-artifact に language server の artifact 名を書く
    • ch.epfl.lamp:dotty-language-server_0.21:0.21.0-RC1 ← こういうやつ
  2. .dotty-ide.json にプロジェクトの情報を書く
  3. Visual studio code に lampepfl.dotty プラグインをインストール
    • code -n --force --install-extension lampepfl.dotty を実行 (-n は new window)
  4. Visual studio code を起動
    • プロジェクトディレクトリで code -n .

Dotty の VS Code plugin

  1. java -jar [coursierのjar] fetch -p [artifact] で language server を取得
  2. vscode-languageclient の LanguageClient を介して java -classpath [language server のクラスパス] dotty.tools.languageserver.Main -stdio で language server を起動

Server/Client 間は stdin/stdout でやり取りしてる?

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment