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

Feat Request: Add scala version item #447

Open
ruslanSorokin opened this issue Oct 1, 2023 · 2 comments
Open

Feat Request: Add scala version item #447

ruslanSorokin opened this issue Oct 1, 2023 · 2 comments
Labels
🌊 enhancement New feature or request

Comments

@ruslanSorokin
Copy link

ruslanSorokin commented Oct 1, 2023

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 ruslanSorokin added the 🌊 enhancement New feature or request label Oct 1, 2023
@sbushmanov
Copy link

I think version should come from build.sbt scalaVersion

@ruslanSorokin
Copy link
Author

ruslanSorokin commented Dec 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌊 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants