Comments (10)
看起来是解析时候错了,我们回头改一下~感谢小伙伴!
from srpc.
这个好像是我们解析器没有做赋初值的解析。另外还有个const xxx=xxx 也不支持。
我们这边可能要等元旦之后才有人手修复这个问题。
from srpc.
这里有个疑问补充一下哈,这里将thrift语法中enum枚举类型转换为int32是出于什么目的呢?
虽说枚举类型可以强转为int32,但是下图中原生thrift框架生成的桩代码并没有将枚举类型用int32替代
from srpc.
@hihybin
麻烦看看enum这个我们这么处理对不对。
from srpc.
猜测这里用int32_t是为了实现简单些,thrift协议里会把enum作为int32_t处理,这里写int32_t不会对协议造成影响,暂时就不修改了
from srpc.
我重新提了这个parser的修改PR了。
from srpc.
printer改的不多,应该大佬直接拷贝一下就没问题了
from srpc.
@qchenzi 麻烦重新pull一下代码然后重新提一下pr哈~thrift语法你比较熟,printer你来改比较合适的~
from srpc.
@qchenzi 我把printer也提交了。在你的基础上做了点修改。
from srpc.
好的哈,之前事情多给搞忘了
from srpc.
Related Issues (20)
- 支持UNIX Domain socket吗? HOT 6
- client端访问status code 103 HOT 1
- vs找不到unistd.h文件 HOT 5
- 关于压缩的问题 HOT 2
- problem HOT 29
- New versions of GTest use C++14 HOT 8
- Have Conan package? HOT 1
- crt detected that the application wrote to memory after end of heap buffer HOT 4
- 🎉 srpc tools: simple generator for building Workflow and SRPC projects
- cross compile problem HOT 12
- compile problem HOT 14
- srpc_generator.exe无法使用 HOT 3
- does one service support multi function HOT 7
- Android compile problem HOT 20
- MacOS下链接找不到protobuf HOT 9
- srpc搭建http服务时, 回包如何通过JsonPrintOptions设置打印格式 HOT 4
- 要求CMake找到一个由“Snappy”提供的包配置文件,但是 CMake没有找到。 HOT 6
- docs/wiki.md第二章图片有误 HOT 1
- Srpc无法正确生成官方hbase.thrift的srpc客户端 HOT 24
- Support in API testing tool linuxsuren/api-testing HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srpc.