Re: Hackage thrift package out of date
Hey Matt Known issue, will be fixed in our next release -Jake On Tue, Mar 24, 2015 at 12:24 AM, Matt Renaud enthusiastic@gmail.com wrote: I attempted to install thrift with cabal install thrift today and got the error: setup-Simple-Cabal-1.18.1.5-x86_64-linux-ghc-7.8.4: ../../LICENSE: does not exist which was caused by a bug in the Thrift.cabal file. This was fixed in the upstread repo (https://github.com/apache/thrift/tree/master/lib/hs) 4 months ago but the version on hackage appears to be older than that. Do you think this will be updated soon? Regards, Matt
Hackage thrift package out of date
I attempted to install thrift with cabal install thrift today and got the error: setup-Simple-Cabal-1.18.1.5-x86_64-linux-ghc-7.8.4: ../../LICENSE: does not exist which was caused by a bug in the Thrift.cabal file. This was fixed in the upstread repo (https://github.com/apache/thrift/tree/master/lib/hs) 4 months ago but the version on hackage appears to be older than that. Do you think this will be updated soon? Regards, Matt
[jira] [Resolved] (THRIFT-1909) Java: Add compiler flag to use the option pattern for optional fields
[ https://issues.apache.org/jira/browse/THRIFT-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roger Meier resolved THRIFT-1909. - Resolution: Fixed Assignee: Roger Meier committed Java: Add compiler flag to use the option pattern for optional fields --- Key: THRIFT-1909 URL: https://issues.apache.org/jira/browse/THRIFT-1909 Project: Thrift Issue Type: New Feature Components: Java - Compiler, Java - Library Reporter: Eirik Sletteberg Assignee: Roger Meier Attachments: add-option-type.patch, thrift-0.9.3-option_type.patch This is a follow-up of the brainstorming issue about better null safety in Java. The patch adds: 1) A new abstract OptionT class, with two subclasses: SomeT and NoneT. 2) An optional compiler flag for the java compiler. When set, it wraps methods for optional fields in Option types. An example of usage is found here: https://github.com/eirslett/thrift-optional-example - No java dependencies are introduced. - The patch is entirely backwards-compatible; if the compiler flag is not present, it will generate the same code as thrift usually does. - The implementation is compatible with thrift servers/clients where the compiler flag is not used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Resolved] (THRIFT-3031) migrate shouldStop flag to TServer
[ https://issues.apache.org/jira/browse/THRIFT-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roger Meier resolved THRIFT-3031. - Resolution: Fixed Assignee: Roger Meier Thanks John! please do not uncomment code, remove it. I had to rework the patch... ;-r migrate shouldStop flag to TServer Key: THRIFT-3031 URL: https://issues.apache.org/jira/browse/THRIFT-3031 Project: Thrift Issue Type: Improvement Components: Java - Library Affects Versions: 0.9.1, 0.9.2 Reporter: John Wang Assignee: Roger Meier Attachments: THRIFT-3031.patch At present, there are fields called private volatile boolean stopped_ = false for several Thrift server implementations. I propose that we could define this field in class TServer along with two methods, one for get while the other for set. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
Build failed in Jenkins: Thrift-Compiler-Windows #1585
See https://builds.apache.org/job/Thrift-Compiler-Windows/1585/changes Changes: [roger] THRIFT-1909 Java: Add compiler flag to use the option pattern for optional fields [roger] THRIFT-3031 Java: migrate shouldStop flag to TServer -- [...truncated 75 lines...] compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_haxe_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_csharp_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_py_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_rb_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_perl_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_php_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_erl_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_cocoa_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_st_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_ocaml_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_hs_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_xsd_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_html_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_js_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_javame_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_delphi_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_go_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_gv_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_d_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am:34: warning: source file 'src/generate/t_lua_generator.cc' is in a subdirectory, compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled compiler/cpp/Makefile.am: installing './depcomp' configure.ac: installing './ylwrap' lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/thrift.c' is in a subdirectory, lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/thrift_struct.c' is in a subdirectory, lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/thrift_application_exception.c' is in a subdirectory, lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/processor/thrift_processor.c' is in a subdirectory, lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/processor/thrift_dispatch_processor.c' is in a subdirectory, lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled lib/c_glib/Makefile.am:31: warning: source file 'src/thrift/c_glib/protocol/thrift_protocol.c' is
[jira] [Commented] (THRIFT-2540) Running configure from outside the source directory fails
[ https://issues.apache.org/jira/browse/THRIFT-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14375511#comment-14375511 ] Mingjie Xing commented on THRIFT-2540: -- Hello, the following patch will fix the problem. But running make still fails due to the ant can't find build.xml. diff --git a/lib/cpp/src/thrift/thrift-config.h b/lib/cpp/src/thrift/thrift-config.h index d648706..0032f48 100644 --- a/lib/cpp/src/thrift/thrift-config.h +++ b/lib/cpp/src/thrift/thrift-config.h @@ -18,7 +18,7 @@ */ #ifdef _WIN32 -#include thrift/windows/config.h +#include windows/config.h #else -#include thrift/config.h +#include config.h #endif Running configure from outside the source directory fails - Key: THRIFT-2540 URL: https://issues.apache.org/jira/browse/THRIFT-2540 Project: Thrift Issue Type: Bug Components: Build Process Environment: Thrift *NOT* installed Ubuntu 12.04 LTS Reporter: Soyeb Aswat VERY IMPORTANT - Thrift must *NOT* be installed to recreate this bug. When trying to configure and build Thrift from outside the source tree, the build fails to find thrift/config.h in builddir/lib/cpp/src. A similar problem also occurs with other languages. An edited log reproducing the problem follows. {code} :/tmp$ git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift Cloning into 'thrift'... :/tmp$ cd thrift :/tmp/thrift$ git log | head commit ad4df16579b63a66ab95f9a01d3eb9cd1b352ebc Author: henrique henri...@apache.org Date: Tue May 20 13:18:45 2014 +0200 THRIFT-2534 Cross language test results should recorded to a status.md or status.html file automatically also removes go and lua from travis CI builds commit 4f073d8af4c7358f6956ff8f8f6eb0f227a6a695 Author: henrique henri...@apache.org :/tmp/thrift$ ./bootstrap.sh configure.ac: warning: missing AC_CHECK_FUNCS([inet_ntoa]) wanted by: lib/lua/src/usocket.c:138 configure.ac: warning: missing AC_CHECK_FUNCS([pow]) wanted by: lib/lua/src/lualongnumber.c:150 configure.ac:89: installing `./config.guess' configure.ac:89: installing `./config.sub' configure.ac:26: installing `./install-sh' configure.ac:26: installing `./missing' compiler/cpp/Makefile.am: installing `./depcomp' configure.ac: installing `./ylwrap' lib/cpp/test/Makefile.am:198: variable `processor_test_SOURCES' is defined but no program or lib/cpp/test/Makefile.am:198: library has `processor_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:189: variable `concurrency_test_SOURCES' is defined but no program or lib/cpp/test/Makefile.am:189: library has `concurrency_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:206: variable `processor_test_LDADD' is defined but no program or lib/cpp/test/Makefile.am:206: library has `processor_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:195: variable `concurrency_test_LDADD' is defined but no program or lib/cpp/test/Makefile.am:195: library has `concurrency_test' as canonical name (possible typo) :/tmp/thrift$ cd .. :/tmp$ mkdir thrift.build :/tmp$ cd thrift.build/ :/tmp/thrift.build$ ../thrift/configure --without-c_glib --without-csharp --without-python --without-ruby --without-php ... thrift 1.0.0-dev Building C++ Library . : yes Building C (GLib) Library : no Building Java Library : yes Building C# Library .. : no Building Python Library .. : no Building Ruby Library : no Building Haskell Library . : no Building Perl Library : no Building PHP Library . : no Building Erlang Library .. : no Building Go Library .. : no Building D Library ... : no Building NodeJS Library .. : no Building Lua Library . : no C++ Library: Build TZlibTransport .. : yes Build TNonblockingServer .. : yes Build TQTcpServer (Qt) : yes Java Library: Using javac ... : javac Using java : java Using ant . : /scratch/aswat/perforce/ct-devenv/Linux/Build/ant/bin/ant If something is missing that you think should be present, please skim the output of configure to find the missing component. Details are present in config.log. :/tmp/thrift.build$ make ... make[4]: Entering directory `/tmp/thrift.build/lib/cpp' /bin/bash ../../libtool --tag=CXX --mode=compile g++-4.7 -DHAVE_CONFIG_H -I. -I../../../thrift/lib/cpp -I../.. -I../../lib/cpp/src/thrift -I/scratch/aswat/perforce/19_nkwengine-devel-perforce/Framework/ThirdParty/Boost/Implementation/boost_1_55_0//include -I../../../thrift/lib/cpp/src -Wall -g -O2 -std=c++11 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f 'src/thrift/Thrift.cpp' || echo
[jira] [Commented] (THRIFT-3031) migrate shouldStop flag to TServer
[ https://issues.apache.org/jira/browse/THRIFT-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14376594#comment-14376594 ] Hudson commented on THRIFT-3031: SUCCESS: Integrated in Thrift #1480 (See [https://builds.apache.org/job/Thrift/1480/]) THRIFT-3031 Java: migrate shouldStop flag to TServer (roger: rev 2bb6f51dda6838a7d7c946d4a0ee50f40bcda54b) * lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java * lib/java/src/org/apache/thrift/server/TNonblockingServer.java * lib/java/src/org/apache/thrift/server/TSimpleServer.java * lib/java/src/org/apache/thrift/server/TThreadPoolServer.java * lib/java/src/org/apache/thrift/server/TServer.java migrate shouldStop flag to TServer Key: THRIFT-3031 URL: https://issues.apache.org/jira/browse/THRIFT-3031 Project: Thrift Issue Type: Improvement Components: Java - Library Affects Versions: 0.9.1, 0.9.2 Reporter: John Wang Assignee: Roger Meier Attachments: THRIFT-3031.patch At present, there are fields called private volatile boolean stopped_ = false for several Thrift server implementations. I propose that we could define this field in class TServer along with two methods, one for get while the other for set. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (THRIFT-1909) Java: Add compiler flag to use the option pattern for optional fields
[ https://issues.apache.org/jira/browse/THRIFT-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14376595#comment-14376595 ] Hudson commented on THRIFT-1909: SUCCESS: Integrated in Thrift #1480 (See [https://builds.apache.org/job/Thrift/1480/]) THRIFT-1909 Java: Add compiler flag to use the option pattern for optional fields (roger: rev e6789480d262357d4de4ab608267165c79631cb3) * lib/java/src/org/apache/thrift/Option.java * lib/java/test/org/apache/thrift/TestOptionType.java * compiler/cpp/src/generate/t_java_generator.cc Java: Add compiler flag to use the option pattern for optional fields --- Key: THRIFT-1909 URL: https://issues.apache.org/jira/browse/THRIFT-1909 Project: Thrift Issue Type: New Feature Components: Java - Compiler, Java - Library Reporter: Eirik Sletteberg Assignee: Roger Meier Attachments: add-option-type.patch, thrift-0.9.3-option_type.patch This is a follow-up of the brainstorming issue about better null safety in Java. The patch adds: 1) A new abstract OptionT class, with two subclasses: SomeT and NoneT. 2) An optional compiler flag for the java compiler. When set, it wraps methods for optional fields in Option types. An example of usage is found here: https://github.com/eirslett/thrift-optional-example - No java dependencies are introduced. - The patch is entirely backwards-compatible; if the compiler flag is not present, it will generate the same code as thrift usually does. - The implementation is compatible with thrift servers/clients where the compiler flag is not used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Resolved] (THRIFT-2540) Running configure from outside the source directory fails
[ https://issues.apache.org/jira/browse/THRIFT-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roger Meier resolved THRIFT-2540. - Resolution: Won't Fix you can use CMake build, it supports out of tree build. Running configure from outside the source directory fails - Key: THRIFT-2540 URL: https://issues.apache.org/jira/browse/THRIFT-2540 Project: Thrift Issue Type: Bug Components: Build Process Environment: Thrift *NOT* installed Ubuntu 12.04 LTS Reporter: Soyeb Aswat VERY IMPORTANT - Thrift must *NOT* be installed to recreate this bug. When trying to configure and build Thrift from outside the source tree, the build fails to find thrift/config.h in builddir/lib/cpp/src. A similar problem also occurs with other languages. An edited log reproducing the problem follows. {code} :/tmp$ git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift Cloning into 'thrift'... :/tmp$ cd thrift :/tmp/thrift$ git log | head commit ad4df16579b63a66ab95f9a01d3eb9cd1b352ebc Author: henrique henri...@apache.org Date: Tue May 20 13:18:45 2014 +0200 THRIFT-2534 Cross language test results should recorded to a status.md or status.html file automatically also removes go and lua from travis CI builds commit 4f073d8af4c7358f6956ff8f8f6eb0f227a6a695 Author: henrique henri...@apache.org :/tmp/thrift$ ./bootstrap.sh configure.ac: warning: missing AC_CHECK_FUNCS([inet_ntoa]) wanted by: lib/lua/src/usocket.c:138 configure.ac: warning: missing AC_CHECK_FUNCS([pow]) wanted by: lib/lua/src/lualongnumber.c:150 configure.ac:89: installing `./config.guess' configure.ac:89: installing `./config.sub' configure.ac:26: installing `./install-sh' configure.ac:26: installing `./missing' compiler/cpp/Makefile.am: installing `./depcomp' configure.ac: installing `./ylwrap' lib/cpp/test/Makefile.am:198: variable `processor_test_SOURCES' is defined but no program or lib/cpp/test/Makefile.am:198: library has `processor_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:189: variable `concurrency_test_SOURCES' is defined but no program or lib/cpp/test/Makefile.am:189: library has `concurrency_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:206: variable `processor_test_LDADD' is defined but no program or lib/cpp/test/Makefile.am:206: library has `processor_test' as canonical name (possible typo) lib/cpp/test/Makefile.am:195: variable `concurrency_test_LDADD' is defined but no program or lib/cpp/test/Makefile.am:195: library has `concurrency_test' as canonical name (possible typo) :/tmp/thrift$ cd .. :/tmp$ mkdir thrift.build :/tmp$ cd thrift.build/ :/tmp/thrift.build$ ../thrift/configure --without-c_glib --without-csharp --without-python --without-ruby --without-php ... thrift 1.0.0-dev Building C++ Library . : yes Building C (GLib) Library : no Building Java Library : yes Building C# Library .. : no Building Python Library .. : no Building Ruby Library : no Building Haskell Library . : no Building Perl Library : no Building PHP Library . : no Building Erlang Library .. : no Building Go Library .. : no Building D Library ... : no Building NodeJS Library .. : no Building Lua Library . : no C++ Library: Build TZlibTransport .. : yes Build TNonblockingServer .. : yes Build TQTcpServer (Qt) : yes Java Library: Using javac ... : javac Using java : java Using ant . : /scratch/aswat/perforce/ct-devenv/Linux/Build/ant/bin/ant If something is missing that you think should be present, please skim the output of configure to find the missing component. Details are present in config.log. :/tmp/thrift.build$ make ... make[4]: Entering directory `/tmp/thrift.build/lib/cpp' /bin/bash ../../libtool --tag=CXX --mode=compile g++-4.7 -DHAVE_CONFIG_H -I. -I../../../thrift/lib/cpp -I../.. -I../../lib/cpp/src/thrift -I/scratch/aswat/perforce/19_nkwengine-devel-perforce/Framework/ThirdParty/Boost/Implementation/boost_1_55_0//include -I../../../thrift/lib/cpp/src -Wall -g -O2 -std=c++11 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f 'src/thrift/Thrift.cpp' || echo '../../../thrift/lib/cpp/'`src/thrift/Thrift.cpp libtool: compile: g++-4.7 -DHAVE_CONFIG_H -I. -I../../../thrift/lib/cpp -I../.. -I../../lib/cpp/src/thrift -I/scratch/aswat/perforce/19_nkwengine-devel-perforce/Framework/ThirdParty/Boost/Implementation/boost_1_55_0//include -I../../../thrift/lib/cpp/src -Wall -g -O2 -std=c++11 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c ../../../thrift/lib/cpp/src/thrift/Thrift.cpp -fPIC -DPIC -o
[jira] [Commented] (THRIFT-3049) As an iOS developer, I want a generator and library that produces Swift code
[ https://issues.apache.org/jira/browse/THRIFT-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14377242#comment-14377242 ] Juan Moreno commented on THRIFT-3049: - I appreciate all the tips and info. I'll follow up. Let's get this started. As an iOS developer, I want a generator and library that produces Swift code Key: THRIFT-3049 URL: https://issues.apache.org/jira/browse/THRIFT-3049 Project: Thrift Issue Type: Epic Components: Compiler (General) Reporter: Juan Moreno Swift is slowly replacing the legacy Objective-C. To keep thrift with the times, let's bake it in. -- This message was sent by Atlassian JIRA (v6.3.4#6332)