Skip to content

Commit

Permalink
refactor - Remove redundant files (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiaaming authored Aug 6, 2024
1 parent faca9bb commit 21f224f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 176 deletions.
6 changes: 1 addition & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ The extension uses a Gradle plugin (`com.microsoft.gradle.GradlePlugin`) to get
1. Run vscode launch configuration `Debug Gradle Server & Extension`.
2. Run vscode launch configuration `Attach to Gradle Server` when you notice the `Gradle: Connecting...` message in the bottom status bar.

> **Note:** If the "Java: Error" message appears in the bottom status bar and the following error is logged in the `.log` file:
> ```java
> java.lang.NullPointerException: Cannot invoke "ch.epfl.scala.bsp4j.WorkspaceBuildTargetsResult.getTargets()"
> ```
> it indicates that the connection attempt to the Gradle Server was too slow. The [GradleBuildClient](/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/ImporterPlugin.java#L107) requires an active Gradle Server to successfully establish a connection. If you encounter this issue, please retry the connection promptly to avoid this error.
> **Note:** If `[error] Error connecting to gradle server: Failed to connect before the deadline` appears in the `Gradle for Java` output channel, it indicates that the connection attempt to the Gradle Server was too slow. The [GradleBuildClient](/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/ImporterPlugin.java#L107) requires an active Gradle Server to successfully establish a connection. If you encounter this issue, please retry the connection promptly to avoid this error.
## Development Workflow

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions proto/gradle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ service Gradle {
rpc RunBuild(RunBuildRequest) returns (stream RunBuildReply) {}
rpc CancelBuild(CancelBuildRequest) returns (CancelBuildReply) {}
rpc CancelBuilds(CancelBuildsRequest) returns (CancelBuildsReply) {}
rpc GetDaemonsStatus(GetDaemonsStatusRequest) returns (GetDaemonsStatusReply) {}
rpc StopDaemons(StopDaemonsRequest) returns (StopDaemonsReply) {}
rpc StopDaemon(StopDaemonRequest) returns (StopDaemonReply) {}
rpc executeCommand(ExecuteCommandRequest) returns (ExecuteCommandReply) {}
}

Expand Down Expand Up @@ -109,43 +106,6 @@ message CancelBuildsReply {
string message = 1;
}

message GetDaemonsStatusRequest {
string project_dir = 1;
}

message GetDaemonsStatusReply {
repeated DaemonInfo daemon_info = 1;
}

message StopDaemonsRequest {
string project_dir = 1;
}

message StopDaemonsReply {
string message = 1;
}

message StopDaemonRequest {
string pid = 1;
}

message StopDaemonReply {
string message = 1;
}

message DaemonInfo {
enum DaemonStatus {
IDLE = 0;
BUSY = 1;
STOPPED = 2;
STOPPING = 3;
CANCELED = 4;
}
string pid = 1;
DaemonStatus status = 2;
string info = 3;
}

message GradleConfig {
string gradle_home = 1;
string user_home = 2;
Expand Down

0 comments on commit 21f224f

Please sign in to comment.