Giter VIP home page Giter VIP logo

Comments (6)

eed3si9n avatar eed3si9n commented on July 24, 2024

Thanks for the report. Could you tell us what the environment that you are seeing this issue, for example the shell and the console program? Also could you check if this is specific to sbt 1.10.0 or it happens with previous versions?

from sbt.

segundovolante avatar segundovolante commented on July 24, 2024

Both images are using Windows terminal. (Version: 1.20.11271.0)

  • Black background: Powershell 7.4.2 (Windows 11) . I can also reproduce this on regular CMD from windows.
  • Blue background: WSL - Ubuntu on windows terminal

Yes, I also see this happening on 1.9.9

from sbt.

eed3si9n avatar eed3si9n commented on July 24, 2024

So I'm guessing that "ΓÇ»" is either an ASCII control sequence or some string in encoding A, misinterpreted by your shell as another encoding B, also known as mojibakeh. If you have some override of JVM parameters, could you try adding -Dfile.encoding=UTF-8?

from sbt.

segundovolante avatar segundovolante commented on July 24, 2024

I ran it in verbose mode, I can see the encoding being UTF-8. I still see the issue.

❯ sbt -v
# Executing command line:
"C:\Program Files\Amazon Corretto\jdk21.0.3_9\bin\java.exe"
-Dfile.encoding=UTF-8
-Dscala.ext.dirs="C:\Users\username\.sbt\1.0\java9-rt-ext-amazon_com_inc__21_0_3"
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-cp
"C:\Users\username\AppData\Local\Coursier\cache\arc\https\github.com\sbt\sbt\releases\download\v1.10.0\sbt-1.10.0.zip\sbt\bin\sbt-launch.jar"
xsbt.boot.Boot

from sbt.

segundovolante avatar segundovolante commented on July 24, 2024

unrelated, but I noticed that this does not work on powershell (it works on regular cmd)

sbt -Dfile.encoding=UTF-8

It throws this error:

[error] Not a valid command: UTF-8
[error] Not a valid project ID: UTF-8
[error] Expected ':'
[error] Not a valid key: UTF-8
[error] UTF-8
[error]  

It seems that on windows/powershell I am not able to override properties that contain a period.

This works:

sbt  -Dkey=value

from sbt.

segundovolante avatar segundovolante commented on July 24, 2024

Hey I think i found the issue.

It uses this character NNBS, this can also be reproduced in scala-cli, or other java tool I think. This might be an issue on how java handles this in windows,.

val c: Char = 8239

I don't think it is specific to SBT, so you can probably close it, unless you want to display different format in windows compared to linux.

from sbt.

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.