Skip to content

Commit

Permalink
Bump hylo
Browse files Browse the repository at this point in the history
  • Loading branch information
koliyo committed Dec 8, 2023
1 parent c8c40c7 commit ff356c1
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:

- name: Build and copy support library
run: |
clang -c ./Library/Hylo/LibC.c -o HyloLibC.lib
clang -c ./StandardLibrary/Sources/LibC.c -o HyloLibC.lib
xcopy HyloLibC.lib c:\program" "files\microsoft" "visual" "studio\2022\enterprise\vc\tools\msvc\${{ env.VCToolsVersion }}\lib\x64\
working-directory: hylo

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ jobs:
# name: hylo-lsp-artifacts-common
# path: |
# LICENSE
# hylo/Library/Hylo
# hylo/StandardLibrary/Sources

2 changes: 1 addition & 1 deletion .github/workflows/publish-release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
set -eo pipefail
git -C hylo rev-parse HEAD > ref
cp -Rp hylo/Library/Hylo hylo-stdlib
cp -Rp hylo/StandardLibrary/Sources hylo-stdlib
mkdir -p release-artifacts
# tar -zcvf release-artifacts/hylo-stdlib.tar.gz hylo-stdlib
zip -r release-artifacts/hylo-stdlib.zip hylo-stdlib ref
Expand Down
7 changes: 5 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
url = https://github.com/koliyo/hylo.git
[submodule "swift-unisocket"]
path = swift-unisocket
url = https://github.com/seznam/swift-unisocket.git
url = https://github.com/koliyo/swift-unisocket.git
[submodule "JSONRPC-DataChannel-UniSocket"]
path = JSONRPC-DataChannel-UniSocket
url = https://github.com/koliyo/JSONRPC-DataChannel-UniSocket.git
[submodule "JSONRPC"]
path = JSONRPC
url = https://github.com/ChimeHQ/JSONRPC.git
url = https://github.com/koliyo/JSONRPC.git
[submodule "hylo-vscode-extension"]
path = hylo-vscode-extension
url = https://github.com/koliyo/hylo-vscode-extension.git
[submodule "Swifty-LLVM"]
path = Swifty-LLVM
url = https://github.com/koliyo/Swifty-LLVM.git
2 changes: 1 addition & 1 deletion LanguageServerProtocol
Submodule LanguageServerProtocol updated 25 files
+14 −1 .github/workflows/ci.yml
+4 −0 .spi.yml
+2 −19 Package.swift
+25 −16 README.md
+0 −12 Sources/LSPServer/Server.ClientConnection.swift
+0 −3 Sources/LSPServer/Server.ErrorHandler.swift
+0 −39 Sources/LSPServer/Server.EventDispatcher.swift
+0 −2 Sources/LSPServer/Server.EventHandler.swift
+0 −328 Sources/LSPServer/Server.JSONRPCClientConnection.swift
+0 −138 Sources/LSPServer/Server.NotificationHandler.swift
+0 −225 Sources/LSPServer/Server.RequestHandler.swift
+46 −0 Sources/LanguageServerProtocol/Additions/AsyncStreamPolyfill.swift
+0 −45 Sources/LanguageServerProtocol/AsyncStreamPolyfill.swift
+2 −2 Sources/LanguageServerProtocol/Client/JSONRPCServerConnection.swift
+1 −2 Sources/LanguageServerProtocol/Client/MockServer.swift
+29 −1 Sources/LanguageServerProtocol/Client/ServerConnection.swift
+1 −1 Sources/LanguageServerProtocol/Framing/AsyncByteSequence.swift
+1 −1 Sources/LanguageServerProtocol/Framing/AsyncMessageFramingSequence.swift
+2 −11 Sources/LanguageServerProtocol/Framing/DataChannel+MessageFraming.swift
+1 −5 Sources/LanguageServerProtocol/Framing/MessageFraming.swift
+7 −1 Sources/LanguageServerProtocol/LanguageFeatures/Diagnostics.swift
+26 −0 Sources/LanguageServerProtocol/LanguageFeatures/TypeHeirarchy.swift
+115 −2 Sources/LanguageServerProtocol/LanguageServerProtocol.swift
+4 −4 Tests/LanguageServerProtocolTests/AsyncMessageFramingSequenceTests.swift
+0 −1 Tests/LanguageServerProtocolTests/ServerTests.swift
22 changes: 20 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@
"version" : "0.9.0"
}
},
{
"identity" : "languageserver",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ChimeHQ/LanguageServer",
"state" : {
"branch" : "main",
"revision" : "00fdfd9fad8e24d1669af01241436588a035a14a"
}
},
{
"identity" : "languageserverprotocol",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ChimeHQ/LanguageServerProtocol",
"state" : {
"revision" : "d4b9a4e327ba07366d1f56464c1d6365b77418dd",
"version" : "0.11.0"
}
},
{
"identity" : "processenv",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -86,8 +104,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41",
"version" : "1.3.0"
}
},
{
Expand Down
9 changes: 4 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation

let commonCompileSettings: [SwiftSetting] = [
// .unsafeFlags(["-warnings-as-errors"])
.enableExperimentalFeature("StrictConcurrency")
// .enableExperimentalFeature("StrictConcurrency")
// .unsafeFlags(["-strict-concurrency=complete", "-warn-concurrency"])
]

Expand Down Expand Up @@ -36,11 +36,11 @@ let package = Package(
// .package(url: "https://github.com/crspybits/swift-log-file.git", from: "0.1.0"),
.package(url: "https://github.com/sushichop/Puppy.git", from: "0.7.0"),
// .package(url: "https://github.com/vapor/console-kit.git", from: "4.7.0"),
// .package(url: "https://github.com/ChimeHQ/LanguageServerProtocol", from: "0.10.0"),
.package(url: "https://github.com/ChimeHQ/LanguageServer", branch: "main"),
// .package(url: "https://github.com/ChimeHQ/LanguageClient", from: "0.6.0"),
// .package(url: "https://github.com/ChimeHQ/ProcessEnv", from: "1.0.0"),
// .package(url: "https://github.com/seznam/swift-unisocket", from: "0.14.0"),
.package(path: "./LanguageServerProtocol"),
// .package(path: "./LanguageServerProtocol"),
.package(path: "./LanguageClient"),
// .package(name: "UniSocket", path: "./swift-unisocket"),
// .package(path: "./swift-unisocket"),
Expand All @@ -59,8 +59,7 @@ let package = Package(
.product(name: "Logging", package: "swift-log"),
// .product(name: "FileLogging", package: "swift-log-file"),
"Puppy",
.product(name: "LanguageServerProtocol", package: "LanguageServerProtocol"),
.product(name: "LSPServer", package: "LanguageServerProtocol"),
"LanguageServer",
// "JSONRPC-DataChannel-UniSocket",
// "JSONRPC-DataChannel-Actor",
.product(name: "HyloFrontEnd", package: "hylo"),
Expand Down
8 changes: 4 additions & 4 deletions Sources/hylo-lsp/DocumentProvider.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import JSONRPC
import Foundation
import LanguageServerProtocol
import LSPServer
import LanguageServer
import StandardLibrary
@preconcurrency import Core
import FrontEnd
Expand Down Expand Up @@ -123,7 +123,7 @@ public actor DocumentProvider {
return URL(fileURLWithPath: path)
}
else {
return StandardLibrary.standardLibrarySourceRoot
return StandardLibrary.freestandingLibrarySourceRoot
}
}

Expand Down Expand Up @@ -208,7 +208,7 @@ public actor DocumentProvider {
// We need to replace stdlib files from in memory buffers if they have unsaved changes
if let context = documents[file.url.absoluteString] {
logger.debug("Replace content for stdlib source file: \(file.url)")
return SourceFile(filePath: file.url, withContent: context.doc.text)
return SourceFile(contents: context.doc.text, fileID: file.url)
}
else {
return file
Expand Down Expand Up @@ -401,7 +401,7 @@ public actor DocumentProvider {
}
else {
let url = URL.init(string: uri)!
sourceFiles = [SourceFile(filePath: url, withContent: context.doc.text)]
sourceFiles = [SourceFile(contents: context.doc.text, fileID: url)]
}

context.astTask = Task {
Expand Down
2 changes: 1 addition & 1 deletion Sources/hylo-lsp/HyloServer.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import JSONRPC
import LanguageServerProtocol
import LSPServer
import LanguageServer
import Foundation
import Semaphore

Expand Down
2 changes: 1 addition & 1 deletion Tests/hylo-lspTests/HyloServerTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import XCTest
import JSONRPC
import LanguageServerProtocol
import LSPServer
import LanguageServer
import Logging
import Puppy

Expand Down
2 changes: 1 addition & 1 deletion build-and-install-vscode-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BUILD_DIR=$(swift build -c release --show-bin-path)
DIST_DIR=hylo-vscode-extension/dist
rm -rf $DIST_DIR
mkdir -p $DIST_DIR
cp -Rp hylo/Library/Hylo $DIST_DIR/hylo-stdlib
cp -Rp hylo/StandardLibrary/Sources $DIST_DIR/hylo-stdlib
mkdir -p $DIST_DIR/bin/
cp -fv $BUILD_DIR/hylo-lsp-server $DIST_DIR/bin/
PUBLISHED_AT=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
Expand Down
2 changes: 1 addition & 1 deletion hylo
Submodule hylo updated 107 files
2 changes: 2 additions & 0 deletions setup-env.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set xcode_bin_path $(dirname $(xcodebuild -find clang))
fish_add_path $xcode_bin_path

0 comments on commit ff356c1

Please sign in to comment.