Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5052

Make the Go tutorial executable to the end

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Tutorial
    • Labels:
      None

      Description

      Running the Go tutorial fails with division by zero, as follows:

      thrift/tutorial/go$ make tutorialclient
      /home/sekikn/repos/thrift/compiler/cpp/thrift --gen go -r ../../tutorial/tutorial.thrift
      GOPATH=`pwd` /usr/bin/go run src/*.go
      ping()
      1+1=2
      Invalid operation: InvalidOperation({WhatOp:4 Why:Cannot divide by 0})
      error running client: InvalidOperation({WhatOp:4 Why:Cannot divide by 0})
      

      But I think it should be executed to the end just as other language examples, because the error is an intended one and this is a code example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m