-
Notifications
You must be signed in to change notification settings - Fork 314
SKCore: allow non python build servers #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Looks good to me but I’d be interested to know what your use case for this ise. |
@ahoppen we are using a build server to integrate language server with Buck and would like to be more flexible with languages choices, in particular we are going to write the build server in Typescript. |
Ah, makes sense. I somehow misread “build server” as “language server” and wondered how you wanted to use this to integrated SourceKit-LSP with another LSP server. Makes total sense now that I read it again. |
@swift-ci Please test |
CI failed with the following error
Could you take a look what’s going wrong here? |
throw BuildServerTestError.executableNotFound("python3") | ||
} | ||
|
||
serverPath = interpreterPath | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't realize that this was in SKCore, this makes sense. I thought that this was a test-only method, which would be fine to assume that the build server would never be an executable.
@ahoppen I missed dot in comparison of files extension and had "py" instead of ".py", I fixed it. |
@swift-ci Please test |
The commit 7910520 made build servers Python only. This pull requests adjusts server handling logic to use python interpreter only for the scripts with ".py" extension.