Hi,
Yesterday I upgraded my system to 2.4.0 M4.
I noticed that when I use VS Code with the OpenHAB extension it causes a reboot of my OpenHAB instance when I close VS Code.
I’m running on a Windows Server 2012 OS. Also VS Code is running on the same system.
The installed Java version is JDK 8 Update 181, 64 bit.
When I disable LSP in the settings of the extension, the problem does not occur.
I tried to enable some TRACE logging on al related LSP components in OpenHAB but I couldn’t find anything usefull in the log files:
- org.eclipse.lsp4j
- org.eclipse.smarthome.model.lsp
- org.eclipse.lsp4j.jsonrpc
The only thing I saw in the log file is:
2018-09-26 21:15:04.133 [DEBUG] [thome.model.lsp.internal.ModelServer] - Going to wait for a client to connect
2018-09-26 21:15:04.151 [DEBUG] [thome.model.lsp.internal.ModelServer] - Client /127.0.0.1:65071 connected
2018-09-26 21:15:05.035 [DEBUG] [el.lsp.internal.MappingUriExtensions] - Identified client workspace as 'file:///c:/OpenHAB/conf'
2018-09-26 21:15:05.037 [TRACE] [el.lsp.internal.MappingUriExtensions] - Going to map path file:///C:/OpenHAB/conf
2018-09-26 21:15:05.038 [TRACE] [el.lsp.internal.MappingUriExtensions] - Mapped path file:///c:/OpenHAB/conf to file:///C:/OpenHAB/conf/
2018-09-26 21:15:15.709 [TRACE] [el.lsp.internal.MappingUriExtensions] - Going to map path file:///C:/OpenHAB/conf/rules/entertainment.rules
2018-09-26 21:15:15.710 [TRACE] [el.lsp.internal.MappingUriExtensions] - Mapped path file:///c:/OpenHAB/conf/rules/entertainment.rules to file:///C:/OpenHAB/conf/rules/entertainment.rules
2018-09-26 21:15:16.033 [TRACE] [el.lsp.internal.MappingUriExtensions] - Going to map path file:///C:/OpenHAB/conf/rules/entertainment.rules
After this I only see OpenHAB restarting:
2018-09-26 21:16:15.281 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Modbus manager activated
2018-09-26 21:16:15.833 [DEBUG] [org.eclipse.lsp4j.jsonrpc ] - BundleEvent STARTING - org.eclipse.lsp4j.jsonrpc
2018-09-26 21:16:15.835 [DEBUG] [org.eclipse.lsp4j.jsonrpc ] - BundleEvent STARTED - org.eclipse.lsp4j.jsonrpc
2018-09-26 21:16:16.216 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-09-26 21:16:17.649 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring XXX.XXX.XXX.1
2018-09-26 21:16:18.450 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring XXX.XXX.XXX.1
2018-09-26 21:16:19.096 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://XXX.XXX.XXX.101:8080
2018-09-26 21:16:19.097 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://XXX.XXX.XXX.XXX:8443
I don’t where else to look for a solution.
Greetings,
Frederic