Coder Social home page Coder Social logo

Comments (5)

olafurpg avatar olafurpg commented on August 15, 2024 2

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.

olafurpg avatar olafurpg commented on August 15, 2024 1

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.

kiviok avatar kiviok commented on August 15, 2024

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.

kiviok avatar kiviok commented on August 15, 2024

Thanks. It works! Some features from roadmap not working, but this is another problem, may be with LanguageClient-neovim.

from metals.

olafurpg avatar olafurpg commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.