summaryrefslogtreecommitdiff
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
...
* go: Fix things staticcheck complains aboutYuxuan 'fishy' Wang2021-08-271-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Client: go Staticcheck is the recommended replacement of the frozen and deprecated official golint linter [1]. Fix the things it complained about (or add lint:ignore directive) in: - lib/go/thrift - lib/go/test/tests - tutorial/go/src - test/go/src - compiler generated code The majority of the fixes are in the following categories: - Use of deprecated function (mainly the TConfiguration related ones) - Redundant break in switch cases - Unused and unexported variables/fields/functions Also in the same spirit as fb539ae, remove the error return from NewTSSLSocket as it can never be non-nil. This change will be cherry-picked into 0.15.0 branch after merged. [1]: https://groups.google.com/g/golang-nuts/c/rCP70Aq_tBc
* Add missing javadocbhalchandrap2021-08-101-6/+7
|
* bump version numberJens Geyer2021-08-031-1/+1
|
* THRIFT-4797: Go import improvementsYuxuan 'fishy' Wang2021-08-011-6/+42
| | | | | | | | | | | | | | | | This change improves two problems in go code imports: 1. Always rename import the thrift package into "thrift", as we allow the user to use a different library to replace the official one from the compiler command line, this makes sure that in compiler generated go code we can always blindly use "thrift.*". 2. We added auto rename import dedup in d9019fc5a4, but in that change for system packages we always use the full import path as the dedup identifier, so system package "database/sql/driver" would not be detected as a conflict against a thrift go namespace of "foo.bar.driver". Use the part after the last "/" in system packages as the dedup identifier instead.
* THRIFT-5445 "cancellationToken" cannot be used as argument nameJens Geyer2021-08-012-109/+117
| | | | | Client: netstd Patch: Jens Geyer
* THRIFT-5444 Netstd generator produces uncompileable code for enums ending ↵Jens Geyer2021-08-012-62/+26
| | | | | | | | | with "_result" or "_args" Client: netstd Patch: Jens Geyer This closes #2424
* THRIFT-5389: Fix const generation for optional fieldsYuxuan 'fishy' Wang2021-07-301-10/+58
| | | | | | | | | Client: go The current compiler will generate uncompilable code when we use optional enum and/or typedef'd types in a thrift constant. This fixes the issue, also adds a test for that.
* THRIFT-5442 Separate client service calls into send/recv methods and make ↵Jens Geyer2021-07-242-63/+91
| | | | | | | them public Client: netstd Patch: Jens Geyer
* THRIFT-5439 Lua Generator does not support const i64hkb2021-07-171-1/+1
| | | | | | | Client: lua Patch: Kaibin Huang This closes #2413
* Small bug in Rust generated code for writing container typesAlephAlpha2021-07-091-3/+3
|
* THRIFT-5438 Inconsistent handling of exceptions during message read vs. ↵Jens Geyer2021-07-021-7/+7
| | | | | | | message write phase Client: Delphi Patch: Jens Geyer
* THRIFT-3508 Map optional fields from thrift idl to optional fields in ↵Axel Jäger2021-05-201-7/+3
| | | | | | | | | TypeScript. Client: node,js Patch: Axel Jäger This closes #2386
* THRIFT-5417 Fix Lua compiler omitting default values in Lua service functionsJeffrey Han2021-05-201-1/+15
| | | | | | | Client: Lua Patch: Jeffrey Han This closes #2394
* THRIFT-5414 Use of specific parameter names generates uncompileable codeJens Geyer2021-05-151-56/+72
| | | | | Client: netstd Patch: Jens Geyer
* THRIFT-5408 Support for deprecated/obsolete methods (via annotation)Jens Geyer2021-05-052-0/+44
| | | | | | | Client: netstd Patch: Jens Geyer This closes #2381
* THRIFT-5396 deprecate "Async" method postfixJens Geyer2021-04-102-16/+96
| | | | | | | Client: netstd Patch: Jens Geyer This closes #2374
* THRIFT-5395 inconsistent treatment of methods ending in "Async"Jens Geyer2021-04-101-18/+7
| | | | | | | Client: netstd Patch: Jens Geyer This closes #2372
* THRIFT-5393 Incorrect namespaces for included typesJens Geyer2021-04-091-20/+27
| | | | | | | Client: hx Patch: Jens Geyer This closes #2370
* THRIFT-5341 Old-Style-Cast & missing OverrideKashirin Alex2021-03-291-40/+134
| | | | | | | Client: cpp Patch: Kashirin Alex This closes #2318
* THRIFT-5382 Netstd default list/set enums values are generated incorrectlyThomas2021-03-271-1/+1
| | | | | | | Client netstd Patch: Thomas Bruggink This closes #2364
* THRIFT-5381 possible collisions at VOID type with some 3rd-party libraries ↵Jens Geyer2021-03-271-1/+1
| | | | | | | on Haxe cpp targets Client: hx Patch: Jens Geyer
* THRIFT-5377 Remove Erlang R16 supportSergey Yelin2021-03-261-2/+1
| | | | | | | Client: erl Patch: Sergey Yelin This closes #2357
* Remove Erlang R16 supportSergey Yelin2021-03-241-16/+0
| | | | | | | Client: erl Patch: Sergey Yelin This closes #2354
* THRIFT-5347 Remove deprecated Haskell bindingsJens Geyer2021-03-227-1727/+0
| | | | | | | Client: hs Patch: Jens Geyer This closes #2352
* THRIFT-5370 Haxe 4 compatibility incl TConfiguration & MAX_MESSAGE_SIZEJens Geyer2021-03-171-209/+200
| | | | | | | Client: haxe Patch: Jens Geyer This closes #2349
* THRIFT-4098 Namespace support for generated Rust code (#2348)Allen George2021-03-111-8/+18
| | | Client: rs
* THRIFT-5363 Render constant names correctly (#2343)Allen George2021-03-071-4/+17
| | | Client: rs
* THRIFT-5360 Remove deprecated Error::description() methods (#2342)Allen George2021-03-061-12/+9
| | | Client: rs
* Enable clippy in all Rust targets and ensure that all existing code is ↵Allen George2021-03-061-12/+14
| | | | | clippy-clean (#2341) Client: rs
* [THRIFT-5314][THRIFT-4101] Generate enums that don't error on unexpected ↵Allen George2021-03-011-50/+83
| | | | | values (#2337) Client: rs
* THRIFT-5354 disable IDE0083 warningJens Geyer2021-02-191-0/+1
| | | | | | | Client: netstd Patch: Jens Geyer The recommended pattern matching expression \"that is not SomeType\" requires C#9/net5.0 but we still want to support earlier versions (.NET Core 3.1 is LTS until 2022-DEC-03)
* THRIFT-5353: Fix import dedup without explicit go namespaceYuxuan 'fishy' Wang2021-02-181-3/+4
| | | | | | | | | | Client: go When a thrift file includes 2 or more other thrift files, and those included thrift files do not have explicit go namespaces defined, the current import dedup logic would wrongly use their empty namespace and skip the second one, while the real import namespace should be inferred from the filename.
* THRIFT-4914: Fix name redeclaration bug in compiled go codeYuxuan 'fishy' Wang2021-02-171-8/+9
| | | | | | | Client: go This fixes the bug reported in https://github.com/apache/thrift/pull/2315#discussion_r577919697.
* THRIFT-5350 char is unsigned on non-x86 arches, use signed char to avoid ↵Orion Poplawski2021-02-171-1/+1
| | | | | | | | compiler warning about always true comparisons Patch: Orion Poplawski This closes #2331
* THRIFT-5229 remove AS3 supportJens Geyer2021-02-148-2604/+2
| | | | | | | Client: AS3 Patch: Jens Geyer This closes #2329
* THRIFT-5347 Deprecate Haskell bindingsJens Geyer2021-02-131-0/+3
| | | | | Client: hs Patch: Jens Geyer
* Version number aligned to 0.15.0Jens Geyer2021-02-111-1/+1
|
* Reverted wrongly pushed commits.Jens Geyer2021-02-119-3279/+3
| | | | | - This reverts commit 876aee506b937d64b1fb035ff65e5e52def04c04. - This reverts commit b89316d54bb0253493b48446cb510755fb3196d2.
* Setup for Visual Studio 2019 + workarounds for some open tickets:Jens Geyer2021-02-102-2/+8
| | | | | | | - (NO TICKET) fix Haxe warning - Referenzdaten PerfTest Delphi und netstd - "custom build" added to version info - netstd nuget upgrades
* Revert "THRIFT-4982 Remove deprecated C# bindings from the code base"Jens Geyer2021-02-108-1/+3271
| | | | Only compiler, test, lib and tutorial code.
* Consolidated gitignore & added missing EXTRA_DISTsJens Geyer2021-02-053-0/+6
|
* THRIFT-5337 Go set fields write improvementwangtieju2021-02-031-7/+192
| | | | | | | | | | | | | Client: go There is a duplicate elements check for set in writeFields* function, and it compares elements using reflect.DeepEqual which is expensive. It's much faster that generates a *Equals* function for set elements and call it in duplicate elements check, especially for nested struct element. Closes #2307.
* netstd fix IDE warningJens Geyer2021-01-241-1/+1
|
* THRIFT-4914: Make TClient.Call to return the response metaYuxuan 'fishy' Wang2021-01-221-7/+31
| | | | | | | | | Client: go Make a breaking change so that TClient.Call returns the response meta, currently only contains headers but could be expanded in the future, and make a compiler change to compiler generated clients to take advantage of that and provide access to response metadata to users.
* THRIFT-5326: Expand TException interface in go libraryYuxuan 'fishy' Wang2021-01-171-13/+20
| | | | | | | | | | | | Client: go Add TExceptionType enum type, and add TExceptionType() TExceptionType function to TException definition. Also make TProtocolException unwrap-able.
* THRIFT-5198 Fix certain Visual Studio hints in generated netstd codeJens Geyer2020-12-091-2/+4
| | | | | Client: netstd Patch: Jens Geyer
* THRIFT-5320: Usage of "Task" as IDL identifier generates uncompileable codeJens Geyer2020-12-041-9/+9
| | | | | | | Client: netstd Patch: Jens Geyer This closes #2289
* THRIFT-5317 netstd compiler does not escape keywordsJens Geyer2020-12-011-2/+2
| | | | | Client: netstd Patch: Jens Geyer
* FIX: Log errors in processor via standard logger -> errors to write into ↵Jens Geyer2020-11-211-1/+1
| | | | Console.Error as before
* Log errors in processor via standard logger #2284Konstantin Pozdniakov2020-11-211-3/+13
| | | | | | | Client: netstd Patch: Konstantin Pozdniakov & Jens Geyer This closes #2284