Skip to content

Server fails to rebuild if adding new rpc to .proto file #480

@Mad3DScientist

Description

@Mad3DScientist

Create a server using the following .proto file

syntax = "proto3";
package ni_hal;
//==========================================================================================
// Message Types
//==========================================================================================
message null {}

message mBool {
  bool value = 1;
}

message mDouble {
  double value = 1;
}

//===========================================================================================
//  GRPC SERVICE DEFINITION
//===========================================================================================

// Unless otherwise indicated, distances are in microns, time in milliseconds

service SlowService {
  rpc GetLocation(null) returns (mDouble);               // return current location of motion
}

service FastService {
  rpc Abort(null) returns (mDouble);                     // immediately stop all motion, may require reset afterwards
}

Replace the SlowService in the .proto file with the following

service SlowService {
  rpc GetLocation(null) returns (mDouble);               // return current location of motion
  rpc GetSpace(null) returns (mDouble);
}

Regenerate the server. It will error during creation and no code will be updated.

AB#3491856

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions