Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported messages undefined #31

Open
BlakeMScurr opened this issue Jun 14, 2018 · 24 comments
Open

Imported messages undefined #31

BlakeMScurr opened this issue Jun 14, 2018 · 24 comments

Comments

@BlakeMScurr
Copy link

Yoyoyo wassa,

I'm getting red underlining on perfectly valid messages if they're imported from other protobuf files. Not a hugely big deal, but has anyone else hit this?
screen shot 2018-06-14 at 5 13 46 pm
screen shot 2018-06-14 at 5 14 01 pm

@zxh0
Copy link
Owner

zxh0 commented Jun 16, 2018

Hi @BlakeMScurr , could you upload a minimized demo/folder to let me reproduce your problem?

@RoarkeRandall
Copy link

I've noticed if I have two proto files in the same directory:

rpc/service.proto
rpc/messages.proto

where service.proto imports messages.proto like this:

import "messages.proto"

the extension will give an error, but generating the proto works fine.

if I change the import to:

import "rpc/messages.proto"

the extension will give no errors, but the proto generation will fail.

@yurishkuro
Copy link

I am having the same issue, have two files in the repository

model/proto/model.proto
model/proto/api_v2.proto

where the 2nd file has import "model.proto";, but the types imported that way are not recognized by the extension. I tried @RoarkeRandall's workaround of importing from a directory, e.g. import "proto/model.proto"; and import "model/proto/model.proto";, but no luck.

How does the extension resolve import paths anyway?

@RoarkeRandall to make your protoc run succeed you just need to give it the import directory via -I, so that rpc/messages.proto is a valid path. No idea why adding rpc/ helps with the extension error.

@dylan-bourque
Copy link

I'm having the same problem.

In messages.proto:

...
package mymessages;

message Request {
   ...
}

message Response {
   ...
}

In service.proto (in the same folder):

...
import "messages.proto";
package myservice;
service MyService {
   rpc MyMethod(mymessages.Request) return (mymessages.Response) {}
}

Both mymessages.Request and mymessages.Response have a red underline in the editor. The protoc ... command succeeds and generates correct, runnable code.

I tried various combinations of package names between the files and the messages in the included file always show as undefined.

@zxh0
Copy link
Owner

zxh0 commented Jul 16, 2018

Thank you for these feedbacks, I will arrange some time to fix this issue 😊

@huan
Copy link

huan commented Jul 24, 2018

@zxh0 Thanks for your great vscode plugin for protocol buffers first.

I had run into this issue today, and hope it could be solved soon because it will really help when we are designing the protocol buffers in different files.

@zxh0
Copy link
Owner

zxh0 commented Jul 27, 2018

Hi @zixia @dylan-bourque @yurishkuro @RoarkeRandall , very sorry for the slow response time.
Could you please upload some folder with problem .proto files (better with the settings.json file inside it) to let me easily reproduce this problem? thank you very much.

I have uploaded a folder to demonstrate @RoarkeRandall 's case (can not reproduce the problem), bellow is the foder structure and .vscode/settings.json & proto files:

.
├── .vscode
│   └── settings.json
└── rpc
    ├── messages.proto
    └── service.proto
// settings.json
{
    "protoc": {
        "path": "/usr/local/bin/protoc",
        "options": [
            "--proto_path=rpc",
            "--java_out=gen/java"
        ]
    }
}
// messages.proto
syntax = "proto3";

package rpc;

message MyReq {
  int32 field1=1;
}

message MyResp {
  int32 field1=1;
}
// service.proto
syntax = "proto3";

package rpc;

import "messages.proto";

service MyService {
  rpc foo (MyReq) returns (MyResp);
}

issue31.zip

@zxh0
Copy link
Owner

zxh0 commented Jul 27, 2018

@yurishkuro under the hood, when you save some .proto file, the extension just invokes protoc to compile this file to some temporary directory, and in case of errors, it will parse protoc's output to generate diagnostic information.
the import path is read from .vscode/settings file and passed directly into protoc.

@yurishkuro
Copy link

@zxh0 I added the paths to my settings, like this

    "protoc": {
        "path": "/Users/yurishkuro/bin/protoc",
        "options": [
            "--proto_path=${workspaceRoot}/vendor/github.com/gogo/protobuf",
            "--proto_path=${workspaceRoot}/vendor/github.com/gogo/googleapis",
            "--proto_path=${workspaceRoot}/vendor/github.com/grpc-ecosystem/grpc-gateway",
            "--proto_path=${workspaceRoot}/model/proto"
        ]
    }

That seems to have broken the plugin altogether, as it doesn't highlight real errors anymore. Is there some diagnostic output from the plugin somewhere, e.g. which command it executes, what the errors are?

@huan
Copy link

huan commented Jul 28, 2018

@zxh0

My grpc protocol buffers file can be found at https://github.com/Chatie/grpc/blob/master/protobuf/wechaty-puppet.proto, please feel free to clone the repo and then I believe you can reproduce the followed screen shot after a save operation. (It will not display error if no save operation)

image

Description:

StartRequest & StartResponse are defined in import public "wechaty-puppet/base.proto";

@zxh0
Copy link
Owner

zxh0 commented Jul 31, 2018

@yurishkuro I am afraid ${workspaceRoot} is not well understood by this extension, could you remove it (just leave the relative proto path) and try again?

@zxh0
Copy link
Owner

zxh0 commented Jul 31, 2018

@zixia I could not trigger the error. The folder that I was open is grpc/protobuf.
image
image

@huan
Copy link

huan commented Jul 31, 2018

@zxh0 Thanks for the reply.

Working Version

I had just tested it again and found that it will be ok if you using vscode to open grpc/protobuf.

cd grpc
code protobuf

Not Working Version

However, if you open the repository root, then you can reproduce my problem.

cd grpc
code .

Conclusion

I guess that your code is using the relative path to the vscode opened folder for the import in protobuf file.

However, I believe the relative path in protobuf should based on the folder which contains the protobuf file, which should be grpc/protobuf in my case.

@zxh0
Copy link
Owner

zxh0 commented Jul 31, 2018

@zixia you are welcome 😊
you can make the "not working version" work by adding a settings.json file into grpc/.vscode/, looks like this:

// grpc/.vscode/settings.json
{
  "protoc": {
      "options": [
          "--proto_path=protobuf" // relative to grpc/
      ]
  }
}

@huan
Copy link

huan commented Jul 31, 2018

@zxh0 Thanks, your workaround works like a charm!

My problem had been solved now, however, I'd like to suggest that we should change the source code to get the --proto_path from the __dirname from the proto file.

Thanks again for this great vscode plugin, Cheers!

@yurishkuro
Copy link

@zxh0 I haven't tried relative path or relative settings file, instead tried absolute path, and it didn't work

    "protoc": {
        "path": "/Users/yurishkuro/bin/protoc",
        "options": [
            "--proto_path=/Users/yurishkuro/golang/src/github.com/jaegertracing/jaeger/vendor/github.com/gogo/protobuf",
            "--proto_path=/Users/yurishkuro/golang/src/github.com/jaegertracing/jaeger/vendor/github.com/gogo/googleapis",
            "--proto_path=/Users/yurishkuro/golang/src/github.com/jaegertracing/jaeger/vendor/github.com/grpc-ecosystem/grpc-gateway",
            "--proto_path=/Users/yurishkuro/golang/src/github.com/jaegertracing/jaeger/model/proto"
        ]
    }

Is there a place to see some logs from the plugin? Ideally I would like to see the exact command used to run protoc, it would be much easier to resolve the issues.

@zxh0
Copy link
Owner

zxh0 commented Aug 3, 2018

@yurishkuro I am sorry that the extension failed silently.

Currently, it only parses the proto syntax error that protoc outputed into stderr and ignores other errors, so it is hard to see what really happened.

But the work it did is really simple. When you modify and save a proto file, the extension will collect all --proto_path options from settings.json file (if there is one inside .vscode folder) and then send them with the modified proto file path into protoc to let protoc do the work. Then the extension receives and parses any output from stderr to generate diagnosis information.

So, if you open vscode from jaeger/ , and jaeger/.vscode/settings.json looks like this:

{
    "protoc": {
        "options": [
            "--proto_path=vendor/github.com/gogo/protobuf",
            "--proto_path=vendor/github.com/gogo/protobuf/protobuf",
            "--proto_path=vendor/github.com/gogo/googleapis",
            "--proto_path=vendor/github.com/grpc-ecosystem/grpc-gateway",
            "--proto_path=model/proto",
        ]
    }
}

Then, if you modify and save model/proto/model.proto , the extension will invoke protoc with the following options plus model.proto file:

image

BTW, I cloned jaeger project and locally modified model.proto to let it compile:
image

@yurishkuro
Copy link

@zxh0 this works for me now! Thanks for a great extension.

@johngrogg
Copy link

I've got what I think is the same basic issue, but in the opposite direction. We have a master proto file repo that our various service libraries get built out of. We've decided to have all imports relative to the repo root folder, but I can't figure out how to set the --proto_path value appropriately.

Example folder layouts:

.
├── .vscode
│   └── settings.json
├── service_one
│   ├── messages.proto
│   └── service.proto
└── service_two
    ├── messages.proto
    └── service.proto

An example of the imports for service_one/service.proto would then be:

import "google/api/annotations.proto";
import "google/api/http.proto";
import "google/protobuf/timestamp.proto";
import "service_one/messages.proto";

Any recommendations on the right --proto_path options value?

@zxh0
Copy link
Owner

zxh0 commented Oct 15, 2018

hi @johngrogg just set --proto_path=.
here is a demo, hope it can help you
demo.zip

@Ondraceq
Copy link

Hi.
I'm having similar problem with using Remote - WSL extension.
I can "Go to Definition" of the message type and the imported file, but the message type gives an error, that the type is not defined.
I tried to add the path to the settings and add the "." variant as well. None of these worked for me. The errors have gone away when I specified full path from the workspace directory, but then it wouldn't compile.

Also - I tried it in Windows and it worked just fine - even without specifying anything in the settings.

I understand, that this could be a problem in Remote - WSL, since it's buggy, but the "Go to definition" feature works, so I think it could be solved from your side (but I have no experience writing extensions).

If it cannot be solved by your side - is there an option to turn off the errors? I really like the funtionality your extension has and wouldn't mind if no errors would be shown, but I don't like the red messages it now has.

@lucas860529hz
Copy link

try
"protoc": { "options": [ "--proto_path=${workspaceFolderBasename}" ] }
in vscode global setting.json.
It works for me.

@kjaebker
Copy link

kjaebker commented May 13, 2020

using source relative makes this work for me

"protoc": {
        "options": [
            "--proto_path=source_relative"
        ]
    }

[EDIT: see response below from @nashikb this does not actually work and just causes a silent failure]

huan added a commit to wechaty/grpc that referenced this issue May 14, 2020
@nashikb
Copy link

nashikb commented May 20, 2020

using source relative makes this work for me

"protoc": {
        "options": [
            "--proto_path=source_relative"
        ]
    }

I don't think this is doing what you think it is. Unless your protos are in a directory called "source_relative", I think you're just seeing the tool silently fail to run. paths=source_relative is a --go_out flag, which doesn't seem to be "triggerable" from within vscode-proto3.

The only solution I've found for a proto repo set up as source_relative is to set -Ifoo/bar for all relative paths. Luckily, this seems to be configurable on in a per-workspace-specific setting.json. HIH!

[EDIT: But to be fair, the fact that vscode-proto3 doesn't log with the available VSCode logging methods is a pretty serious issue.]

su-chang added a commit to su-chang/grpc that referenced this issue Mar 9, 2021
* fix: correct spell mistakes

* 0.13.10

* This is a breaking change!

* change python proto package name

* update the version of chatie_grpc

* try to install request (grpc/grpc-node#922 (comment))

* 0.15.2

* add grpc debug client link

* update setup.py to fix pypi bug (wechaty#59)

* update setup to fix pypi bug

* change chatie-grpc generated dir

* 0.15.2

* 0.15.3 (wechaty#60)

* keep the package dir name in site-packages as `chatie_grpc` (wechaty#62)

* 0.15.3

* keep package name as chatie_grpc not chatie-grpc

* 0.15.4 (wechaty#63)

* deploy release jar (wechaty#61)

* fix maven,deploy jar to center oss

* fix maven,deploy jar to center oss

* add java to README.md

* use better relative path for proto_path (zxh0/vscode-proto3#31 (comment))

* 0.15.5

* update pypi install_requires config (wechaty#64)

* 0.15.4

* add install_requires

* 0.15.5

* 0.15.6

* add NOTICE

* 0.13.10

* 0.16.0

* 0.16.1

* Bump @chatie/tsconfig from 0.8.0 to 0.10.1 (wechaty#70)

Bumps [@chatie/tsconfig](https://github.com/Chatie/tsconfig) from 0.8.0 to 0.10.1.
- [Release notes](https://github.com/Chatie/tsconfig/releases)
- [Commits](https://github.com/Chatie/tsconfig/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump grpc_tools_node_protoc_ts from 2.5.11 to 4.0.0 (wechaty#69)

Bumps [grpc_tools_node_protoc_ts](https://github.com/agreatfool/grpc_tools_node_protoc_ts) from 2.5.11 to 4.0.0.
- [Release notes](https://github.com/agreatfool/grpc_tools_node_protoc_ts/releases)
- [Commits](agreatfool/grpc_tools_node_protoc_ts@v2.5.11...v4.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @chatie/git-scripts from 0.2.5 to 0.6.2 (wechaty#68)

Bumps [@chatie/git-scripts](https://github.com/Chatie/git-scripts) from 0.2.5 to 0.6.2.
- [Release notes](https://github.com/Chatie/git-scripts/releases)
- [Commits](https://github.com/Chatie/git-scripts/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Update betterproto (wechaty#46)

* specify python v3

* 0.16.2

* add php rpc (wechaty#76)

* add php grpc

* update usage

* update usage

* update usage

* update

* update usage

* add php rpc

* add PHP Grpc & maintainers

* 0.16.3

* add all codeowners for languages

* 0.16.4

* Bump @chatie/eslint-config from 0.8.1 to 0.12.1 (wechaty#75)

Bumps [@chatie/eslint-config](https://github.com/Chatie/eslint-config) from 0.8.1 to 0.12.1.
- [Release notes](https://github.com/Chatie/eslint-config/releases)
- [Commits](https://github.com/Chatie/eslint-config/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* fix eslint

* 0.16.5

* add php action (wechaty#78)

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* tune layout for source code

* Update README.md

* v0.17

* fix to v0.17

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* fix github url

* 0.16.2

* 0.17.1

* add dirty rpc function definition for sync data (wechaty#79)

* add dirty rpc function definition for sync data

* try to fix tests

* add rpc roomMemberPayloadDirty

* add dirty event type

* revise code according to comments

* modify dirty methods and event

* try to fix build

* modify code according to review

* fix build

* hope this is the final build fix

* this must be the final final build fix

* fix proto naming convention

* change property name according to comment

* Update package.json

* Update package.json

Co-authored-by: Huan (李卓桓) <[email protected]>

* add contact phone rpc call definition (wechaty#80)

* add more methods related to new wechaty-puppept update (wechaty#81)

* add more methods related to new wechaty-puppept update

* fix test

* fix typo and order

* 0.17.3

* fix request structure according to comments

* add phone to contact payload (wechaty#82)

* bump version to publish new changes (wechaty#83)

* add csharp nuget  (wechaty#84)

* proto add csharp namespace

* add  csharp solution

* update

* csharp add  build powshell

* Create csharp.yml

* update csharp.yaml

* update copy.ps1

* add test

* test

* update common.ps1

* test  action args key

* test powshell args

* test github Secrets

* update yaml

* update nuget package as   rohith/publish-nuget@v2

* update version info

* github action add  nuget VERSION_FILE_PATH

* chsarp github action over

* recovery github action

* clear

* update gitgnore

* delete .vs folder

* update README.md for csharp

* README.md update csharp grpc doc

* README.md add nuget introduction

* add file stream and image stream rpc call (wechaty#88)

* add file stream and image stream rpc call

* fix test

* 0.17.5

* add imageType to MessageImageStreamRequest

* add @deprecated to MessageFile and MessageImage rpc

* add change history in readme

* 0.18.0

* Bump grpc_tools_node_protoc_ts from 4.1.5 to 5.0.0 (wechaty#87)

Bumps [grpc_tools_node_protoc_ts](https://github.com/agreatfool/grpc_tools_node_protoc_ts) from 4.1.5 to 5.0.0.
- [Release notes](https://github.com/agreatfool/grpc_tools_node_protoc_ts/releases)
- [Commits](agreatfool/grpc_tools_node_protoc_ts@v4.1.5...v5.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump ts-protoc-gen from 0.12.0 to 0.13.0 (wechaty#86)

Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](improbable-eng/ts-protoc-gen@0.12.0...0.13.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Send message stream (wechaty#89)

* add sendFileStream rpc call

* add sendFileStream into puppet server impl

* add readme

* 0.18.1

* change filebox to data with bytes type

* add name attribute into stream request and response

* Fix go ci (wechaty#91)

* Fix go ci

* Update go.yml

* add go_package

* debug github action

* debug github action

* debug github action

* keep the latest betterproto version (wechaty#92)

* Use metadata (wechaty#93)

* use metadata send extra info, remove extra attributes in stream message

* 0.18.2

* use common message to send FileBox

* rename FileBoxMessage to FileBoxChunk

* use data instead of chunk

* 0.18.3

* Update README.md

* Improve stream message (wechaty#95)

* improve stream message definition

* 0.18.4

* change names

* wip...

* normalize name

* 0.18.5

* normalize name

* 0.18.6

* rename request & responses for more robust

* clean name

* 0.18.7

Co-authored-by: Huan LI (李卓桓) <[email protected]>

* Export file box (wechaty#98)

* export filebox from generated ts file

* 0.18.8

* add some stream notices comments

* 0.18.9

* fix file rename

* 0.18.10

* link to wechaty#99

* 0.18.11

* fix go-grpc generate failed (wechaty#101)

* 0.18.12

* fix .net grpc  for the new file file_box.proto and update TargetFramework to  netstandard2.0 (wechaty#104)

* init openapi

* Rename & Add OpenAPI Specification Generator (wechaty#107)

* rename npm name to wechaty-grpc (wechaty#106)

* add grpc http annotations (wip)

* add grpc gateway image

* add swagger info annotation

* make payload dirty restful

* fix name

* add more restful endpoint definitions

* fix streaming methods

* better protoc tools installer script

* clean openapi scripts

* rename src/index -> src/mod

* generate proto js files with annotation

* 0.19.1

* add gRPC Web example

* 0.19.2

* wechaty-grpc v0.20

* 0.20.1

* lint

* check protoc version to make sure >= 3.5 (wechaty#116)

* test ok

* upgrade all deps

* add more node version for testing

* 0.20.2

* use @master version of github actions, enable cache

* install 3rd party protos

* 0.20.3

* fix npm publish

* 0.20.4

* add openApi & proto for export (wechaty#119)

* add openApi & proto for export

* open-api -> openapi

* 0.20.5

* Pypi rename wechaty grpc (wechaty#118)

* follow latest grpc proto annotations & rename

* deprecate merge-rpoto.sh (wechaty#46)

* install third party proto files

* 0.20.5

* install proto by github actions

* 0.20.6

* add cache for pypi install

* 0.20.7

* use abs path for install

* 0.20.8

* explicit python3 & pip3

* 0.20.9

* 0.20.10

* 0.20.11

* sync swagger version to gRPC

* 0.20.12

* compatible with grpc-dynamic-gateway (konsumer/grpc-dynamic-gateway#50)

* cean

* fix

* 0.20.13

* use proto full path & fix openapi

* 0.20.14

* fix python proto path

* 0.20.15

* add openapi link

* 0.20.16

* a workaround to fix issue wechaty#120

* clean

* 0.20.17

* fix name

* 0.20.18

* specify beta version for install

* 0.20.19

Co-authored-by: Huan (李卓桓) <[email protected]>
Co-authored-by: wj-Mcat <[email protected]>
Co-authored-by: 犀利豆 <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: 一路向北 <[email protected]>
Co-authored-by: Yuan Gao <[email protected]>
Co-authored-by: Darren <[email protected]>
Co-authored-by: 小雨 <[email protected]>
Co-authored-by: Chao Fei <[email protected]>
huan added a commit to wechaty/grpc that referenced this issue Mar 17, 2021
* merge master 0.20.19 (#1)

* fix: correct spell mistakes

* 0.13.10

* This is a breaking change!

* change python proto package name

* update the version of chatie_grpc

* try to install request (grpc/grpc-node#922 (comment))

* 0.15.2

* add grpc debug client link

* update setup.py to fix pypi bug (#59)

* update setup to fix pypi bug

* change chatie-grpc generated dir

* 0.15.2

* 0.15.3 (#60)

* keep the package dir name in site-packages as `chatie_grpc` (#62)

* 0.15.3

* keep package name as chatie_grpc not chatie-grpc

* 0.15.4 (#63)

* deploy release jar (#61)

* fix maven,deploy jar to center oss

* fix maven,deploy jar to center oss

* add java to README.md

* use better relative path for proto_path (zxh0/vscode-proto3#31 (comment))

* 0.15.5

* update pypi install_requires config (#64)

* 0.15.4

* add install_requires

* 0.15.5

* 0.15.6

* add NOTICE

* 0.13.10

* 0.16.0

* 0.16.1

* Bump @chatie/tsconfig from 0.8.0 to 0.10.1 (#70)

Bumps [@chatie/tsconfig](https://github.com/Chatie/tsconfig) from 0.8.0 to 0.10.1.
- [Release notes](https://github.com/Chatie/tsconfig/releases)
- [Commits](https://github.com/Chatie/tsconfig/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump grpc_tools_node_protoc_ts from 2.5.11 to 4.0.0 (#69)

Bumps [grpc_tools_node_protoc_ts](https://github.com/agreatfool/grpc_tools_node_protoc_ts) from 2.5.11 to 4.0.0.
- [Release notes](https://github.com/agreatfool/grpc_tools_node_protoc_ts/releases)
- [Commits](agreatfool/grpc_tools_node_protoc_ts@v2.5.11...v4.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump @chatie/git-scripts from 0.2.5 to 0.6.2 (#68)

Bumps [@chatie/git-scripts](https://github.com/Chatie/git-scripts) from 0.2.5 to 0.6.2.
- [Release notes](https://github.com/Chatie/git-scripts/releases)
- [Commits](https://github.com/Chatie/git-scripts/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Update betterproto (#46)

* specify python v3

* 0.16.2

* add php rpc (#76)

* add php grpc

* update usage

* update usage

* update usage

* update

* update usage

* add php rpc

* add PHP Grpc & maintainers

* 0.16.3

* add all codeowners for languages

* 0.16.4

* Bump @chatie/eslint-config from 0.8.1 to 0.12.1 (#75)

Bumps [@chatie/eslint-config](https://github.com/Chatie/eslint-config) from 0.8.1 to 0.12.1.
- [Release notes](https://github.com/Chatie/eslint-config/releases)
- [Commits](https://github.com/Chatie/eslint-config/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* fix eslint

* 0.16.5

* add php action (#78)

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* add php action

* tune layout for source code

* Update README.md

* v0.17

* fix to v0.17

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* fix github url

* 0.16.2

* 0.17.1

* add dirty rpc function definition for sync data (#79)

* add dirty rpc function definition for sync data

* try to fix tests

* add rpc roomMemberPayloadDirty

* add dirty event type

* revise code according to comments

* modify dirty methods and event

* try to fix build

* modify code according to review

* fix build

* hope this is the final build fix

* this must be the final final build fix

* fix proto naming convention

* change property name according to comment

* Update package.json

* Update package.json

Co-authored-by: Huan (李卓桓) <[email protected]>

* add contact phone rpc call definition (#80)

* add more methods related to new wechaty-puppept update (#81)

* add more methods related to new wechaty-puppept update

* fix test

* fix typo and order

* 0.17.3

* fix request structure according to comments

* add phone to contact payload (#82)

* bump version to publish new changes (#83)

* add csharp nuget  (#84)

* proto add csharp namespace

* add  csharp solution

* update

* csharp add  build powshell

* Create csharp.yml

* update csharp.yaml

* update copy.ps1

* add test

* test

* update common.ps1

* test  action args key

* test powshell args

* test github Secrets

* update yaml

* update nuget package as   rohith/publish-nuget@v2

* update version info

* github action add  nuget VERSION_FILE_PATH

* chsarp github action over

* recovery github action

* clear

* update gitgnore

* delete .vs folder

* update README.md for csharp

* README.md update csharp grpc doc

* README.md add nuget introduction

* add file stream and image stream rpc call (#88)

* add file stream and image stream rpc call

* fix test

* 0.17.5

* add imageType to MessageImageStreamRequest

* add @deprecated to MessageFile and MessageImage rpc

* add change history in readme

* 0.18.0

* Bump grpc_tools_node_protoc_ts from 4.1.5 to 5.0.0 (#87)

Bumps [grpc_tools_node_protoc_ts](https://github.com/agreatfool/grpc_tools_node_protoc_ts) from 4.1.5 to 5.0.0.
- [Release notes](https://github.com/agreatfool/grpc_tools_node_protoc_ts/releases)
- [Commits](agreatfool/grpc_tools_node_protoc_ts@v4.1.5...v5.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Bump ts-protoc-gen from 0.12.0 to 0.13.0 (#86)

Bumps [ts-protoc-gen](https://github.com/improbable-eng/ts-protoc-gen) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/improbable-eng/ts-protoc-gen/releases)
- [Changelog](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CHANGELOG.md)
- [Commits](improbable-eng/ts-protoc-gen@0.12.0...0.13.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Send message stream (#89)

* add sendFileStream rpc call

* add sendFileStream into puppet server impl

* add readme

* 0.18.1

* change filebox to data with bytes type

* add name attribute into stream request and response

* Fix go ci (#91)

* Fix go ci

* Update go.yml

* add go_package

* debug github action

* debug github action

* debug github action

* keep the latest betterproto version (#92)

* Use metadata (#93)

* use metadata send extra info, remove extra attributes in stream message

* 0.18.2

* use common message to send FileBox

* rename FileBoxMessage to FileBoxChunk

* use data instead of chunk

* 0.18.3

* Update README.md

* Improve stream message (#95)

* improve stream message definition

* 0.18.4

* change names

* wip...

* normalize name

* 0.18.5

* normalize name

* 0.18.6

* rename request & responses for more robust

* clean name

* 0.18.7

Co-authored-by: Huan LI (李卓桓) <[email protected]>

* Export file box (#98)

* export filebox from generated ts file

* 0.18.8

* add some stream notices comments

* 0.18.9

* fix file rename

* 0.18.10

* link to #99

* 0.18.11

* fix go-grpc generate failed (#101)

* 0.18.12

* fix .net grpc  for the new file file_box.proto and update TargetFramework to  netstandard2.0 (#104)

* init openapi

* Rename & Add OpenAPI Specification Generator (#107)

* rename npm name to wechaty-grpc (#106)

* add grpc http annotations (wip)

* add grpc gateway image

* add swagger info annotation

* make payload dirty restful

* fix name

* add more restful endpoint definitions

* fix streaming methods

* better protoc tools installer script

* clean openapi scripts

* rename src/index -> src/mod

* generate proto js files with annotation

* 0.19.1

* add gRPC Web example

* 0.19.2

* wechaty-grpc v0.20

* 0.20.1

* lint

* check protoc version to make sure >= 3.5 (#116)

* test ok

* upgrade all deps

* add more node version for testing

* 0.20.2

* use @master version of github actions, enable cache

* install 3rd party protos

* 0.20.3

* fix npm publish

* 0.20.4

* add openApi & proto for export (#119)

* add openApi & proto for export

* open-api -> openapi

* 0.20.5

* Pypi rename wechaty grpc (#118)

* follow latest grpc proto annotations & rename

* deprecate merge-rpoto.sh (#46)

* install third party proto files

* 0.20.5

* install proto by github actions

* 0.20.6

* add cache for pypi install

* 0.20.7

* use abs path for install

* 0.20.8

* explicit python3 & pip3

* 0.20.9

* 0.20.10

* 0.20.11

* sync swagger version to gRPC

* 0.20.12

* compatible with grpc-dynamic-gateway (konsumer/grpc-dynamic-gateway#50)

* cean

* fix

* 0.20.13

* use proto full path & fix openapi

* 0.20.14

* fix python proto path

* 0.20.15

* add openapi link

* 0.20.16

* a workaround to fix issue #120

* clean

* 0.20.17

* fix name

* 0.20.18

* specify beta version for install

* 0.20.19

Co-authored-by: Huan (李卓桓) <[email protected]>
Co-authored-by: wj-Mcat <[email protected]>
Co-authored-by: 犀利豆 <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: 一路向北 <[email protected]>
Co-authored-by: Yuan Gao <[email protected]>
Co-authored-by: Darren <[email protected]>
Co-authored-by: 小雨 <[email protected]>
Co-authored-by: Chao Fei <[email protected]>

* feat: add options to FriendshipAddRequest

* 0.20.20

* fix: bug

* fix: add strong type FriendshipAddOptions for FriendshipAddRequest

* fix: rename attr name

* fix: add optional for FriendshipAddOptions

* fix: use google.protobuf.StringValue for optional

* fix: keep hello as string type, and rename inviter_contact_id and inviter_room_id

* 0.21.2

Co-authored-by: Huan (李卓桓) <[email protected]>
Co-authored-by: wj-Mcat <[email protected]>
Co-authored-by: 犀利豆 <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: 一路向北 <[email protected]>
Co-authored-by: Yuan Gao <[email protected]>
Co-authored-by: Darren <[email protected]>
Co-authored-by: 小雨 <[email protected]>
Co-authored-by: Chao Fei <[email protected]>
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

No branches or pull requests