tide icon indicating copy to clipboard operation
tide copied to clipboard

Feat Request: Add scala version item

Open ruslanSorokin opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe

Nope

Describe the solution you'd like

Add scala version item.

Icon

There are 2 icons in the Nerd Font Collection:

  •  : \ue737
  •  : \ue68e We can use any of those as a default one, but I personally prefer the second one.

Color

#df311e : Wikipedia page #dc3330 : Official Scala page


Regex
scala --version &| string match -qr "(?<v>[\d.]+)" | echo $v                                                                                                                                                  

image

Additional context

ruslanSorokin avatar Oct 01 '23 05:10 ruslanSorokin

I think version should come from build.sbt scalaVersion

sbushmanov avatar Dec 03 '23 19:12 sbushmanov

I think version should come from build.sbt scalaVersion

Yeah, I also believe that this would be the most relevant info about version of Scala, but there is one issue I've found.

The issue is that it takes near 5 seconds to get scalaVersion via sbt scalaVersion in pretty basic project. I actually didn't dive into it deeper since I'm not sure should version be taken from a build system - all(I suppose) other language versions are taken directly from the executable available in the PATH, ignoring any local file directives / build system overrides regarding language version.

ruslanSorokin avatar Dec 15 '23 10:12 ruslanSorokin