Closed roxberry closed 3 years ago
Hi @roxberry thank you for reporting. Could you share output of Script Language Server, please?
also potentially, could you try put cartridge path (just copy-paste path from BM) to cartridgesPath
your dw.json
, please?
Script Language Server output (obfuscated client info). This occurs as I type (and I assume as the watch uploads):
[Info - 9:24:21 AM] Client created
[Info - 9:24:21 AM] Actual cartridges: [{"name":"
I have exactly same issue, but it depends on project, it happens only on one where I have non standard SFRA/SG project, as an example I have only cartridges which contains some scripts to customize OCAPI hooks and nothing more, and there I have this issue.
On another project which is based on SFRA all works good, maybe there is some dependencies.
i noticed that not setting, or removing any existing setting, for "extension.prophet.cartridges.path"
from your settings will "fix" the issue. It does so by not starting the Script Language Server in this case.
Same issue in my SG project. I don't have any setting in "extension.prophet.cartridges.path", though.
MORNING VSCode launch --> OK, no problem, but this log in Script Language Server
terminal
[Info - 09:28:51] Client created
[Info - 09:28:51] Actual cartridges: [{"name":"app_sephora_core","fsPath":"c:\\Users\\StephaneBlanchon\\Workspaces\\SEPHORA\\estore-sfcc-sephora\\cartridges\\app_sephora_core"},{"name":"app_sephora_controllers","fsPath":"c:\\Users\\StephaneBlanchon\\Workspaces\\SEPHORA\\estore-sfcc-sephora\\cartridges\\app_sephora_controllers"},{"name":"app_sephora_extended","fsPath":"c:\\Users\\StephaneBlanchon\\Workspaces\\SEPHORA\\estore-sfcc-sephora\\cartridges\\app_sephora_extended"}]
[Info - 09:28:51] Starting client...
Script Server init...
[{"uri":"file:///c%3A/Users/StephaneBlanchon/Workspaces/SEPHORA/estore-sfcc-sephora","name":"estore-sfcc-sephora"},{"uri":"ccfs://current-sandbox/","name":"Sandbox - FileSystem"}]
Diagnostics enabled: false
[Info - 09:28:52] Server Ready
[Info - 09:28:52] Files list =>
got cartridges files list
[Info - 09:28:52] Templates list =>
got cartridges templates list
[Info - 09:28:52] Controllers list =>
[Info - 09:28:52] Properties list =>
[Info - 09:28:52] Configuration done
got cartridges properties list, size: 2
got cartridges properties list, parse time: 1.37]
got cartridges controllers list, parse time: 2.066]
req definition:file:///c%3A/Users/StephaneBlanchon/Workspaces/SEPHORA/estore-sfcc-sephora/cartridges/app_sephora_controllers/cartridge/controllers/OnePageCheckout.js
no definition: 135ms
no completion: 56ms
no completion: 44ms
no completion: 54ms
no completion: 58ms
no completion: 41ms
req definition:file:///c%3A/Users/StephaneBlanchon/Workspaces/SEPHORA/estore-sfcc-sephora/cartridges/app_sephora_core/cartridge/scripts/util/DeliveryUtils.js
no definition: 86ms
no completion: 25ms
no completion: 65ms
AFTERNOON VSCode launch --> KO, each 'CTRL' keytab stroke is followed by a new log line in Script Language Server
terminal
[Info - 17:00:20] Client created
[Info - 17:00:20] Actual cartridges: [{"name":"app_sephora_extended","fsPath":"c:\\Users\\StephaneBlanchon\\Workspaces\\SEPHORA\\estore-sfcc-sephora\\cartridges\\app_sephora_extended"}]
[Info - 17:00:20] Starting client...
Script Server init...
[{"uri":"file:///c%3A/Users/StephaneBlanchon/Workspaces/SEPHORA/estore-sfcc-sephora","name":"estore-sfcc-sephora"},{"uri":"ccfs://current-sandbox/","name":"Sandbox - FileSystem"}]
Diagnostics enabled: false
[Info - 17:00:20] Server Ready
[Info - 17:00:20] Files list =>
got cartridges files list
[Info - 17:00:21] Templates list =>
got cartridges templates list
[Info - 17:00:21] Controllers list =>
[Info - 17:00:21] Properties list =>
[Info - 17:00:21] Configuration done
got cartridges properties list, size: 1
got cartridges properties list, parse time: 1.178]
[Error - 17:02:52] Request textDocument/definition failed.
Message: Unhandled method textDocument/definition
Code: -32601
[Error - 17:03:35] Request textDocument/definition failed.
Message: Unhandled method textDocument/definition
Code: -32601
[Error - 17:04:25] Request textDocument/definition failed.
Message: Unhandled method textDocument/definition
Code: -32601
[Error - 17:13:59] Request textDocument/definition failed.
Message: Unhandled method textDocument/definition
Code: -32601
It's really a f*** pain in the neck !!!
Stéphane
Hi @SBlanchon-Viseo
Thank you for info, but I see no error messages Unhandled method textDocument/definition
in your log
please note: setting extension.prophet.cartridges.path
expected to contain cartridges path like in BM (list of cartridges names), example: app_storefront_controllers:app_storefront_core:bc_library
(simply copypasted from BM) but not file system path to cartridges root.
I updated my previous POST... And just thought about it :
could you update to 1.3.29 (just released) and provide new logs (added few potential places to check), please?
any further info?
on my side issue is not reproducing anymore
Hello @SqrTT , i do not have any problem anymore since i updated Prophet Debugger to 1.3.29 ! Thanks.
Describe the bug When Prophet is enabled, all typing in any file type causes a pop up and the log error:
[Error - 10:25:29 PM] Request textDocument/completion failed. Message: Unhandled method textDocument/completion Code: -32601
To Reproduce Steps to reproduce the behavior:
Expected behavior No error message in Script Language Server output No popup
Desktop (please complete the following information):
Additional context New project has this symptom. Older project does not. Disabled all extensions but Prophet in both workspaces.
New project has "Script Language Server" in the Output. Older project does not have that Output source.
New Project
Older Project