Comments (5)
Here's how the vscode client currently starts the server https://github.com/scalameta/language-server/blob/87452e193986b784d7e0bad1fc2387997fa42e92/vscode-extension/src/extension.ts#L35-L55 First you'll have to publishLocal
from source following instructions in https://github.com/scalameta/language-server/blob/master/BETA.md
I'm not aware of anyone trying out the server on vim, I'm curious to know how it goes!
from metals.
I forgot we publish to bintray on merge https://bintray.com/scalameta/maven/metaserver so the publishLocal step is not necessary
$ coursier bootstrap org.scalameta:metaserver_2.12:87452e19 -r bintray:scalameta/maven -r bintray:dhpcs/maven -J -Dvscode.workspace=$(pwd) -M scala.meta.languageserver.Main -o scalameta_lsp -f --standalone
$ ./scalameta_lsp
Note the workspace path is a system property, I opened #112 to make that easier to configure.
from metals.
everything ok, but:
Exception in thread "main" java.lang.NoClassDefFoundError: com/typesafe/scalalogging/Logger
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at coursier.cli.qR.a(Unknown Source)
at coursier.cli.qQ.j(Unknown Source)
at coursier.cli.qW.a(Unknown Source)
at e.h.a.c(Unknown Source)
at b.b.c_(Unknown Source)
at e.b.d.E.g(Unknown Source)
at e.b.e.aW.g(Unknown Source)
at e.b.f.b.aa.a(Unknown Source)
at coursier.cli.qQ.b(Unknown Source)
at coursier.cli.Q.b(Unknown Source)
at b.J.c_(Unknown Source)
at e.F.h(Unknown Source)
at b.F.a(Unknown Source)
at coursier.cli.Coursier.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at coursier.Bootstrap.main(Bootstrap.java:428)
Caused by: java.lang.ClassNotFoundException: com.typesafe.scalalogging.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 24 more
Read lightbend-labs/scala-logging#69
and try
./coursier resolve -t org.scalameta:metaserver_2.12:0.1-SNAPSHOT | grep slf4j
Result:
│ │ └─ org.slf4j:slf4j-api:1.7.25
│ │ └─ org.slf4j:slf4j-api:1.7.2 -> 1.7.25
│ │ └─ org.slf4j:slf4j-api:1.7.25
│ │ └─ org.slf4j:slf4j-api:1.7.2 -> 1.7.25
and here like everything is all right.
from metals.
Thanks. It works! Some features from roadmap not working, but this is another problem, may be with LanguageClient-neovim
.
from metals.
Sweet! It's still an evolving project so expect things to break and change regularly for at least until the first milestone is out https://github.com/scalameta/language-server/milestone/1 Early feedback is very welcome 👍
from metals.
Related Issues (20)
- Formatting (i.e. using Scalafmt) is unnecessarily slow HOT 1
- Indexing runs forever in VSCode probably caused by an unexpected symbol HOT 9
- Auto-import is not suggested for classes with long name HOT 4
- Extract selection as method doesn't infer correct return type HOT 1
- Auto-import is not working for classes with the same name
- Class renaming is broken when you have other tab opened with import
- False error when splicing a polymorphic function HOT 1
- Memory leak - PC + scala 2 HOT 13
- "could not find main class" error when assigning a key to "run" lense for a main class HOT 13
- Type information errors when classloading in macros with `Selectable` HOT 4
- Metals starts a bsp server for project ref, when added as the first workspace folder in VSCode
- Worksheet doesn't show correct Array Output HOT 6
- Worksheet output of previous lines is wrongly updated HOT 1
- Сonstant Scalafix errors HOT 8
- Java source indexing looks to indexing has innefficient file I/O HOT 7
- Metals creates a `.semanticdb` file when opening a single Scala file in VS Cdoe
- OOM while running tests HOT 3
- java.nio.file.NoSuchFileException for a path with @ HOT 2
- recent upgrade fails to run tests HOT 7
- Unable to Goto definition for Sources classes which contains Scala 3 deprecated methods and when the Source Project's version contains number 3 in it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metals.