SolaWing / xcode-build-server

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

Support for Xcode 15.3 #44

Closed wojciech-kulik closed 8 months ago

wojciech-kulik commented 8 months ago

It looks like xcode-build-server doesn't work with Xcode 15.3:

2024-03-06 01:55:54.640 xcodebuild[96558:26618928]  DVTPlugInQuery: Requested but did not find extension point with identifier 'Xcode.InterfaceBuilderBuildSupport.PlatformDefinition'. This is programmer error; code should only request extension points that are defined by itself or its dependencies.
find root: /Users/wkulik/Library/Developer/Xcode/DerivedData/MyProj-adasdasdadasd
updated buildServer.json
[START][2024-03-06 01:58:28] LSP logging initiated
[ERROR][2024-03-06 01:58:28] .../vim/lsp/rpc.lua:784    "rpc"   "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"  "stderr"    "INFO:root:Xcode Build Server Startup. Waiting Request...\n"
SolaWing commented 8 months ago

can you give the detail error with SOURCEKIT_LOGGING=3?

wojciech-kulik commented 8 months ago

Could you release the new version to Homebrew?

SolaWing commented 8 months ago

@wojciech-kulik newest head is ok? is the same reason as #40? if newest head is ok I will release a new formal release

wojciech-kulik commented 8 months ago

It's started working now. Not sure what changed, maybe cleaning everything fixed it. I will be testing it, but config still prints this issue:

 2024-03-06 12:50:10.459 xcodebuild[29472:27611384]  DVTPlugInQuery: Requested but did not find extension point with identifier 'Xcode.InterfaceBuilderBuildSupport.PlatformDefinition'. This is programmer error; code should only request extension points that are defined by itself or its dependencies.

not sure if it's a problem or not.

SolaWing commented 8 months ago

seems your error is Loading the standard library failed. #40 is this error message too. but it's case by unable parse log can use the default flags. you log show you has correct flags, not the wrong default...

Requested but did not find extension point with identifier 'Xcode.InterfaceBuilderBuildSupport.PlatformDefinition this is a known issue output by xcodebuild. it just a warning as long as buildServer.json generated. In newest head, I should already silence this warnning.

Almaz5200 commented 8 months ago

I can confirm that switching from Homebrew version to latest head fixed the issue for me (although not instantly, I just let it sit for a few minutes after cleaning and rebuilding and randomly diagnostics started to show up)

SolaWing commented 8 months ago

Maybe xcode 15.3 build update flags and need to rebuild and refresh flags?

wojciech-kulik commented 8 months ago

Maybe, I think it started working after a clean build from Xcode. You can release to Homebrew what you already have. I don't experience this issue anymore.

SolaWing commented 8 months ago

I have push a new release https://github.com/SolaWing/xcode-build-server/releases/tag/v1.0.1 to master. brew pr: https://github.com/Homebrew/homebrew-core/pull/165315