bright-engine-54701
11/27/2024, 1:41 PMexperimental-bsp
support, as Intellij 99/100 times have issues with connecting to the BSP server (Problem connecting to BSP server: BSP server is not responding. See IDE log for details.
) when I try to import my pants project and/or reload the BSP projects. Sometimes it works, but I can't understand what I'm doing to make it work.
I've modified .pants.d/bsp/scripts/run-bsp.sh
to start pants
with -ldebug
and have noticed that no Nailgun processes starts even tho the log states 14:28:13.41 [INFO] Initializing Nailgun pool for 24 processes...
when I do BSP reload
in Intellij.
I run linux, specifically nixos
. pants 2.22.1
.
I've tried a lot of things, including:
- Removed ~/.cache/pants
and ~/.cache/nce
- Removed <project root>/.pants.d
and <project root>/.bsp
and re-run pants experimental-bsp
- Removed <project root>/.idea
- Invalidated Intellijs cachebroad-processor-92400
11/27/2024, 8:12 PMbright-engine-54701
11/27/2024, 9:02 PMbright-engine-54701
11/28/2024, 8:09 AMctrl-c
, its intellij (I think):
09:08:17.12 [INFO] _received_inbound_message: msg={'jsonrpc': '2.0', 'id': '1', 'method': 'build/initialize', 'params': {'rootUri': 'file:/home/alex/code/work/backend/', 'displayName': 'IntelliJ-BSP', 'version': '2024.2.25', 'bspVersion': '2.0', 'capabilities': {'languageIds': ['scala', 'java']}, 'data': {'clientClassesRootDir': 'file:/home/alex/code/work/backend/out', 'supportedScalaVersions': []}}}
09:08:17.12 [INFO] _send_outbound_message: msg={'jsonrpc': '2.0', 'id': '1', 'result': {'displayName': 'Pants', 'version': '2.22.1', 'bspVersion': '2.0.0', 'capabilities': {'compileProvider': {'languageIds': ('java', 'scala')}, 'testProvider': {'languageIds': ()}, 'runProvider': {'languageIds': ()}, 'debugProvider': {'languageIds': ()}, 'dependencySourcesProvider': True, 'dependencyModulesProvider': True, 'resourcesProvider': True}}}
09:08:17.12 [INFO] _received_inbound_message: msg={'jsonrpc': '2.0', 'method': '$/cancelRequest', 'params': {'id': '1'}}
09:08:17.12 [WARN] Received cancel notification for unknown message id 1
09:08:17.12 [INFO] _received_inbound_message: msg={'jsonrpc': '2.0', 'id': '2', 'method': 'build/shutdown', 'params': None}
09:08:17.13 [INFO] _send_outbound_message: msg={'jsonrpc': '2.0', 'id': '2', 'result': None}
Interrupted by user:
User interrupted execution with control-c!
bright-engine-54701
11/28/2024, 9:33 AM