Eugene Yokota
a38a1aa4d0
[2.x] perf: cache isSupershellEnabled
...
**Problem**
isSupershellEnabled apparently shows up in profiling
constructing the Map structure for sys props.
**Solution**
Cache isSupershellEnabled.
2025-11-12 22:38:45 -05:00
xuwei-k
d1a1dd9edd
remove unused code
2025-10-04 19:16:22 +09:00
Eugene Yokota
645908f597
Apply Contraband
2025-09-28 21:28:21 -04:00
Eugene Yokota
2fa3159f18
Update to Contraband 0.8.0
2025-09-19 00:46:34 -04:00
Eugene Yokota
683a559b37
Remove log4j
2025-08-30 20:29:44 -04:00
Eugene Yokota
3b4547718e
Remove deprecated methods
2025-05-11 05:23:41 -04:00
xuwei-k
5d660ab8b5
remove unnecessary case
...
- https://github.com/xuwei-k/scalafix-rules/blob/3ca36335057154ef4431fee464a86b721013d334/rules/src/main/scala/fix/RemoveParameterUntuplingCase.scala
- https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling.html
- https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling-spec.html
2025-02-22 08:48:29 +09:00
Josh Soref
613eb86447
Spelling ( #8028 )
...
* spelling: 1.x
Signed-off-by: Josh Soref <[email protected] >
* spelling: a
Signed-off-by: Josh Soref <[email protected] >
* spelling: aether
Signed-off-by: Josh Soref <[email protected] >
* spelling: anymore
Signed-off-by: Josh Soref <[email protected] >
* spelling: artifact
Signed-off-by: Josh Soref <[email protected] >
* spelling: available
Signed-off-by: Josh Soref <[email protected] >
* spelling: be
Signed-off-by: Josh Soref <[email protected] >
* spelling: bridge
Signed-off-by: Josh Soref <[email protected] >
* spelling: cannot
Signed-off-by: Josh Soref <[email protected] >
* spelling: case-insensitive
Signed-off-by: Josh Soref <[email protected] >
* spelling: checksum
Signed-off-by: Josh Soref <[email protected] >
* spelling: class loads
Signed-off-by: Josh Soref <[email protected] >
* spelling: contra
Signed-off-by: Josh Soref <[email protected] >
* spelling: dependencies
Signed-off-by: Josh Soref <[email protected] >
* spelling: dependency
Signed-off-by: Josh Soref <[email protected] >
* spelling: dependent
Signed-off-by: Josh Soref <[email protected] >
* spelling: deriveds
Signed-off-by: Josh Soref <[email protected] >
* spelling: describes
Signed-off-by: Josh Soref <[email protected] >
* spelling: early
Signed-off-by: Josh Soref <[email protected] >
* spelling: enclosed
Signed-off-by: Josh Soref <[email protected] >
* spelling: evaluation
Signed-off-by: Josh Soref <[email protected] >
* spelling: excluding
Signed-off-by: Josh Soref <[email protected] >
* spelling: execution
Signed-off-by: Josh Soref <[email protected] >
* spelling: for
Signed-off-by: Josh Soref <[email protected] >
* spelling: frequently
Signed-off-by: Josh Soref <[email protected] >
* spelling: github
Signed-off-by: Josh Soref <[email protected] >
* spelling: green
Signed-off-by: Josh Soref <[email protected] >
* spelling: https://www
Signed-off-by: Josh Soref <[email protected] >
* spelling: https
Signed-off-by: Josh Soref <[email protected] >
* spelling: in-sourcing
Signed-off-by: Josh Soref <[email protected] >
* spelling: include
Signed-off-by: Josh Soref <[email protected] >
* spelling: incompatible
Signed-off-by: Josh Soref <[email protected] >
* spelling: indefinitely
Signed-off-by: Josh Soref <[email protected] >
* spelling: information
Signed-off-by: Josh Soref <[email protected] >
* spelling: inputted
Signed-off-by: Josh Soref <[email protected] >
* spelling: just
Signed-off-by: Josh Soref <[email protected] >
* spelling: lastmodifiedtimes
Signed-off-by: Josh Soref <[email protected] >
* spelling: latest
Signed-off-by: Josh Soref <[email protected] >
* spelling: manifest
Signed-off-by: Josh Soref <[email protected] >
* spelling: miscellaneous
Signed-off-by: Josh Soref <[email protected] >
* spelling: more
Signed-off-by: Josh Soref <[email protected] >
* spelling: neither
Signed-off-by: Josh Soref <[email protected] >
* spelling: never
Signed-off-by: Josh Soref <[email protected] >
* spelling: nonexistent
Signed-off-by: Josh Soref <[email protected] >
* spelling: opted
Signed-off-by: Josh Soref <[email protected] >
* spelling: outputting
Signed-off-by: Josh Soref <[email protected] >
* spelling: params
Signed-off-by: Josh Soref <[email protected] >
* spelling: performance
Signed-off-by: Josh Soref <[email protected] >
* spelling: preceding
Signed-off-by: Josh Soref <[email protected] >
* spelling: presentation
Signed-off-by: Josh Soref <[email protected] >
* spelling: project
Signed-off-by: Josh Soref <[email protected] >
* spelling: projects
Signed-off-by: Josh Soref <[email protected] >
* spelling: protocol
Signed-off-by: Josh Soref <[email protected] >
* spelling: related
Signed-off-by: Josh Soref <[email protected] >
* spelling: representation
Signed-off-by: Josh Soref <[email protected] >
* spelling: res
Signed-off-by: Josh Soref <[email protected] >
* spelling: resolverlist
Signed-off-by: Josh Soref <[email protected] >
* spelling: resolverset
Signed-off-by: Josh Soref <[email protected] >
* spelling: response
Signed-off-by: Josh Soref <[email protected] >
* spelling: returned
Signed-off-by: Josh Soref <[email protected] >
* spelling: sbt_version
Signed-off-by: Josh Soref <[email protected] >
* spelling: scalacheck
Signed-off-by: Josh Soref <[email protected] >
* spelling: sentinels
Signed-off-by: Josh Soref <[email protected] >
* spelling: separates
Signed-off-by: Josh Soref <[email protected] >
* spelling: serves
Signed-off-by: Josh Soref <[email protected] >
* spelling: should
Signed-off-by: Josh Soref <[email protected] >
* spelling: significant
Signed-off-by: Josh Soref <[email protected] >
* spelling: specifically
Signed-off-by: Josh Soref <[email protected] >
* spelling: substitute
Signed-off-by: Josh Soref <[email protected] >
* spelling: suppress
Signed-off-by: Josh Soref <[email protected] >
* spelling: terminal
Signed-off-by: Josh Soref <[email protected] >
* spelling: the
Signed-off-by: Josh Soref <[email protected] >
* spelling: title
Signed-off-by: Josh Soref <[email protected] >
* spelling: transitive
Signed-off-by: Josh Soref <[email protected] >
* spelling: version
Signed-off-by: Josh Soref <[email protected] >
* spelling: versions
Signed-off-by: Josh Soref <[email protected] >
* spelling: want
Signed-off-by: Josh Soref <[email protected] >
* spelling: wanting
Signed-off-by: Josh Soref <[email protected] >
* spelling: whether
Signed-off-by: Josh Soref <[email protected] >
* link: sbt Cached Resolution
Signed-off-by: Josh Soref <[email protected] >
* link: Testing sbt plugins
Signed-off-by: Josh Soref <[email protected] >
---------
Signed-off-by: Josh Soref <[email protected] >
2025-02-04 01:11:28 -05:00
xuwei-k
358f2d9fdc
use enum instead of scala.Enumeration
2025-01-03 12:07:41 +09:00
eugene yokota
7f86575314
Merge pull request #7999 from xuwei-k/remove-unused-privates
2025-01-02 05:31:56 -05:00
xuwei-k
614d9ce985
remove unused private val and def
2025-01-02 18:48:32 +09:00
xuwei-k
0d0cd2eabf
fix typo
2025-01-02 13:52:51 +09:00
xuwei-k
13d6626564
update .scalafmt.conf. enforce new scala 3 syntax
2025-01-02 11:25:34 +09:00
xuwei-k
580722994a
use foreach instead of map
2025-01-01 16:42:25 +09:00
xuwei-k
f255c38892
use toIntOption instead of scala.util.Try
2024-12-30 13:13:53 +09:00
Eugene Yokota
3d86f30837
Merge branch '1.10.x' into wip/merge-1.10.x
2024-12-16 03:20:10 -05:00
xuwei-k
f11d9d76f0
remove more implicit. use given and using
2024-11-18 14:39:00 +09:00
xuwei-k
d193c990d1
remove implicit params. change to using
2024-11-18 06:49:22 +09:00
friendseeker
c47d01738f
Remove jansi from WindowsInputStream
2024-11-07 22:08:00 -08:00
Friendseeker
b621db683c
Remove jansi from WindowsInputStream
2024-11-07 19:15:13 -08:00
xuwei-k
07ae450e14
delete deprecated methods
2024-11-04 17:26:55 +09:00
Friendseeker
828dc04808
Migrate all usages of System.console == null
2024-10-28 18:25:16 -07:00
Eugene Yokota
56941dac04
refactor: Update Scala 3 syntax
2024-10-27 23:55:30 -04:00
Eugene Yokota
14f7d29afc
Contraband 0.7.0
2024-10-27 16:21:18 -04:00
xuwei-k
ec70bae39a
use extension instead of implicit class
2024-10-23 07:05:38 +09:00
Friendseeker
0e85726858
Use JNI to replace deprecated Jansi & JNA
2024-10-22 13:05:20 -07:00
xuwei-k
6bf5b8b30f
Update contraband sources
2024-10-18 20:34:44 +09:00
xuwei-k
cfb9ffea95
remove deprecated [this] qualifier
...
https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html
2024-10-03 21:16:48 +09:00
Eugene Yokota
c81d269ed2
Merge branch '1.10.x' into wip/merge-1.10.x
2024-05-07 04:39:25 -04:00
Stefan Zeiger
da79479ff7
Fix logging of raw strings
...
sbt passes raw string messages in `ConsoleAppenderFromLog4J` to `StringFormatterMessageFactory`. This is wrong because these strings are pre-formatted and should not be processed again for formatting. There is no way to pass parameters to them anyway. This causes problems when the raw strings contain characters that `StringFormatterMessageFactory` wants to interpret.
For example, when using `-Ystatistics`:
```
ERROR StatusConsoleListener Unable to format msg: nscprofiling : 1 spans, ()7.543ms (0.3%)
java.util.UnknownFormatConversionException: Conversion = ')'
at java.base/java.util.Formatter.checkText(Formatter.java:2732)
at java.base/java.util.Formatter.parse(Formatter.java:2718)
at java.base/java.util.Formatter.format(Formatter.java:2655)
at java.base/java.util.Formatter.format(Formatter.java:2609)
at java.base/java.lang.String.format(String.java:2938)
at org.apache.logging.log4j.message.StringFormattedMessage.formatMessage(StringFormattedMessage.java:121)
at org.apache.logging.log4j.message.StringFormattedMessage.getFormattedMessage(StringFormattedMessage.java:89)
at sbt.internal.util.Appender.$anonfun$appendMessage$1(ConsoleAppender.scala:522)
...
```
2024-05-02 18:31:23 +02:00
Adrien Piquerez
369e647008
Fix scala 2 compat with -Xsource:3 and scala-collection-compat
2024-03-05 13:32:15 +01:00
Adrien Piquerez
0458e8063d
Adapt -Wunused
2024-03-05 11:23:00 +01:00
Adrien Piquerez
c15a4031a9
Fix or mute warnings
2024-03-05 10:39:00 +01:00
Adrien Piquerez
5425e066a0
Fix SbtRefactorings
2024-02-13 14:01:26 +01:00
Matthias Kurz
2d7f087753
Add missing logger methods that take Java Supplier
2023-12-05 10:15:51 +01:00
Adrien Piquerez
ba6daf1521
Fix deadlock in Terminal init
2023-11-22 15:51:28 +01:00
Adrien Piquerez
1f33b27b03
Deactivate cross-compilation except for utils
...
Lower util projects are used by LM and Zinc
2023-11-22 11:51:15 +01:00
Adrien Piquerez
73e3b43683
Introduce util-core to cross-compile util-logging
2023-11-14 11:43:12 +01:00
Heikki Vesalainen
c07ee8411e
JLine 3.24.1 and JAnsi 2.4.0.
2023-11-01 21:25:24 +02:00
Martin Duhem
f03320047e
Keep logger names in hash set
...
Previously, the list of logger names that have been created in a given
context with Log4J was being kept in a `Vector`. As a result, subsequent
calls to `logger` on a `Log4JLoggerContext` with the same logger name
would introduce duplicates in the list. Note that Log4J's logger
configuration would not allow duplicates, and only one configuration
object for a given logger name will exist. The duplicates in the list of
logger names are therefore unnecessary.
With this patch, the logger names will be kept in a `HashSet`.
Since the logger names are only used to remove the logger configurations
after the logger context is closed, and the logger configurations
contain no duplicates, removing duplicate logger names should not cause
any issue.
2023-09-25 17:40:12 +02:00
xuwei-k
6c032b8283
some trivial refactoring
...
- remove unused type params
- use `withFilter` if possible
- use `collectFirst` instead of `collect` and `headOption`
- use `length` instead of `size` if `Array` or `String`
- use `foreach` instead of `map`
2023-06-25 08:57:41 +09:00
xuwei-k
2edb4dcbb6
fix typo
2023-06-24 20:05:52 +09:00
Julien Richard-Foy
72bfb3f45a
Transfer copyright to Scala Center
2023-06-20 16:39:07 +02:00
Andrzej Ressel
4cf2b7269d
Cache echoEnabled
2023-06-03 22:44:19 +02:00
Eugene Yokota
9d87f3f596
Add concrete impl for Action
2023-05-14 14:06:46 -04:00
Eugene Yokota
51591bde5b
Make new more interactive
...
If the terminal supports ANSI control sequence,
this displays the template list in an interactive way.
The focused template is rendered reversed,
and arrow key can be used to move the focus up/down.
2023-05-06 20:07:47 -04:00
Adrien Piquerez
da4ce68142
Fix dead lock between LoggerContext and Terminal
2023-03-28 14:08:15 +02:00
Eugene Yokota
e5dd518deb
Adjust to changes in develop branch
2023-01-16 00:23:05 -05:00
Eugene Yokota
0a38e296ad
Update Scalafmt
2023-01-15 23:43:19 -05:00
Eugene Yokota
50b062b795
Port util-logging
2023-01-15 23:40:57 -05:00