You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash after updating vscode extension to 1.57.0 #1355
Describe the bug
Visual Studio Code 1.93.1.
OS: Ubuntu 22.04.
the spring tools extension 1.56.0 was working fine, but after updating to 1.57.0 the extension started crashing when i open one of my projects.
PS: my other projects are working fine with the updated version.
I don't know what to make of it yet... Your logging setup seems suspicious...
Statements in the log such as:
22:20:08,470 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
22:20:08,472 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/username/.vscode/extensions/vmware.vscode-spring-boot-1.57.0/language-server/lib/commons-language-server-1.57.0-SNAPSHOT.jar!/logback.xml]
22:20:08,476 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@77cf3f8b - URL [jar:file:/home/username/.vscode/extensions/vmware.vscode-spring-boot-1.57.0/language-server/lib/commons-language-server-1.57.0-SNAPSHOT.jar!/logback.xml] is not of type file
22:20:08,580 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [STDOUT]
22:20:08,581 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
22:20:08,589 |-INFO in ch.qos.logback.core.model.processor.ImplicitModelHandler - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:20:08,614 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to INFO
22:20:08,614 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [STDOUT] to Logger[ROOT]
22:20:08,614 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@1df98368 - End of configuration.
Looks like it is the switch to the new LS JAR layout that surfaced this issue. Seems the new layout would look for config files in the CWD of the process.
The CWD of the LS process is the the workspace root for VSCode and user home directory for Eclipse it is the user.dir property from the running eclipse process, i.e. folder hosting eclipse executable.
This explains the reason for application.yml located in the root folder of the workspace root to affect the LS process logging settings.
Looks as we need to take better care of the CWD for the LS process from now and on.
Activity
BoykoAlex commentedon Sep 22, 2024
I don't know what to make of it yet... Your logging setup seems suspicious...
Statements in the log such as:
Don't think I'm seeing these on my machine...
ahbali commentedon Sep 22, 2024
@BoykoAlex
i might have found how to reproduce the bug:
having an application.yml in the root of the project, where logging.config is set to logback-spring.xml file.
I created a repo with a very simple spring-boot project that reproduces the crash of the extension for me: https://github.com/ahbali/spring-tools-bug
BoykoAlex commentedon Sep 23, 2024
Looks like it is the switch to the new LS JAR layout that surfaced this issue. Seems the new layout would look for config files in the CWD of the process.
The CWD of the LS process is the the workspace root for VSCode and user home directory for Eclipse it is the
user.dirproperty from the running eclipse process, i.e. folder hosting eclipse executable.This explains the reason for
application.ymllocated in the root folder of the workspace root to affect the LS process logging settings.Looks as we need to take better care of the CWD for the LS process from now and on.
BoykoAlex commentedon Sep 23, 2024
Fixed with c2454a8