I am working with Scala in VS Code, but have the problem that I can not get the debugger to run in some projects. Metals is simply not able to find the build target depending how the project is structured. Can I browse somehow in VS Code to the build target and "show" Metals where it is located ?
Is there a way to manually provide the build target path to Metals in VSCode?
1.4k Views Asked by DataBach At
1
There are 1 best solutions below
Related Questions in SCALA
- Mocking AmazonS3 listObjects function in scala
- Last SPARK Task taking forever to complete
- How to upload a native scala project to local repo by sbt like using "maven install"
- Folding a list of OR clauses in io.getquill
- How to get latest modified file using scala from a folder in HDFS
- Enforce type bound for inferred type parameter in pattern matching
- can't write pyspark dataframe to parquet file on windows
- spark streaming and kafka integration dependency problem
- how to generate fresh singleton literal type in scala using macros
- exception during macro expansion: type T is not a class, play json
- Is there any benefit of converting a List to a LazyList in Scala?
- Get all records within a window in spark structured streaming
- sbt publishLocal of a project with provided dependencies in build.sbt doesn't make these dependencies visible to projects using the project as library
- Scala composition of partially-applied functions
- How to read the input json using a schema file and populate default value if column not being found in scala?
Related Questions in VISUAL-STUDIO-CODE
- Is there a way to prevent vscode from forwarding ssh agent to remote dev container?
- flutter Null check error: did not show file and line number
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- trouble with creating a project for Pymakr in vscode
- Compiling c++ code by VS Code is always blocked by clang-tidy error 'Error running 'clang-tidy'
- Disable typescript in VS Code
- couldn't sign in visual studio code
- I can't add text to "Message" in VS Code when committing to Git
- Cannot type single backtick in VSCode
- WebScraping doesnt work, even without error
- Visual Studio Code keeps discovering python interpreters forever and vscode-server on remote is busy 100%
- vscode uses different cocoapods version when running a task
- Live server extension in VS Code works in background but do not pop the web browser
- How to recover deleted files from create vite react project
- Autocomplete not working for apache spark in java vscode
Related Questions in BUILD
- Build issue in my STM32-NUCLEO project using the Eclipse IDE
- Module not found when building flutter app for IOS
- Why am I getting this error ? error CS0103: The name 'EnhancedStackTrace' does not exist in the current context
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- Build LLVM, Clang and Libfuzzer
- when I open a ktor project, error Cannot invoke "java.nio.file.Path.toString()" because the return value of "java.nio.file.Path.getFileName()" is null
- Cannot make Django run the frontend from Vite's build ("was blocked because of a disallowed MIME type (“text/html”)")
- Distorted CSS after Build process
- how to build nextjs app unable to build and deploy
- How to build custom mediapipe python model i.e. adding flow_limiter_calculator to face_landmark_front_cpu.binarypb
- Assets not showing after build process in Vite and React
- "Config.guess failed to determine the host type" when trying build binutils-2.7 with Cygwin
- The assembled Python application does not launch
- Why rebuild module does not recompile dependency module, but build module does in IntelliJ Idea?
- Gitlab pipeline stuck with nx cloud issue
Related Questions in VISUAL-STUDIO-DEBUGGING
- Is there a way to deactivate (but not delete) conditional breakpoints when debugging?
- AttributeError: type object 'Callable' has no attribute '_abc_registry' -- debugging Dockerized Python Apps on VS Code
- Debugging MAUI issues from android playstore Crash details stacks
- Unable to debug C++/CLI dll using visual studio 2022 mixed mode (.NET Core, .NET 5+, native code)
- How to set breakpoints in Visual Studio Code for debugging kernel code running in QEMU?
- Heavy await/async when the Visual Studio Debugger is attached is slow?
- Visual Studio debugger extension - resolve switched stack
- C# DLL (using 3F DLLExport for exporting functions) not debuggable in Delphi application
- How can I debug a nodejs application in vscode using Arc browser?
- VScode testing fails when using the debugger in conjunction with a virtual environment
- Debugging spring boot in VS code problem: ClassNotFoundException: javax/smartcardio/CardPermission
- Visual Studio 2022 Debugger accept requests from remote machine
- Visual Studio 2022 debugging web application sits forever
- Json null reference exception ignoring try-catch block in debugger only, but catches fine in other contexts
- Debbugger equivocated evaluation of span instance right before calling MemoryMarshal.AsBytes
Related Questions in SCALA-METALS
- How do I prevent WartRemover from interferring with the metals dap console?
- VSCode / Metals / Mill / ScalaTest: AnyFlatSpec specs are not picked up
- How do I get Metals LSP working in neovim?
- VS Code metals extension "New Scala project" button does not work
- How do I have integrated support for Scala inside newer versions of Eclipse (2023-06)?
- VSCode Scala Metals: Mainclass not found after updating plugin from 1.23.0 to 1.24.0
- generate Scala test class in VS Code
- The quick fix feature for importing classes from other packages in Scala doesn't work in vscode and metals
- How do I use sbt from a Github Codespace terminal where Scala was installed by Metals?
- Is there a way to manually provide the build target path to Metals in VSCode?
- Scala metals: "Evaluation failed because the thread is not suspended."
- Autocomplete in Neovim for Scala
- Why does Spark SQL fail, but Spark core works after fresh installation (Scala)?
- Profile Scala3 compiler
- Metals VS Code connection to build server failing
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The easiest way to do this in a VS Code Metals Scala project is to browse to the level of the build.sbt and then run
code .in bash. This will start the sbt compiler. Then you can open the command palette by hitting Control + P and type >Import Build. Once the import is completed, hit F5 to start debugging.