Skip to content

Conversation

@owenv
Copy link
Contributor

@owenv owenv commented Oct 23, 2025

This will be a sourcekit-lsp dependency starting with swiftlang/sourcekit-lsp#2324, a SwiftPM dependency starting with swiftlang/swift-package-manager#9129, and a swift-build dependency starting with swiftlang/swift-build#782. Update the windows build script accordingly

@owenv
Copy link
Contributor Author

owenv commented Oct 23, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 2e16a23 to 2857499 Compare October 23, 2025 16:06
@owenv
Copy link
Contributor Author

owenv commented Oct 23, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

2 similar comments
@owenv
Copy link
Contributor Author

owenv commented Oct 23, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 23, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

utils/build.ps1 Outdated
-SwiftSDK $SDKROOT `
-BuildTargets default `
-Defines @{
BUILD_SHARED_LIBS = "NO";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a single use library? i.e. does only one product use the library? If not, we should consider the shared version with numbers on the size impact - that is verify that static linking is smaller than the dynamic linking.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's going to get linked into at least two executables, so I will probably end up flipping it to a shared library but I haven't tested it yet

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 2857499 to 57a58c7 Compare October 24, 2025 16:34
@owenv
Copy link
Contributor Author

owenv commented Oct 24, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

4 similar comments
@owenv
Copy link
Contributor Author

owenv commented Oct 24, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 25, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 25, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 25, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 57a58c7 to bdcd59d Compare October 26, 2025 02:25
@owenv
Copy link
Contributor Author

owenv commented Oct 26, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from bdcd59d to a4ac2dc Compare October 26, 2025 17:11
@owenv
Copy link
Contributor Author

owenv commented Oct 26, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from a4ac2dc to 8876942 Compare October 26, 2025 21:00
@owenv
Copy link
Contributor Author

owenv commented Oct 26, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 8876942 to 5d351dd Compare October 27, 2025 03:52
@owenv
Copy link
Contributor Author

owenv commented Oct 27, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 5d351dd to 642d724 Compare October 27, 2025 16:17
@owenv
Copy link
Contributor Author

owenv commented Oct 27, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 27, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from 220b235 to 87ea24c Compare October 28, 2025 00:03
@owenv
Copy link
Contributor Author

owenv commented Oct 28, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 28, 2025

swiftlang/sourcekit-lsp#2324
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\sourcekit-lsp\Sources\SKTestSupport\SkipUnless.swift:437:17: error: cannot find 'LocalConnection' in scope

435 |     return try await shared.skipUnlessSupported(allowSkippingInCI: true, file: file, line: line) {

436 |       let server = try await SourceKitLSPServer(

437 |         client: LocalConnection(receiverName: "client"),

    |                 `- error: cannot find 'LocalConnection' in scope

438 |         toolchainRegistry: .forTesting,

439 |         languageServerRegistry: .staticallyKnownServices,

error: fatalError
Error: Error: swift exited with code 1.

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@owenv owenv force-pushed the owenv/tools-protocols-windows branch 2 times, most recently from f84e347 to a36fe20 Compare October 29, 2025 21:56
@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 29, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\cli.wxi(167): error WIX0103: Cannot find the File file 'T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\BuildServerProtocol.dll'. The following paths were checked: T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\BuildServerProtocol.dll [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\asserts\cli.asserts.wixproj]
         C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\cli.wxi(170): error WIX0103: Cannot find the File file 'T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\LanguageServerProtocol.dll'. The following paths were checked: T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\LanguageServerProtocol.dll [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\asserts\cli.asserts.wixproj]
         C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\cli.wxi(173): error WIX0103: Cannot find the File file 'T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\LanguageServerProtocolTransport.dll'. The following paths were checked: T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\LanguageServerProtocolTransport.dll [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\asserts\cli.asserts.wixproj]
         C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\cli.wxi(176): error WIX0103: Cannot find the File file 'T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\SKLogging.dll'. The following paths were checked: T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\SKLogging.dll [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\asserts\cli.asserts.wixproj]
         C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\cli.wxi(179): error WIX0103: Cannot find the File file 'T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\ToolsProtocolsSwiftExtensions.dll'. The following paths were checked: T:\\Program Files\\Swift\\Toolchains\0.0.0+Asserts\usr\bin\ToolsProtocolsSwiftExtensions.dll [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\cli\asserts\cli.asserts.wixproj]

hmm, we're still failing to find the dlls when we go to build the installer

@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

Build complete! (155.78s)
error: abnormal(309): T:\x86_64-unknown-windows-msvc\SourceKitLSPTests\x86_64-unknown-windows-msvc\release\SourceKitLSPPackageTests.xctest --dump-tests-json output:
    

Error: Error: swift exited with code 1.

tests are now building but crashing

@owenv owenv force-pushed the owenv/tools-protocols-windows branch 3 times, most recently from da862c6 to 5f253a7 Compare October 30, 2025 04:43
@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

@owenv owenv force-pushed the owenv/tools-protocols-windows branch 2 times, most recently from a6399dc to e5ae3c2 Compare October 30, 2025 21:39
@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 30, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 31, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 31, 2025

@owenv owenv force-pushed the owenv/tools-protocols-windows branch from c165f77 to 2c58e28 Compare October 31, 2025 03:25
@owenv
Copy link
Contributor Author

owenv commented Oct 31, 2025

@owenv
Copy link
Contributor Author

owenv commented Oct 31, 2025

@compnerd
Copy link
Member

@swift-ci please build toolchain Windows ARM64 platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants