Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a valid command: metalsEnable #685

Closed
cloudcalvin opened this issue Apr 19, 2019 · 9 comments

Comments

2 participants
@cloudcalvin
Copy link

commented Apr 19, 2019

Good day all,

I am new to metals an might have something set up wrong, so I apologize in advance. I did try what was mentioned in the troubleshooting section to no avail:

Using metals with vscode I get the following error when trying to build a project. (It happens for all the projects I have tried so far).

[error] Not a valid command: metalsEnable
[error] Not a valid project ID: metalsEnable
[error] Expected ':'
[error] Not a valid key: metalsEnable
[error] metalsEnable
[error]             ^
sbt exit: 1

I have added `addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M13")'
to /home/userd/.sbt/1.0/plugins/plugins.sbt but have also tried it with M14.

  • Operating system: Arch Linux
  • Editor: Visual Studio Code
  • Metals version: v0.5.0
  • Coursier installed via AUR: 1.1.0-M14

Kind regards
Calvin

@ayoub-benali

This comment has been minimized.

Copy link
Contributor

commented Apr 19, 2019

It is a know bug in coursier, please upgrade to 1.1.0-M13-2

@cloudcalvin

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

It is a know bug in coursier, please upgrade to 1.1.0-M13-2

Yes, I saw that from issue #383 which lead me to try using 1.1.0-M14, but it does not work.

@ayoub-benali

This comment has been minimized.

Copy link
Contributor

commented Apr 19, 2019

which sbt and java versions are you using ?

@cloudcalvin

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

The project I am running is vanilla udash template: sbt new UdashFramework/udash.g8
with javac 1.8.0_212.
sbt version = 1.2.8

@ayoub-benali

This comment has been minimized.

Copy link
Contributor

commented Apr 19, 2019

Can't reproduce the issue with the project template even with coursier 1.1.0-M14. Maybe @olafurpg have better ideas

@cloudcalvin

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

Ok thank you for your effort!
I think I have this working now. Had to delete /tmp/metals6902378459201529676/sbt-launch.jar and then restarting vscode. (but now I have a different error..)

Failed to connect with build server, no functionality will work.
scala.meta.internal.metals.BloopServers$NoResponse$: no response: bloop bsp

I will close and browse the issues for this new error.

@ayoub-benali

This comment has been minimized.

Copy link
Contributor

commented Apr 19, 2019

have you tried deleting your .metals .bloop directories as well ?

@cloudcalvin

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

Ok I just tried it: 1) deleted .metals and .bloop then 2) metals import build. It did not work.
I closed vscode, deleted them again, opened vscode, and this time it worked..

@cloudcalvin

This comment has been minimized.

Copy link
Author

commented Apr 19, 2019

I appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.