SolaWing / xcode-build-server

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

Monitoring changes and transparency/echo mode #24

Closed konrad1977 closed 7 months ago

konrad1977 commented 7 months ago

First of all, this is my life saver for continue using Emacs, thanks!

  1. I usually automate my builds in Emacs and parses the warnings/errors directly from the output from Xcodebuild. I would love to have a transparency/echo mode from xcode-build-server parse that just echoes back everything from xcodebuild so I can continue to do both parsing while I am compiling and updating the BSP .compile file.
  1. Would be nice to have a tool that detect changes in the rootfolder and subfolders and automatically runs an Xcodebuild and updates the indices for BSP. So we get some kind of background indexing. I think this is possible within emacs, but it would be nice to have for every user not just emacs users.
SolaWing commented 7 months ago

I'm glad this project was useful to you. For your question, yaroslavyaroslav has the same idea as you, see #21 and #22.

For your first need, Although it is convenient to have the -transparency or -quiet option, currently it can be achive by shell, eg: xcodebuild ... | tee build.log; xcode-build-server parse -a build.log 1>/dev/null 2>&1.

konrad1977 commented 7 months ago

Ah I see, I must try to integrate this then. Thanks.

konrad1977 commented 7 months ago

Nice, but it doesn't detect changes in the project right now and recompiles the project right?

SolaWing commented 7 months ago

if you mixed xcode build from ui, and xcodebuild from cli, the build cache maybe invalidate and recompile your code. I also want to know what xcodebuild params are compatible with xcode build from ui