Code Monkey home page Code Monkey logo

Comments (7)

yyoncho avatar yyoncho commented on June 12, 2024 1

You can pass args param. All options can be found here: https://github.com/scalameta/metals-vscode/blob/main/package.json#L680

from lsp-metals.

endrebak avatar endrebak commented on June 12, 2024

Got it working. This wasn't relevant. Sorry.

from lsp-metals.

snippins avatar snippins commented on June 12, 2024

@endrebak I couldn't figure it out myself, how did you do it?

from lsp-metals.

endrebak avatar endrebak commented on June 12, 2024

Create an object that extends App. Then a run|debug lens should show above the object definition. This wasn’t/isn’t documented anywhere AFAICS. It is just magic.

Don’t remember what the rest of my settings were like. But I am using the Scala layer in Doom. And I followed the installation instructions for metals.

from lsp-metals.

snippins avatar snippins commented on June 12, 2024

@endrebak I have already used the lens, but this doesn't cover the case where I need to pass arguments :((.

from lsp-metals.

endrebak avatar endrebak commented on June 12, 2024

from lsp-metals.

Camsbury avatar Camsbury commented on June 12, 2024

@yyoncho any thoughts on this? I saw you had a working example, but I'm not sure how to set this up for use in a project with a main that takes arguments...

from lsp-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.