Skip to content

Commit c918061

Browse files
Merge pull request #8 from mrT23/main
Add support for osx-arm64 for Java and Rust
2 parents c3f0153 + 8e76620 commit c918061

4 files changed

Lines changed: 23 additions & 10 deletions

File tree

src/multilspy/language_servers/eclipse_jdtls/eclipse_jdtls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def setupRuntimeDependencies(self, logger: MultilspyLogger, config: MultilspyCon
150150

151151
os.makedirs(str(PurePath(os.path.abspath(os.path.dirname(__file__)), "static")), exist_ok=True)
152152

153-
assert platformId.value in [
154-
"linux-x64",
155-
"win-x64",
156-
], "Only linux-x64 platform is supported for in multilspy at the moment"
153+
# assert platformId.value in [
154+
# "linux-x64",
155+
# "win-x64",
156+
# ], "Only linux-x64 platform is supported for in multilspy at the moment"
157157

158158
gradle_path = str(
159159
PurePath(

src/multilspy/language_servers/eclipse_jdtls/runtime_dependencies.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
"archiveType": "zip",
1414
"relative_extraction_path": "vscode-java"
1515
},
16-
"darwin-x64": {
16+
"osx-arm64": {
1717
"url": "https://github.com/redhat-developer/vscode-java/releases/download/v1.23.0/java@darwin-x64-1.23.0.vsix",
1818
"archiveType": "zip",
19-
"relative_extraction_path": "vscode-java"
19+
"relative_extraction_path": "vscode-java",
20+
"jre_home_path": "extension/jre/17.0.8.1-macosx-x86_64",
21+
"jre_path": "extension/jre/17.0.8.1-macosx-x86_64/bin/java",
22+
"lombok_jar_path": "extension/lombok/lombok-1.18.30.jar",
23+
"jdtls_launcher_jar_path": "extension/server/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar",
24+
"jdtls_readonly_config_path": "extension/server/config_mac_arm"
2025
},
2126
"linux-arm64": {
2227
"url": "https://github.com/redhat-developer/vscode-java/releases/download/v1.23.0/java@linux-arm64-1.23.0.vsix",

src/multilspy/language_servers/rust_analyzer/runtime_dependencies.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"_description": "Used to download the runtime dependencies for running RustAnalyzer. Obtained from https://github.com/rust-lang/rust-analyzer/releases",
33
"runtimeDependencies": [
4+
{
5+
"id": "RustAnalyzer",
6+
"description": "RustAnalyzer for Linux (x64)",
7+
"url": "https://github.com/rust-lang/rust-analyzer/releases/download/2023-10-09/rust-analyzer-aarch64-apple-darwin.gz",
8+
"platformId": "osx-arm64",
9+
"archiveType": "gz",
10+
"binaryName": "rust_analyzer"
11+
},
412
{
513
"id": "RustAnalyzer",
614
"description": "RustAnalyzer for Linux (x64)",

src/multilspy/language_servers/rust_analyzer/rust_analyzer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ def setup_runtime_dependencies(self, logger: MultilspyLogger, config: MultilspyC
4949
d = json.load(f)
5050
del d["_description"]
5151

52-
assert platform_id.value in [
53-
"linux-x64",
54-
"win-x64",
55-
], "Only linux-x64 and win-x64 platform is supported for in multilspy at the moment"
52+
# assert platform_id.value in [
53+
# "linux-x64",
54+
# "win-x64",
55+
# ], "Only linux-x64 and win-x64 platform is supported for in multilspy at the moment"
5656

5757
runtime_dependencies = d["runtimeDependencies"]
5858
runtime_dependencies = [

0 commit comments

Comments
 (0)