Comments (6)
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.
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.
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.
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.
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.
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)
- How to report slowness issues from built-in resolver repo.typesafe.com (scala.jfrog.io)? HOT 16
- NPE when compiling HOT 1
- Fail to boot with match error with `scala-tools-releases` in `repositories` HOT 3
- Project not found when running with ++scalaVersion HOT 1
- Unable to run tests with javaOptions HOT 2
- Scala program does not receive EOF when using `sbt run`
- scalacOptions do not follow the delegation rules HOT 6
- SBT console "swallow" keypresses on JDK 22 and Windows 10
- sbt doesn't seem to follow 307 redirects HOT 1
- sbt whatDependsOn does not work anymore HOT 2
- set window title to organization + artifactId + sbt command HOT 1
- Incorrect spacing in build.properties causes sbt bash script to incorrectly choose to use native client
- files that depend on a dynamic class (say C) are not recompiled when C's private fields become public HOT 3
- Not able to start more than one service at a time using different ports. error is SBT server is already booting.
- Unable to track objects with Maps HOT 3
- StackOverflowError when using dependencyBrowseTree HOT 3
- Do not set -Xsource:3 flag automatically HOT 3
- `META-INF/MANIFEST.MF` has no parent zip entry `META-INF/` when packaging to a jar. HOT 1
- `publishLocalAllModule` fails with RuntimeException, "crossScalaVersions is undefined"
- `publishLocal` on the zinc module outputs error HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt.