

- #Compile and run result with sublime text for mac install#
- #Compile and run result with sublime text for mac upgrade#
(without mixing them with the default ones from Sublime) set the following setting If you prefer to only enable Metals completions This paragraph contains a few tips & trick that can improve your daily productivity with Metals. Tweaking Sublime Text for a better productivity You can optionally register a key binding for the command. You can search for symbols in your dependency source using the command palette. Sources with "Goto definition" by pressing F12.

Once the sources have compiled successfully, you can navigate the the Once the import step completes, compilation starts for your open *.scalaįiles. You can optionally add key binding for this command. Sbt bloopInstall run lsp toggle server panel in the command palette. Server logs įor more detailed information about what is happening behind the scenes during For example, this step can take anywhere from 10 seconds in small cached builds up to 10-15 minutes in large un-cached builds. The exact time depends on the complexity of the build and if the library dependencies are cached or need to be downloaded. This step can take a long time, especially the first time you run it in a new This starts the Metal language server but no functionality will work yet because the Click "Import build" to start the installation step. Open Sublime in the base directory of your Scala project and it will then prompt you to import the build as long as you're using one of the supported build tools. Next, open "Preferences > Key Binding" and register F12 to trigger goto
#Compile and run result with sublime text for mac install#
Scalameta/metals-sublime: For automatic installation of metals and custom commands.Ĭommand Palette (Cmd + Shift + P) > Install package > LSP-metals Sublimelsp/LSP: Language Server Protocol support for Sublime Text.Ĭommand Palette (Cmd + Shift + P) > Install package > LSP
#Compile and run result with sublime text for mac upgrade#
It's recommended to upgrade to Scala 2.12 or Scala 2.13 Installing the plugins Note that 2.11.x support is deprecated and it will be removed in future releases. Metals is developed on many operating systems andĮvery PR is tested on Ubuntu, Windows and MacOS. Points to a valid Java 8, 11 or 17 installation. Supported, please make sure the JAVA_HOME environment variable Java 8, 11, 17 provided by OpenJDK or Oracle. Sublimelsp/LSP and scalameta/metals-sublime plugins. Metals works with Sublime Text (build 4000 or later) thanks to the
