SolaWing / xcode-build-server

a build server protocol implementation for integrate xcode with sourcekit-lsp
MIT License
424 stars 19 forks source link

LSP root? #28

Closed schwjustin closed 1 year ago

schwjustin commented 1 year ago

Hi, I cloned the repo, ran the ln -s command, and then the config command. I got the Requested but did not find extension point with identifier Xcode error when running the config command but it seemed to work successfully because a buildServer.json file was created at the root of my project directory. I rebuilt in Xcode, restarted VSCode (I use a VSCode fork called Cursor), and Swift autocomplete doesn't seem to be working.

Screenshot 2023-11-06 at 10 25 01 AM Screenshot 2023-11-06 at 10 26 23 AM

What do you mean by LSP root? Should the buildServer.json be somewhere other than the root of my project directory?

buildServer.json:

Screenshot 2023-11-06 at 10 27 32 AM
SolaWing commented 1 year ago

lsp root is the workspace root directory.

can you see swift LSP server log? if you config right, swift LSP server log will output xcode-build-server start. if you export XBSDEBUG=1 when start your editor, you will see more detail logs of xcode-build-server. which may point out why it’s not work

schwjustin commented 1 year ago

Thanks, I got it working!