From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OGJxKwXk02TAmQAASxT56A (envelope-from ) for ; Wed, 09 Aug 2023 21:07:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YLVvKgXk02R1MAAAG6o9tA (envelope-from ) for ; Wed, 09 Aug 2023 21:07:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1822F52278 for ; Wed, 9 Aug 2023 21:07:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=hAgeOsxw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691608069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=v0x+3sf/B06iKGrAlpmOtaSfQIvnYhnqVlXBOeSQAJY=; b=uf/SyKkPP0VjpqC5UbvEYvrcQBv4w5+BWpdpVAuejM8n5CHzEwwHAldIiBwbtvWv2ehl6i 8QBkCD/hYM+VnoScpJPKL4IfakOF7tJWvtey75ZcabwpEgssC89j5fLWe1X+f09QMgwyzT aN/GcHdWPf3fhTRewuGaToXn7oC5PA4QIrWemB5GH1eBbMo2hRon/bWhA+X5ZstkFRM9Bn u6JVDkeAvECsoR9o7r30vSuIRioezK7XP0Rz4+ZJ11bMP8bE2iBVmlG3SWs4yuBJ6g4fdA KP4mjB5j05lBYb4eMi0GF7zTGK6qWLpZrEwsIiEXDPq7N92q8FFTTAIlRMhWdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691608069; a=rsa-sha256; cv=none; b=AafSWCL17tVfskXr4K+EJKKvtOAw6XZh0dRHJKOvcIzw0PDxdVa+G3iQN6GWbM45Cd0ywy R1I9+XZJdmnHcpB9NqU1Omx4yyXz0KSIsVd1cpSjt4EqsxUzI/N3HqPnKs3Gzek6K2Hshy qVseYPxpcWr4yjeuzHsep/VYH6Tpi6nnk5MeQOCkiU+VJcHTRFN+IgltGPmAhFq6emynrJ 5844KllFFZ/Ug/MCiJSeww9yFlivURREPbjh7MMByqQJ/EQU8sEt6J7OrwMEtG8Ck6cG4o SwKsTBlpoptbIstU1D/5lcZnvUujSGSym/oJsTWD4Y5e0OVlgMk++nND0jWt3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=hAgeOsxw; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qToW7-0004bK-M0; Wed, 09 Aug 2023 15:06:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qToW6-0004b8-13 for emacs-orgmode@gnu.org; Wed, 09 Aug 2023 15:06:46 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qToW3-0006o2-RJ for emacs-orgmode@gnu.org; Wed, 09 Aug 2023 15:06:45 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1bbc87ded50so1618465ad.1 for ; Wed, 09 Aug 2023 12:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691608002; x=1692212802; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=v0x+3sf/B06iKGrAlpmOtaSfQIvnYhnqVlXBOeSQAJY=; b=hAgeOsxwwnTC6MjcG+ySuACLzrGoUxZ72Yh6eA0fQhbvbLvB5p+AxA2/GznOXvtBMz CHpU43xbxVWMrRDoOgGC0VKDu9gUaPzIZq5+bOMjRlyh9bbUQBu0hIl9YRZmpr3GVTXE C9Qxzot7OXJEcM45/FN14H/ruE0IRu2/Jlc8pPXleFJcc02tkp+SxKgkXh+UsNy+M2lZ nsFgJ6/cwZ//HlzMEB2vaEWfj+RmpfB1cmSZLSv1LEHt8qv/yGCQfVzxxtTtbDK0oWcM 2zw6B//opmhIjjWFuOKAGtHlZtV8n9RSHc8cWfLjVTLXJ0tr9BoiG40y/8Q7zgktcZer JmWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691608002; x=1692212802; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v0x+3sf/B06iKGrAlpmOtaSfQIvnYhnqVlXBOeSQAJY=; b=Ic0f7xpkUE+sT6Y5a/JF/auZskIJd1HXMKM4dGHn+6HaOieSCQ3Dyrxmd0Zkyz7BLS EwYPzzCuVSgVfAzbtdbwwj3FSrkhScCtLgLUHiNfFj90DCDS5/eM7i+DFstwmdytFtxQ DApJRO4DSpzr5s+58UVmzkRZbob2nyfDYnzAMNP/HWzxaZle8DB1G8z9FF11TSJr/wND oxAEwMAjANigT6OG8LSSw9SgwCS8yWGD5jW+mNOt8e6ZAR0F9msnb4P6sEpupqAPcfNw FuMYjfBZH6yuNyuhY8qyQsIYKFqwdoiWoUwfU/oxxfRlESRU3MNkMp0lKgADt+LfGQd/ aSHQ== X-Gm-Message-State: AOJu0YzSfBzJ0UKQajSZhidjYJcOgBCW2dc7QpGTL2xJ5p8M229omUO4 iG2Jx7b9mX2tNdDw85GR2DD03Z/ps0I= X-Google-Smtp-Source: AGHT+IF0AS+WWboDvY7JfTwaJYXZPkv7WTg+OUh7aO6DIqOKLvbrN6XIUfHi9NutXXG6LLEWEzLVIQ== X-Received: by 2002:a17:903:2592:b0:1b8:b564:b531 with SMTP id jb18-20020a170903259200b001b8b564b531mr2873246plb.60.1691608002138; Wed, 09 Aug 2023 12:06:42 -0700 (PDT) Received: from [192.168.1.130] (222-154-28-155-vdsl.sparkbb.co.nz. [222.154.28.155]) by smtp.gmail.com with ESMTPSA id l6-20020a170902d34600b001b06c106844sm11530763plk.151.2023.08.09.12.06.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Aug 2023 12:06:41 -0700 (PDT) Message-ID: <69e49c6b-62fe-f49c-2ac3-b1a57d2dea73@gmail.com> Date: Thu, 10 Aug 2023 07:06:38 +1200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Passing table to Ruby session Content-Language: en-US To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <980379b9-3b1c-7671-839a-60fa488eed7c@gmail.com> <87350so731.fsf@localhost> From: Mike Gauland In-Reply-To: <87350so731.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=mikelygee@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1822F52278 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -9.53 X-Spam-Score: -9.53 X-TUID: naV8g7Re1xow On 9/08/23 22:14, Ihor Radchenko wrote: > Mike Gauland writes: > >> I'll work on putting together a minimal example, if anyone is interested >> in testing it on their system. > A minimal example would certainly help. > See https://orgmode.org/manual/Feedback.html#Feedback > Here is an example that demonstrates the problem on my system. I've run with my init files disabled, and that makes no difference. Also, I've taken the data as it is sent to the session, and pasted into irb in  a terminal window, and it ran just fine (which I think rules out any problems with line length, or with the session code generating a bad script for the longer variable).  I'm keen to find out if anyone else can reproduce this, or if there's something quirky about my system. # Without a session, this works even when the table isn't shortened: # #+begin_src ruby :var raw_data=raw-data :colnames no :exports code :results output   puts(raw_data.count) #+end_src #+RESULTS: : 75 # The next two blocks *only* work when the table is cut off at 73. If the # last two lines are added back in to the table, the ruby session does not # return. # Also, even with a truncated table, I don't get any output without the # extra call to puts() to print a blank line. # #+begin_src ruby :var raw_data=raw-data :session :colnames no :exports code :results output   puts(raw_data.count)   puts() #+end_src #+RESULTS: : 75 #+begin_src ruby :var raw_data=raw-data :session :colnames no :exports code :results value   raw_data.count #+end_src #+RESULTS: : 75 #+NAME: raw-data | Column 1 | Column 2 | Notes | |----------+----------+-------------------------------------------| |        0 |        0 | This is note #0. It just takes up space. | |        1 |        1 | This is note #1. It just takes up space. | |        2 |        2 | This is note #2. It just takes up space. | |        3 |        3 | This is note #3. It just takes up space. | |        4 |        4 | This is note #4. It just takes up space. | |        5 |        5 | This is note #5. It just takes up space. | |        6 |        6 | This is note #6. It just takes up space. | |        7 |        7 | This is note #7. It just takes up space. | |        8 |        8 | This is note #8. It just takes up space. | |        9 |        9 | This is note #9. It just takes up space. | |       10 |       10 | This is note #10. It just takes up space. | |       11 |       11 | This is note #11. It just takes up space. | |       12 |       12 | This is note #12. It just takes up space. | |       13 |       13 | This is note #13. It just takes up space. | |       14 |       14 | This is note #14. It just takes up space. | |       15 |       15 | This is note #15. It just takes up space. | |       16 |       16 | This is note #16. It just takes up space. | |       17 |       17 | This is note #17. It just takes up space. | |       18 |       18 | This is note #18. It just takes up space. | |       19 |       19 | This is note #19. It just takes up space. | |       20 |       20 | This is note #20. It just takes up space. | |       21 |       21 | This is note #21. It just takes up space. | |       22 |       22 | This is note #22. It just takes up space. | |       23 |       23 | This is note #23. It just takes up space. | |       24 |       24 | This is note #24. It just takes up space. | |       25 |       25 | This is note #25. It just takes up space. | |       26 |       26 | This is note #26. It just takes up space. | |       27 |       27 | This is note #27. It just takes up space. | |       28 |       28 | This is note #28. It just takes up space. | |       29 |       29 | This is note #29. It just takes up space. | |       30 |       30 | This is note #30. It just takes up space. | |       31 |       31 | This is note #31. It just takes up space. | |       32 |       32 | This is note #32. It just takes up space. | |       33 |       33 | This is note #33. It just takes up space. | |       34 |       34 | This is note #34. It just takes up space. | |       35 |       35 | This is note #35. It just takes up space. | |       36 |       36 | This is note #36. It just takes up space. | |       37 |       37 | This is note #37. It just takes up space. | |       38 |       38 | This is note #38. It just takes up space. | |       39 |       39 | This is note #39. It just takes up space. | |       40 |       40 | This is note #40. It just takes up space. | |       41 |       41 | This is note #41. It just takes up space. | |       42 |       42 | This is note #42. It just takes up space. | |       43 |       43 | This is note #43. It just takes up space. | |       44 |       44 | This is note #44. It just takes up space. | |       45 |       45 | This is note #45. It just takes up space. | |       46 |       46 | This is note #46. It just takes up space. | |       47 |       47 | This is note #47. It just takes up space. | |       48 |       48 | This is note #48. It just takes up space. | |       49 |       49 | This is note #49. It just takes up space. | |       50 |       50 | This is note #50. It just takes up space. | |       51 |       51 | This is note #51. It just takes up space. | |       52 |       52 | This is note #52. It just takes up space. | |       53 |       53 | This is note #53. It just takes up space. | |       54 |       54 | This is note #54. It just takes up space. | |       55 |       55 | This is note #55. It just takes up space. | |       56 |       56 | This is note #56. It just takes up space. | |       57 |       57 | This is note #57. It just takes up space. | |       58 |       58 | This is note #58. It just takes up space. | |       59 |       59 | This is note #59. It just takes up space. | |       60 |       60 | This is note #60. It just takes up space. | |       61 |       61 | This is note #61. It just takes up space. | |       62 |       62 | This is note #62. It just takes up space. | |       63 |       63 | This is note #63. It just takes up space. | |       64 |       64 | This is note #64. It just takes up space. | |       65 |       65 | This is note #65. It just takes up space. | |       66 |       66 | This is note #66. It just takes up space. | |       67 |       67 | This is note #67. It just takes up space. | |       68 |       68 | This is note #68. It just takes up space. | |       69 |       69 | This is note #69. It just takes up space. | |       70 |       70 | This is note #70. It just takes up space. | |       71 |       71 | This is note #71. It just takes up space. | |       72 |       72 | This is note #72. It just takes up space. | |       73 |       73 | This is note #73. It just takes up space. | |       74 |       74 | This is note #74. It just takes up space. | |       75 |       75 | This is note #75. It just takes up space. |