GNU logs - #49452, boring messages


Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH
Resent-From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Wed, 07 Jul 2021 06:29:02 +0000
Resent-Message-ID: <handler.49452.B.162563933932459 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 49452
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: 49452 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guile@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.162563933932459
          (code B ref -1); Wed, 07 Jul 2021 06:29:02 +0000
Received: (at submit) by debbugs.gnu.org; 7 Jul 2021 06:28:59 +0000
Received: from localhost ([127.0.0.1]:50627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m113K-0008RL-A4
	for submit <at> debbugs.gnu.org; Wed, 07 Jul 2021 02:28:59 -0400
Received: from lists.gnu.org ([209.51.188.17]:52658)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vijaymarupudi@HIDDEN>) id 1m0vYW-0007ud-4C
 for submit <at> debbugs.gnu.org; Tue, 06 Jul 2021 20:36:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:32854)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vijaymarupudi@HIDDEN>)
 id 1m0vYV-0000tH-SH
 for bug-guile@HIDDEN; Tue, 06 Jul 2021 20:36:47 -0400
Received: from mail-mw2nam12on20712.outbound.protection.outlook.com
 ([2a01:111:f400:fe5a::712]:45408
 helo=NAM12-MW2-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vijaymarupudi@HIDDEN>)
 id 1m0vYT-0001bo-9F
 for bug-guile@HIDDEN; Tue, 06 Jul 2021 20:36:47 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Qbs4jSyQpwd9ojmVE9x6aNhGQINlP9EKK+JUPnLTt/yWsck2p3IP4clvP3qHc7py/lBd0hXOe1F5kvJKQQN2daxkum7+fyqM/aMNNZcrKSE+yfXwpds7yJ4A5KIwhHwOKH6NbZjqij0Wk0NY60FukYKNrex7+XEPlOcbwYbFIgNSg4e/ILwxIlOYirYOZVGtmbvUUCNmtpBv91s8/0XIRr9uY2Rt4b8n3EXnaHEg/fKY9YFyGXHtELpz50sCrGNC9xL0/q4s4D6j0JYEaqZXKcH0V4VWXTxvFQM2rXFrGgv07vsxf/oYVXQDkp2G03tfADbQ1XaYcEvUkvCL9WpJ+A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=VtT3Q9yVDIixBUbrCgl+iNX91rHknlDPyDKJovCs0LU=;
 b=gePHd51gru4Xsa9JjU+A7p7+JWAgQKcr1HnmQvFkPsNcScvlbVr/DWY/VU7mzZdvKz7W6z/M94kVVF2GNaD54Gir+YktF7CFAc7N2Sf2Tt3quUxuyDKDEF5DSuCRnxhBRYX6JvxZMCnxast+owdbmFbZz4L4/4rF+cHw/vHp+/XkCqDizMMGUMvCScDRL9819P6WBJejo4X0O0gAdBBfL7gr/a09wcgFAnG0IERd9H89rx8mfT2w5af5LyPTsIjyP+Z1OJYjzHrOhjxlnV3w2eAPBHEYkheePrIm321duv/p4GY5EzTTBUeHTIY31inTdtJIXvKg5NWd58P/OwfAbQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=gatech.edu; dmarc=pass action=none header.from=gatech.edu;
 dkim=pass header.d=gatech.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gatech.edu;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=VtT3Q9yVDIixBUbrCgl+iNX91rHknlDPyDKJovCs0LU=;
 b=zto7uWBaK43evv+U8wRZDfiSTmk0Q4f8/ShxxAY7prEKssLdf+Ay4/sZWqNLXcH1LzxHTS0AHFKjpdj3vIFzvDk2SNZFVC0+Ho9gBvTehsUDtAJCd2Wag1MCeZafBOs7RieBlvAkM8AIgjRKHgOdvFizdgTYvAWpzsO3j2E/ldY=
Authentication-Results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=gatech.edu;
Received: from BN8PR07MB5793.namprd07.prod.outlook.com (2603:10b6:408:9c::19)
 by BN7PR07MB5156.namprd07.prod.outlook.com (2603:10b6:408:21::13)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.32; Wed, 7 Jul
 2021 00:31:39 +0000
Received: from BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4]) by BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4%6]) with mapi id 15.20.4287.033; Wed, 7 Jul 2021
 00:31:39 +0000
From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Message-ID: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
Date: Tue, 6 Jul 2021 19:31:38 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US-large
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: CH0PR04CA0038.namprd04.prod.outlook.com
 (2603:10b6:610:77::13) To BN8PR07MB5793.namprd07.prod.outlook.com
 (2603:10b6:408:9c::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [10.64.242.111] (68.235.43.94) by
 CH0PR04CA0038.namprd04.prod.outlook.com (2603:10b6:610:77::13) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.4287.23 via Frontend Transport; Wed, 7 Jul 2021 00:31:39 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 70766e7c-b668-49d4-5f95-08d940de9635
X-MS-TrafficTypeDiagnostic: BN7PR07MB5156:
X-Microsoft-Antispam-PRVS: <BN7PR07MB5156953125100C42D85D3221D21A9@HIDDEN>
X-GT-Tenant: 042d12d7-75fe-4547-b5b6-0573f80f829d
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: xJwfTkIJ/VYuCXaSd6qqxMzu9fo0vN8CzKLCffn+IScnQtYjeODWe6bFQi5P8c3TtPYlztcJ2eT5l+0LCpbvnvvh+oCFiorrAUaa5iV8rDxNOTd5YaC62XdC8KcsfBtcha+JABvX++o+Xm+i2Eoz2U4WQs+yYopLnJn425hmcL4124IAy6Tc80IYyYiptR0LZrFfby8OcqKB3VGpL+0T+2YyKeNIB7KuTTxVl7jptlJhHd0PuS328SiKjDYa8xclAbj6JgZZMOV7SNC1TXTdunBnbtyjU6JvqZcBTs2fKE1l3JxjxReYkrE9URi8Hnl34c5dT2i2x9h7kirVTgx2XoKxeVBskkR/mlhEBAptIcbPZu8bpmbJXtMQ/8CV3lKHR6XygjQctZOOJ0XIWGGQCLDY8nZiIMWuVyAbGePJ6VxVqqAbRraQsw2v54HXPr3FekIE/chU+s2TNB29w5XjU8LqBNarsCzPfYrQO4YG/eTt9QOqPpI4FQ/mecS2+sqX6mN57xh34O4wV7YIt5EPctTXtZ3iyAfrAr0FRRI1KCjIcKEXK2jMca9+1gWCdMvM1gKZOWz4fEUiww1UIU6FrGCbO7erMtEdyUkmsWG8bmBJ9Qxr+f5tWyP5bRRib1dXWCZCDk9jOm0DvHpWcNjVX3yykMEvebn5ThqkL9t+vbwaQgwdU+qTNA+AgUVVaLhy4T3YRSUkhjLWQfqv6k1FP0W+oFOgAtgTguGhOf5CX0XpInDjxa5RiuP0wXYDbABgaMNNtjjBA8nwg73SMfDOkiCFvdL+OF+N6tvJaJ6KUfB5yIGVXkapGRlYFZRFRpiz
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:BN8PR07MB5793.namprd07.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(136003)(396003)(376002)(366004)(346002)(39860400002)(8676002)(316002)(5660300002)(83380400001)(31686004)(31696002)(186003)(786003)(66556008)(6916009)(86362001)(66476007)(16576012)(66946007)(478600001)(2906002)(26005)(38100700002)(8936002)(6486002)(75432002)(956004)(2616005)(36756003)(45980500001)(43740500002);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: vgz0gIHlEsUPrjPYX4LEg/mSXCyrxcGrllWI6b0Ukr+A69Uw482bTl0xIQ5ZNsoFisiAXAHbADMiTKV5tPHvKOv72X0J9yFREOwEeJiEDcdy+UQZyjLfq4RZd1T0agIQrcAUVAW/qXkaGpZINblsrvYMPyb7kPrOJn+m4ZyzD0KTvG3/HWKgVDsQKOBg8boe71NZxfAcyQsfRds9fKyfD+PrCTshC+V+exmNtb0LK54/VwJztBV98GAyoHwUYYEGK8NRsKIJXhN0ucglSfJ/Y7VOFXua+tKfJyIeFArEVA9w+lpF0KxUrLLZ6J2nlIQq1qHn7fGV2qORkn5r+T9v8wowPbdL9OKIv0gJigakuhCd+z3kMpgsUgcOHVDUQcxrsj+9FJcA7TiTha6ZjlmTvkQW+T6DXoFYkztdgZIPrhn4F13gAz8BurTOaQYD2o7gzVdU1iOVT6M9awJgnx6l0DTcAUcF8VGLB1AryDs0Y56pl/08Xw5N811nc7lj7ahozsIPDybeV0+pS4kGFnbzbinYDV3Bg7g10CgyMnf6S8Oan2TNmppPIM3iYce427OKiRRQKl/6h5ya2IyugLoTfoT1qYp/HlCaOA1HW9J+yi+hKwUYq0599iVPS83bRQUioBMbuc04TrnMOlfC2/UuW7yYgFAGrrHs8UhPlBo659moRru+9CRaf/hd10Ld1WqnucM2uP4em2hPM0rUA/6P8O9qYeocoRLbx+YX4MIoEtwVZHJ2m8hemE5KEt5t5MBWW9f2XmZlZzluSSvqcrunzhPDZoWwAwIPuePqZEULQuLsyomUBJK/LuwcGDL1csbzyc/PfKcfZ3QMf5eb3XFPIv1L8UxkbqY2i/CbuH3ckTmKGPj8GV3VcGo6FZZiM/WCHdi9bbqUvYvC/trfGjUzDnS12/n9v5F1vtWmbmXgVdH/ggvZGyRK8Dyns9Kzs3wWPE9RmYoVIXz+AnrDAnbVwDePr5ScssiDyzdbdG+nAju8OZWTkkr0FmQX4ArAHNACRf724Cx5aaO6R+kX2+sR92y53Ws+A5O2hxgKvGU7IqaQqASVmmUHpVKYpLRXUKgojTN/Xuq8DQd5gsyTWeiK/8UfwrmvXS07p7ptPiJPncWOt9DfaCOw6X4bWLkfluXquBuhBAfBB7dbl437WJTjmOYbnVJIYGvMbxXmSjt7RYyP4lwf9emJkYtSNVXycDZ3zWqaRU+zg6+Xid47BMTTPaHp67iE0WAb0EizYhon+QgJxN3tBNtmaaTVnXyfjJ0uOvNvv/PeBRY4z5KZj65921+17Z1B7ClIOsYPvlV/boEC3yUSq0gviw6qGNCg8b/J
X-OriginatorOrg: gatech.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 70766e7c-b668-49d4-5f95-08d940de9635
X-MS-Exchange-CrossTenant-AuthSource: BN8PR07MB5793.namprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2021 00:31:39.8072 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 482198bb-ae7b-4b25-8b7a-6d7f32faa083
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: a7TUfNlTQVGXt0CnSB23NgDEGqtcEqySOW2aN4eqDYmpqONv8ILU4Z4cCjA23Bow2QmPDDjXA9/uXW7gADW3tA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB5156
Received-SPF: pass client-ip=2a01:111:f400:fe5a::712;
 envelope-from=vijaymarupudi@HIDDEN;
 helo=NAM12-MW2-obe.outbound.protection.outlook.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,
 MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Mailman-Approved-At: Wed, 07 Jul 2021 02:28:55 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hello all,

It is unclear to me what the intended behavior for (include
"filename.scm") is, so I'm sending an email about this potential bug.

The Local Inclusion docs
<https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>
seem to state that relative paths are found relative to the file that
included them.

> If file-name is a relative path, it is searched for relative to the
> path that contains the file that the include form appears in.

So if I have a file "/libraries/libname/main.scm" than has (include
"./helpers.scm"), then the file "/libraries/libname/helpers.scm"
*should* (I think) be imported.

But this does not seem to work if "/libraries" is in the GUILE_LOAD_PATH
and my current working directory is somewhere else, say "/home/user" and
I'm running "/home/user/program.scm" that imports the (libname main)
library from "/libraries". Then Guile seems to try to include the
"libname/helpers.scm" file from the current directory, which does not
exist.

Conversations with leoprikler in IRC have revealed to me that
call-with-include-port is the function responsible for this behavior
<https://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/psyntax.scm#n3231>.
`syntax-source` returns a file path relative to the load path, and
include tries to use that path to open a file relative to the current
working directory.

In Guile's bug guidelines
<https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Reporting-Bugs.html>,
to me this fits

* Whenever documentation and actual behavior differ, you have certainly
  found a bug, either in the documentation or in the program.

and potentially

* When some part of the documentation is not clear and does not make
  sense to you even after re-reading the section, it is a bug.

I believe this is a bug, but I may be wrong, so emailing to clarify.
Thank you!

Vijay Marupudi
PhD Student in Human Centered-Computing
Georgia Institute of Technology





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Vijay Marupudi <vijaymarupudi@HIDDEN>
Subject: bug#49452: Acknowledgement (Confusing behavior with (include)
 used in file in GUILE_LOAD_PATH)
Message-ID: <handler.49452.B.162563933932459.ack <at> debbugs.gnu.org>
References: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
X-Gnu-PR-Message: ack 49452
X-Gnu-PR-Package: guile
Reply-To: 49452 <at> debbugs.gnu.org
Date: Wed, 07 Jul 2021 06:29:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guile@HIDDEN

If you wish to submit further information on this problem, please
send it to 49452 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
49452: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49452
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH
Resent-From: Taylan Kammer <taylan.kammer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Wed, 07 Jul 2021 08:30:02 +0000
Resent-Message-ID: <handler.49452.B49452.162564659911516 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49452
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: Vijay Marupudi <vijaymarupudi@HIDDEN>, 49452 <at> debbugs.gnu.org
Received: via spool by 49452-submit <at> debbugs.gnu.org id=B49452.162564659911516
          (code B ref 49452); Wed, 07 Jul 2021 08:30:02 +0000
Received: (at 49452) by debbugs.gnu.org; 7 Jul 2021 08:29:59 +0000
Received: from localhost ([127.0.0.1]:50800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m12wR-0002zd-4u
	for submit <at> debbugs.gnu.org; Wed, 07 Jul 2021 04:29:59 -0400
Received: from mail-wr1-f44.google.com ([209.85.221.44]:46961)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <taylan.kammer@HIDDEN>) id 1m12wP-0002zB-Rg
 for 49452 <at> debbugs.gnu.org; Wed, 07 Jul 2021 04:29:58 -0400
Received: by mail-wr1-f44.google.com with SMTP id d12so1438554wre.13
 for <49452 <at> debbugs.gnu.org>; Wed, 07 Jul 2021 01:29:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=E6ho5fmhArAKmwKDnRTghWiG37nzbr1LHhRHHdRnKp8=;
 b=FAaYXMFfDmmvYZmpSN42psvzjJMlB1Fx3jaHUjEqrXM60MSVqDivuACYqVKgS7daTi
 w6hTkeN/FXcROFZbkEHWZ0+oyHG8C8XRk3FJqkAEHGndw/EpEscRYnK+ngFs9hZeasu2
 +MKv2c7OZn4rO2G6nG3JdCRTJhBH/oAudUPKQkdcfimsBTo6p8sB7fmyVghOiiY+C7J9
 6Ih8Sq4IkTynX6Idavs1iSvPj3JYw3iYbfkpoUZG7u1R78/+cJO69hRdPdg1/wM+MYkr
 bY14tyNccd7THMv6W90mu6ZMk+hA/iZ3EwHnmGMfOXEe2Jy5BL3hN6bclHPHNhLS2l3x
 dTzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=E6ho5fmhArAKmwKDnRTghWiG37nzbr1LHhRHHdRnKp8=;
 b=mIuGvAsjlxLalBp3Dg1nihJjeLIuVFv4WwDyf5nw/virYP3BA42l6TNx+s5jzmTH/B
 FeiqnzHRn76D5BM68IXnoTLbl8+dgkXadDXybgoOMTdFAr4hPv/iFrxu2P4hk4HKYgLo
 QMS6ypqFYYrNfR3f0oHj6JDNweooYOjQ/sPE+m3qGbC0MrhXWTBLf5gdMoZByvZ+LTLl
 8nBV9PDefQxU3Wu9f40SQPQlfQ4AOW44t4W3oNHQyy+MFzWzqOEOFjdr0XneaxF7bBwU
 xWMC2MvmRmYdXGZGXvfmpdjfqK85Wnvs4HLuPDzsitMeeL2/kD2QUagPpJ7LBb4bU20j
 0CnQ==
X-Gm-Message-State: AOAM533tYbRiSXwrYQsH3enPjBwY/pLttdqzHKOS31iikc8w37qqQzzy
 d/Ed/ossOGYRCDabvjs5PWlN+TSiBmo=
X-Google-Smtp-Source: ABdhPJxe1EbkDRMutQN6tvgXNP9879bp+tANq1lEgm3tx22TiiBjDfP3caHhWoWVfimT4uhY3QivZA==
X-Received: by 2002:a5d:5189:: with SMTP id k9mr27391190wrv.250.1625646591885; 
 Wed, 07 Jul 2021 01:29:51 -0700 (PDT)
Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz.
 [109.90.125.150])
 by smtp.gmail.com with ESMTPSA id p15sm17574221wmq.43.2021.07.07.01.29.51
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 07 Jul 2021 01:29:51 -0700 (PDT)
References: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
From: Taylan Kammer <taylan.kammer@HIDDEN>
Message-ID: <f043844e-dc06-6849-688a-d780e4706237@HIDDEN>
Date: Wed, 7 Jul 2021 10:29:49 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 07.07.2021 02:31, Vijay Marupudi wrote:
> Hello all,
> 
> It is unclear to me what the intended behavior for (include
> "filename.scm") is, so I'm sending an email about this potential bug.
> 
> The Local Inclusion docs
> <https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>
> seem to state that relative paths are found relative to the file that
> included them.
> 
>> If file-name is a relative path, it is searched for relative to the
>> path that contains the file that the include form appears in.
> 
> So if I have a file "/libraries/libname/main.scm" than has (include
> "./helpers.scm"), then the file "/libraries/libname/helpers.scm"
> *should* (I think) be imported.
> 
> But this does not seem to work if "/libraries" is in the GUILE_LOAD_PATH
> and my current working directory is somewhere else, say "/home/user" and
> I'm running "/home/user/program.scm" that imports the (libname main)
> library from "/libraries". Then Guile seems to try to include the
> "libname/helpers.scm" file from the current directory, which does not
> exist.
> 
> Conversations with leoprikler in IRC have revealed to me that
> call-with-include-port is the function responsible for this behavior
> <https://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/psyntax.scm#n3231>.
> `syntax-source` returns a file path relative to the load path, and
> include tries to use that path to open a file relative to the current
> working directory.
> 
> In Guile's bug guidelines
> <https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Reporting-Bugs.html>,
> to me this fits
> 
> * Whenever documentation and actual behavior differ, you have certainly
>   found a bug, either in the documentation or in the program.
> 
> and potentially
> 
> * When some part of the documentation is not clear and does not make
>   sense to you even after re-reading the section, it is a bug.
> 
> I believe this is a bug, but I may be wrong, so emailing to clarify.
> Thank you!
> 
> Vijay Marupudi
> PhD Student in Human Centered-Computing
> Georgia Institute of Technology

Hi Vijay,

I believe this is the same bug as this one I reported 5-6 years ago:

https://bugs.gnu.org/21613

Sadly there was no progress on it as far as I know.

-- 
Taylan




Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH
Resent-From: Bengt Richter <bokr@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Wed, 07 Jul 2021 21:24:01 +0000
Resent-Message-ID: <handler.49452.B49452.162569299019458 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49452
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: Vijay Marupudi <vijaymarupudi@HIDDEN>
Cc: 49452 <at> debbugs.gnu.org
Reply-To: Bengt Richter <bokr@HIDDEN>
Received: via spool by 49452-submit <at> debbugs.gnu.org id=B49452.162569299019458
          (code B ref 49452); Wed, 07 Jul 2021 21:24:01 +0000
Received: (at 49452) by debbugs.gnu.org; 7 Jul 2021 21:23:10 +0000
Received: from localhost ([127.0.0.1]:53655 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m1F0g-00053m-7T
	for submit <at> debbugs.gnu.org; Wed, 07 Jul 2021 17:23:10 -0400
Received: from imta-37.everyone.net ([216.200.145.37]:34448
 helo=imta-38.everyone.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bokr@HIDDEN>) id 1m1F0e-00053c-6h
 for 49452 <at> debbugs.gnu.org; Wed, 07 Jul 2021 17:23:08 -0400
Received: from pps.filterd (omta004.sj2.proofpoint.com [127.0.0.1])
 by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 167LCvdP018169;
 Wed, 7 Jul 2021 14:23:06 -0700
X-Eon-Originating-Account: kilUXqgwSWrDyOFqjsLrM4qo6m9x7L5CD1v4nQ4A43Q
X-Eon-Dm: m0117124.ppops.net
Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 5a81c3da)
 id m0117124.60d3a86c.109299; Wed, 7 Jul 2021 14:23:05 -0700
X-Eon-Sig: AQMHrIJg5hs5u/wpFAIAAAAC,b1045872096b0e15bcd02fbb216a4d25
X-Eip: lnIrDHTGfYt7EAV3yLEQRv6wc7vJl0_O7VpWxc2wTNE
Date: Wed, 7 Jul 2021 23:22:56 +0200
From: Bengt Richter <bokr@HIDDEN>
Message-ID: <20210707212256.GA2266@LionPure>
References: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Proofpoint-GUID: 9YbP1ch8zRgePsE4yFfU7KOkVoBsslIo
X-Proofpoint-ORIG-GUID: 9YbP1ch8zRgePsE4yFfU7KOkVoBsslIo
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790
 definitions=2021-07-07_09:2021-07-06,
 2021-07-07 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 lowpriorityscore=0 adultscore=0
 mlxlogscore=999 clxscore=1034 priorityscore=1501 bulkscore=0
 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 impostorscore=0
 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2104190000 definitions=main-2107070122
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Vijay,

On +2021-07-06 19:31:38 -0500, Vijay Marupudi wrote:
> Hello all,
> 
> It is unclear to me what the intended behavior for (include
> "filename.scm") is, so I'm sending an email about this potential bug.
> 
> The Local Inclusion docs
> <https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>
> seem to state that relative paths are found relative to the file that
> included them.
> 
> > If file-name is a relative path, it is searched for relative to the
> > path that contains the file that the include form appears in.
> 
> So if I have a file "/libraries/libname/main.scm" than has (include
> "./helpers.scm"), then the file "/libraries/libname/helpers.scm"
> *should* (I think) be imported.
>

A little nit, but
    (include "filename.scm")
is not identical to
    (include "./filename.scm")
so might it be worth trying
   (include "helpers.scm")
in your code?

And/or should the docs explain that both ways of writing a relative
file name in this context are or are not acceptable?

Might some macro dislike leading dots?

Long shot ;-)

> But this does not seem to work if "/libraries" is in the GUILE_LOAD_PATH
> and my current working directory is somewhere else, say "/home/user" and
> I'm running "/home/user/program.scm" that imports the (libname main)
> library from "/libraries". Then Guile seems to try to include the
> "libname/helpers.scm" file from the current directory, which does not
> exist.
> 
> Conversations with leoprikler in IRC have revealed to me that
> call-with-include-port is the function responsible for this behavior
> <https://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/psyntax.scm#n3231>.
> `syntax-source` returns a file path relative to the load path, and
> include tries to use that path to open a file relative to the current
> working directory.
> 
> In Guile's bug guidelines
> <https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Reporting-Bugs.html>,
> to me this fits
> 
> * Whenever documentation and actual behavior differ, you have certainly
>   found a bug, either in the documentation or in the program.
> 
> and potentially
> 
> * When some part of the documentation is not clear and does not make
>   sense to you even after re-reading the section, it is a bug.
> 
> I believe this is a bug, but I may be wrong, so emailing to clarify.
> Thank you!
> 
> Vijay Marupudi
> PhD Student in Human Centered-Computing
> Georgia Institute of Technology
> 
> 
> 
> 

-- 
Regards,
Bengt Richter




Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH
Resent-From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Thu, 08 Jul 2021 13:58:02 +0000
Resent-Message-ID: <handler.49452.B49452.162575264424414 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49452
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: Taylan Kammer <taylan.kammer@HIDDEN>, 49452 <at> debbugs.gnu.org
Received: via spool by 49452-submit <at> debbugs.gnu.org id=B49452.162575264424414
          (code B ref 49452); Thu, 08 Jul 2021 13:58:02 +0000
Received: (at 49452) by debbugs.gnu.org; 8 Jul 2021 13:57:24 +0000
Received: from localhost ([127.0.0.1]:57061 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m1UWo-0006Lf-SR
	for submit <at> debbugs.gnu.org; Thu, 08 Jul 2021 09:57:24 -0400
Received: from mail-dm6nam12on2103.outbound.protection.outlook.com
 ([40.107.243.103]:17537 helo=NAM12-DM6-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vijaymarupudi@HIDDEN>) id 1m1SR1-0004FG-Su
 for 49452 <at> debbugs.gnu.org; Thu, 08 Jul 2021 07:43:19 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=WRvPM/K4DC42Sfp4qaLB3Dm/iG8sKUtRGKGKhbraeYmkUrGLgvWOQJyAs9ePF39BnyZ9OIA4irLMKwB0GtCZcWp3WbBvoveZ/wNwdSXPvgwhP0MaGZNtqFyKkotlesHkObClhzUVuSblNEqxQGtxulQMdUlC7Z3vj/Va2eUwhuzYRWaZ/IP36IzCdpUcr74s5DZ0hcRjAFA2d5CvbDPl401CZ1pCUWckAoVbh4z0eDvROjo2oisJkWbbr7aRIDr8afUlCem+CBHZOxRwq5q21FSZGATaDs7GtZaUTmunE5Ale0O1pBuujQjHHJvj3cqQ/JFW0DdZ1cdPq/u+4x6sSA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=m5lWAVWstBaarM+fjf++IMYO5wS/fxouJNmeibZDzm0=;
 b=DS1k3GG8waIFqaepR7zarGFCK4R1Da+HpwZCGi+1/OYO7r0yQt1nPWDw4Aubl1YQeFr48AT++a52khtPPaeCSaCXEd5ToO8tFRfJckGOUs1AimxXCb1XdkLvulJvvult0nMH5Q0JNoFSaRQB4qbOlNpM4L8KKi+zRL+k2rjnXGOg8Z32nIjmdWND5KSoykC61MpFXdEi8KLuidqacL2twflbLQ46ny3M/PCL+pgfOodnbXGN+Em+SYZJOqp3XcLnBif9alW42JxEYLmVn/9z2IKpUSKnCzPmDRaWb9uRPWxVzbU/+3RieHocUF7Y7UfRjvt4k4rv2Xbgb2wYAySg+Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=gatech.edu; dmarc=pass action=none header.from=gatech.edu;
 dkim=pass header.d=gatech.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gatech.edu;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=m5lWAVWstBaarM+fjf++IMYO5wS/fxouJNmeibZDzm0=;
 b=eRvPBhsfN+ydvkmiESJ3PeBOZeIrWALqI4p/y8Sp8CC05GCkH2ib6qyPOlpR6Qlu1ONPMdjA4IT3sWLBJ6WVFjviKEAeYa4cOkW+hyJbz5/HGQS/icz/bXWNRDU/1Cptaf3SdCUk60P1pgdNSt3vLgGuo995DsBsCo60SksElHQ=
Authentication-Results: debbugs.gnu.org; dkim=none (message not signed)
 header.d=none; debbugs.gnu.org; dmarc=none action=none header.from=gatech.edu; 
Received: from BN8PR07MB5793.namprd07.prod.outlook.com (2603:10b6:408:9c::19)
 by BN8PR07MB8226.namprd07.prod.outlook.com (2603:10b6:408:74::24)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Thu, 8 Jul
 2021 11:43:08 +0000
Received: from BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4]) by BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4%6]) with mapi id 15.20.4308.023; Thu, 8 Jul 2021
 11:43:08 +0000
References: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
 <f043844e-dc06-6849-688a-d780e4706237@HIDDEN>
From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Message-ID: <ac84f060-b09c-f182-9473-a6cbcd743820@HIDDEN>
Date: Thu, 8 Jul 2021 06:43:05 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
In-Reply-To: <f043844e-dc06-6849-688a-d780e4706237@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US-large
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: CH2PR04CA0013.namprd04.prod.outlook.com
 (2603:10b6:610:52::23) To BN8PR07MB5793.namprd07.prod.outlook.com
 (2603:10b6:408:9c::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.45] (97.127.103.8) by
 CH2PR04CA0013.namprd04.prod.outlook.com (2603:10b6:610:52::23) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 11:43:07 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: c053f93f-a5b3-4382-e7fa-08d942058e58
X-MS-TrafficTypeDiagnostic: BN8PR07MB8226:
X-Microsoft-Antispam-PRVS: <BN8PR07MB8226D667E69636CD9B4E19C6D2199@HIDDEN>
X-GT-Tenant: 042d12d7-75fe-4547-b5b6-0573f80f829d
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: q63rXsGGLDEz1u5YRsOvqA82mjZNjBYKchQSje+XAuWTzrAi3PsrsIVsh4XmNmxX6RUYTuE7zV3brunG0djlBnHUD66CkI1TjCvKpsP/MR20qd0JVYbsjix2oX1dVM73pu+iv9TWLGNdXK7oJlLsSd+XaTYaDczplyBuvXF4IIRJszqKloSto4CRmtXcxrTcsUrEiS/gx61Cjn/FsfBWm5cOTCwPLOSSmehAk7/AzqwsCruVbgKwkwGK9bRp5Uf//ei/QMn3beWjb4WTk8tIywo0Tk1h8zRNADr4lKR14zoMq158U9qN+6w/o6L4C7SkILZyMGidujSvAADR75wSE7aVW2jDkeLdpd4qJvAInVZ4ztH9K0x6zhoIrnQBvQL/U8MSa/9W5DSbvzidLJw5GNngOJttAAnTpmgwC9sFaOMue9MJ9i5AT846HmnlRui1R2TdcfaCvZaXEwCwM0MgF/8Hb9eyv7JtwZHE3M/Wb2q58MimOiuUjqV67gjMr6T037YZiIhAcbJ0T/PR3oFUm3fqJ+rB7GGu4T7ExYs0LwRPR6Kt+01ApmGyHJQ3nV2+rB/FWbt3W9G9Uum0HD1O/iVE0d8p42S26A0Z5EGXP+fLVqBQcT0VctLMVVOETTxSpFJka3N/K6aIqY9TctZWAxnMI6QND5phJ4QJu8g5RGQMf3oLryBxmkjnKv7NhVQbYOJ0aRZKr4KyJ5yXaHBBR9ewRkpaUHmyABSksPw/sYs4gHm9Nb4kiSH/o86Wj1nl7vN/KtIHCb5goB3USdkHDKZLkExe0le6fc0C2fhlH0p/gkcT6f4jAhT2EH7zzaIj
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:BN8PR07MB5793.namprd07.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(366004)(39860400002)(346002)(136003)(396003)(376002)(6486002)(2906002)(53546011)(83380400001)(478600001)(31686004)(26005)(16576012)(8676002)(966005)(36756003)(5660300002)(786003)(38100700002)(86362001)(75432002)(66476007)(316002)(186003)(31696002)(66556008)(956004)(66946007)(2616005)(8936002)(43740500002)(45980500001);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: zTipF9v3Z1N1XPNCcUjuiJ8+6wCzEyRzaYd3aUKBsDJ+U12rUlqnPm38ruY5JJO7GMhKlxPJpKjtHgO+4XASbA2l28wTmZJC5xSyhlDGwhb3amcHN1DsSFOKjYaqBzQWIznnNqpuDymAdVrZ978xzAWhvOiQNuOW8wkmBwpnjmozWRsgaWXUJkArxFSgIqab/vmyzV1TJhn0FHfaBrpITECI2P6b5lWK5wc4FAvCj6mhLwLhnehSysjO0MA4aHQsgjQsHAFid4fJmUIwLxrCH30vLDsENDS/KTBfYbxMduD7n8pdAdniNYJEDwV8VTodornMK8HpGA11G+Xa1PgqcS+NtwKyIkEBimIQvWeKSrfXMp2adm3JtDnM+AizuXXdzDceOTNwlotrOUKyAkIq5zb6ZAFoomfTmu5mVX4gEOL4rbOHbc1B3BP3mLabcWkC49yS4ibTtICHRMOJ1KsCe1IpqPe/4/fYFZ1tBXQfvNIaZOv2NlYvje4cULZcNZ2WMSa9ItTQSihZNamNc9sawXX1ro3u5n64kGJrGEEAFQSJItXCUcI67l5lVQT3FLewimx+VOtVyVLJcORxJSsc8A2BFjWC70a+ZVskRxL/j4vVd0ISIemndDTh5qn17DCGQl5kLpq79i7PfoN8Xa4OEsHlE/0cDj1qVLaRNB4dgsZZy2bqIGTWsA5yxOgzO1CG0w+TbIyMUKy3eJuv36D1Q4MDm05bK5ZIw5ZId4bkvcwZ0+FaRSpANx2cOP2X9MSRJJdbvvpEXXNerxJB63HlqScOjsGd04Q2wtt56qOonlIFBS20c+P0lTBGOk4Vdyazq2Fx6Q6zQMxW+LyRDHPhjZ/Gv2zdbwLDdzFFdC/yzN1664sSZjnoN9bMhLe+WeliM4wXQky/jvA21Q3TrsvGEAne6WtL7xvp7iHGtniqAdK2yofJvi4bu/pzmCmDvUKeJ0dAzkXNboHYdIwTazE2z7UUTzP85nhiQ2fsvikYHTm+UNlCcNbF/U2QPLdsXN7ClrTLdC1vfY803TnMeHiGwh72xbVYv1meGzTvS5jWozLZSQ6BPT/oxwdQkxF91dwOaB/B6QQ0yhbnKDtjmfsBRGn5zbH9uRjhxaC83wR9wQ3eDGjFOc08h8YwaVdICE3gSifByS3/OnsA0kGc4n7uZ2zzHLQn1xdORxa2BjJ2ZPsF3SVdpNl7A3BR8hN89bV36ObwrFpyaec4g0vgN2M0/OZF3RdhtUYikwqhbS1DLL+qfe/0RgEnhYv/xG24M3m79RpP0F48R6+4RhAMx1JvAb5MGsRnKaYEqQfP1gHkCql4uKnhDzWdZfTeh97HLpV6
X-OriginatorOrg: gatech.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: c053f93f-a5b3-4382-e7fa-08d942058e58
X-MS-Exchange-CrossTenant-AuthSource: BN8PR07MB5793.namprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 11:43:08.3504 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 482198bb-ae7b-4b25-8b7a-6d7f32faa083
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: XWBvuWxZ772aSWHjEScQieOjKSSdEV5eX1REgb3E0ULrk+cstbiQHNb1CxAItDjc9aFeogg2Bli8/3LzRh1Xiw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR07MB8226
X-Spam-Score: -0.0 (/)
X-Mailman-Approved-At: Thu, 08 Jul 2021 09:57:21 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Thank you Taylan. This does appear to be the same bug. This bug can be
closed as a duplicate. Looks like Andy Wingo suggested a potential fix,
but there was no follow-up. If someone is willing to show me the ropes
when I need them, I can take a stab at learning the Guile codebase and
fixing the bug.

Vijay

On 7/7/21 3:29 AM, Taylan Kammer wrote:
> On 07.07.2021 02:31, Vijay Marupudi wrote:
>> Hello all,
>>
>> It is unclear to me what the intended behavior for (include
>> "filename.scm") is, so I'm sending an email about this potential bug.
>>
>> The Local Inclusion docs
>> <https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>
>> seem to state that relative paths are found relative to the file that
>> included them.
>>
>>> If file-name is a relative path, it is searched for relative to the
>>> path that contains the file that the include form appears in.
>>
>> So if I have a file "/libraries/libname/main.scm" than has (include
>> "./helpers.scm"), then the file "/libraries/libname/helpers.scm"
>> *should* (I think) be imported.
>>
>> But this does not seem to work if "/libraries" is in the GUILE_LOAD_PATH
>> and my current working directory is somewhere else, say "/home/user" and
>> I'm running "/home/user/program.scm" that imports the (libname main)
>> library from "/libraries". Then Guile seems to try to include the
>> "libname/helpers.scm" file from the current directory, which does not
>> exist.
>>
>> Conversations with leoprikler in IRC have revealed to me that
>> call-with-include-port is the function responsible for this behavior
>> <https://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/psyntax.scm#n3231>.
>> `syntax-source` returns a file path relative to the load path, and
>> include tries to use that path to open a file relative to the current
>> working directory.
>>
>> In Guile's bug guidelines
>> <https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Reporting-Bugs.html>,
>> to me this fits
>>
>> * Whenever documentation and actual behavior differ, you have certainly
>>   found a bug, either in the documentation or in the program.
>>
>> and potentially
>>
>> * When some part of the documentation is not clear and does not make
>>   sense to you even after re-reading the section, it is a bug.
>>
>> I believe this is a bug, but I may be wrong, so emailing to clarify.
>> Thank you!
>>
>> Vijay Marupudi
>> PhD Student in Human Centered-Computing
>> Georgia Institute of Technology
> 
> Hi Vijay,
> 
> I believe this is the same bug as this one I reported 5-6 years ago:
> 
> https://bugs.gnu.org/21613
> 
> Sadly there was no progress on it as far as I know.
> 




Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49452: Confusing behavior with (include) used in file in GUILE_LOAD_PATH
Resent-From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Fri, 09 Jul 2021 04:09:01 +0000
Resent-Message-ID: <handler.49452.B49452.16258037032772 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49452
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: Bengt Richter <bokr@HIDDEN>
Cc: 49452 <at> debbugs.gnu.org
Received: via spool by 49452-submit <at> debbugs.gnu.org id=B49452.16258037032772
          (code B ref 49452); Fri, 09 Jul 2021 04:09:01 +0000
Received: (at 49452) by debbugs.gnu.org; 9 Jul 2021 04:08:23 +0000
Received: from localhost ([127.0.0.1]:58049 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m1hoN-0000ie-H9
	for submit <at> debbugs.gnu.org; Fri, 09 Jul 2021 00:08:23 -0400
Received: from mail-co1nam11on2134.outbound.protection.outlook.com
 ([40.107.220.134]:65440 helo=NAM11-CO1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vijaymarupudi@HIDDEN>) id 1m1hoL-0000iR-Id
 for 49452 <at> debbugs.gnu.org; Fri, 09 Jul 2021 00:08:22 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=DM3fJ2fYa/Z5XsMwc4fJc85Pl0ld9EziP+l9O6R3Ke4479jd8w51Tq07fKxfrXvITFL/ZDxoTZ4YacCAJyZDupoCpG20f80oIPpkY0hEnpuVc63kBi6vNM1r1AacgyS+w3Yib8LoQXevBAuULROF+XlI3Vp42XqfALThrhEZpmxLrVnad4F42JBs4rmlpt5GiktAVUxet7aUyjJKsUDGKfkxQPgQNc5kM3WKK3iiV57UIQxduN4LqbC9ZY5n6pe70FhcqWvyBYAI5etC73iW7lVgU5BwiJA8jhjRqqqYus0Uud9RxQa0cLmVdCXfJRJExz4nxs1ysBTE8lsyk+9GNQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=m06ZjE/5rxUz3gR9o0B9QuVtP7oRtA5HPULuurpl52k=;
 b=nk/P40IaFq0ogzxWCxTqm29Od4EgEqc8SqN5HWgQlft/F6mra9m/I/liaB6P1NJPOS5VMIm+evGeqyZrfhQhb9v7b8kj3miYaYaf59EN/k9UGnAbk8l/l69CL1uD06z045GSsYfLKfGC0QWZMUr/0vl7lhZPI0J0tvBAKMyXBdMshxWufXGgu/bVWm2+9z8WJjYY6z42nKO/NqeGPzSOv7Styt8dQ7lRVAD09T3iACT8cbkQLdb1pXZOCUH3aa0vS5aYVd45TlbIMF+LVWJzGDxWU3tu56Ns8LZXDlANXIvfwfPENfeJSVMKP3QFUrBWlK3K7U9piakalzyE2UHfsg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=gatech.edu; dmarc=pass action=none header.from=gatech.edu;
 dkim=pass header.d=gatech.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gatech.edu;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=m06ZjE/5rxUz3gR9o0B9QuVtP7oRtA5HPULuurpl52k=;
 b=owO6AEqhW5gFNMS+uyOlWq9Eljri6KskyhHdmfEJfQAV8TXToBeQG3hfUCTue4aHpMHvbYgiPxSooPIj8L1/dYKzdZBmNmD1YuHIfu9omll1mRij/0srrnWzCXBOhR9jrA5t67fLc5mgq50J+kWCPisoZJSlFVH0Sna9sFiALyI=
Authentication-Results: debbugs.gnu.org; dkim=none (message not signed)
 header.d=none; debbugs.gnu.org; dmarc=none action=none header.from=gatech.edu; 
Received: from BN8PR07MB5793.namprd07.prod.outlook.com (2603:10b6:408:9c::19)
 by BN6PR07MB2786.namprd07.prod.outlook.com (2603:10b6:404:41::18)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.31; Fri, 9 Jul
 2021 04:08:14 +0000
Received: from BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4]) by BN8PR07MB5793.namprd07.prod.outlook.com
 ([fe80::95ef:633a:4d50:42e4%6]) with mapi id 15.20.4308.023; Fri, 9 Jul 2021
 04:08:14 +0000
References: <7b37a89f-39a6-1433-daf4-469a40656a6b@HIDDEN>
 <20210707212256.GA2266@LionPure>
From: Vijay Marupudi <vijaymarupudi@HIDDEN>
Message-ID: <890ae165-150b-8f5a-63ea-2ee4247f6d0f@HIDDEN>
Date: Thu, 8 Jul 2021 23:08:12 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
In-Reply-To: <20210707212256.GA2266@LionPure>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US-large
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: CH0PR07CA0012.namprd07.prod.outlook.com
 (2603:10b6:610:32::17) To BN8PR07MB5793.namprd07.prod.outlook.com
 (2603:10b6:408:9c::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.45] (97.127.13.219) by
 CH0PR07CA0012.namprd07.prod.outlook.com (2603:10b6:610:32::17) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.4308.19 via Frontend Transport; Fri, 9 Jul 2021 04:08:13 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: cb812121-a042-4645-94fb-08d9428f2c26
X-MS-TrafficTypeDiagnostic: BN6PR07MB2786:
X-Microsoft-Antispam-PRVS: <BN6PR07MB27867FF1887F987126D0AE01D2189@HIDDEN>
X-GT-Tenant: 042d12d7-75fe-4547-b5b6-0573f80f829d
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 5dtOw9/PiA1SznaAR4feaE/wqePoCo206+1h1owDb6XD9kaal9GXLOHbGuOenc3qV7rP0kKIwhSV1/SSdGyS1pWdDHgdYGRucI0llkD/uUh5r/+BqwAxpjD0Z8jQqonNfzyELMgMw592QqNcJ72irry+wQfWxZ8jHqf/RVLLt8LiAmaKuYPsgjVQE1wo/SKqKvQb5mp9xjIqAMUFxBv/AUYqVRylcNoH9OFSJJ0jKYKddTOwuf8bgrkOOYOcUH5FDVCEotJoQ3tiOlA1rSApZAuihj23/poAYYrHWgN+Aa4xl8p0T5s3BlW+AKwHGS4lR1zPC7hMvLUM3IFb/vn8f0W0M10Fm7N8qLffqZVyiu+NZm4J5NXUHWIoydCVrQkbEeaua+y+Abg1oZ+/qgPLP4gHoY5Hd7fyjcorxSZoXs1ShJWkzqobRCpyHLKRoHC/rRZFI45Z+gjwK/Ac46jcvJKMrSYCmib1/C4Ly/2jxVA+HhYC/DOhihSllk0H9dChJq0MPPXOSpfAjqScjtDZPPUr/COCe6fXMBC2/CknA/Fxhsqrs/8mlVBdqOX6vdrvWK/PYtnfJwABX54Nuep5m7E+YjkI//tGT4a9rY0UBgKLNzpClgyPCfyGN50Y1CkTKsRm7eHfT5cAxsbwv9u4yANQUokEIFtUACyF5GXH7kZLjvuvmiUp5PHRsSLahgzrLPRKEhJdNGc83supmsNnppDIv2jN6pMbmqyYX88VxBeHro7+gHSHYVwG/hZssQVLG9/GaHhEQH4eYMcjMFidFsuMGQakCdm3u43sR2zpgm5eAgHqqUIcVjnpJtHSpXU1
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:BN8PR07MB5793.namprd07.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(39860400002)(346002)(366004)(376002)(136003)(396003)(4326008)(5660300002)(66556008)(31686004)(66946007)(66476007)(2616005)(956004)(75432002)(786003)(316002)(26005)(16576012)(478600001)(53546011)(8676002)(83380400001)(38100700002)(86362001)(186003)(36756003)(31696002)(6916009)(2906002)(8936002)(6486002)(43740500002)(45980500001);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: zhP/zUSVxRg4sO7qDjdqvUx+QgwihNHYEyhspMWKbNZ3zCtutTD7yK0Cclup7aWboYPToI5gf/T6MaIHvtjqU0Bjs7ARgjnhRd9A7gKnu4R41jIuyW9ZKubvYaGr2oxzwXGi96UUn1G2yClkFjuqW/ZRElBSSmxDX51cE9cFc7ujyjRgm8uH6zQrVBCB/wj3aTmn4QU2okuE79uNDwNGgGqoM3wkN1HPLTaxp7+AwYvnONoCegHvjnHk2o28YOB6gfBIsZOyGTUldWopcw2elTebzAxW4vMcI8dcN1+QMVv8YWx2Nv2jzDPLmY1SSyzz8hV5m2849my7Sl50ckhzRvoS/O51KFDFJEYO8tTm56Kn6PX7LfAcg7UogCtWUvH4+QtAs3tQpY2Qzx/irE3X6YuoQOq0+YZxm9h4OaZxGXltVdlHnTJ29CuWfBjxAt/ONtkfY3ZGcz0zXDCjsyOOCLjs/BoneusmKRxPseUyiByzD+rroqPcyHSGakFxf8sTeyRL7/qqvDHBNj1BrsVKf+wWlMQHg1pfGu1MnHlCfx8ssAt1Fb5OLos/VPO4gtnisAPOdZiucYI4H2wz9Xt1xPZwPt5gEEk5oEv6d88KR4a7DeEfFC6fzLmpGP/52B3mrpaoOqazHTGJw4MG0MLBVVfeVirWWWfqtMIgvzm0EU307Gm+ap2LJ1m/U57DRMrSpuefvuO1+H/T0LoTgBKyryzyVVV3F5xGaqA6e8YqNxAMkIzwRiKX6xYWKdumS3pdB/fzCVJl2gJWq+y9InBsVRDfxHvMWKL8U6pXzMKn0m8SeVU+rwiwPOpowJSO92NTG48dGRAGrWZHPORatUi9dW9bp46upy/VDvrqAGuurE7ro9AGXnpPgZmmR7p1Ba2wmDjV0QdyWEfJ6Bc9g+5P0Th3J4BsYk0Pc2PDe4gdnQAPwgEDkvCOGL70DcodKIpG+5KQnT8ng0f7CQpy6TPzkIDOSunJxSUdDzUqYEJfNbE8TG/cDRqzKmpxUTN/hXus39COoqh1K5eT/UzBhCiZ5OGYsbv8iw6n5c2yTa7wv4PhtIiP55YEqUJdKnpVrQ8jm37lolZqOj7PzoMjI/RFgC4vzmtlEXgEsHiZx70W6yCVR4Y9mVFfzMRBbpm1R7Kcc0n7pFfYe3rnkj1pJoW8By6J/Cj2rXFy5wWVZuaBJJytX8mzxzW+SjadFiatPQyIL3q1fpIITfi8p0dtHhTeXASkrmyjvuJzvmUfugnQn+b7BILedj7gDSraCfEGUEfZH0etm6k0Rw2A/yr9T+OPAB7LUB5bKcf70KLeNofb/2dHX0vTvTG6jqw8wBZlDj0u
X-OriginatorOrg: gatech.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: cb812121-a042-4645-94fb-08d9428f2c26
X-MS-Exchange-CrossTenant-AuthSource: BN8PR07MB5793.namprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2021 04:08:13.9617 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 482198bb-ae7b-4b25-8b7a-6d7f32faa083
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: B4e/1v4O0FwmaHAq9y4JDTb4+DVFXmXnweVhx10epPWUh4NpSLJZc8vD8CCOCmaMU7fmQ9+6L/vMLpeUTap2xQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2786
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Bengt,

Unfortunately that still doesn't work :( I think they should be
considered the same though, when this bug gets fixed.

Vijay

On 7/7/21 4:22 PM, Bengt Richter wrote:
> Hi Vijay,
> 
> On +2021-07-06 19:31:38 -0500, Vijay Marupudi wrote:
>> Hello all,
>>
>> It is unclear to me what the intended behavior for (include
>> "filename.scm") is, so I'm sending an email about this potential bug.
>>
>> The Local Inclusion docs
>> <https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>
>> seem to state that relative paths are found relative to the file that
>> included them.
>>
>>> If file-name is a relative path, it is searched for relative to the
>>> path that contains the file that the include form appears in.
>>
>> So if I have a file "/libraries/libname/main.scm" than has (include
>> "./helpers.scm"), then the file "/libraries/libname/helpers.scm"
>> *should* (I think) be imported.
>>
> 
> A little nit, but
>     (include "filename.scm")
> is not identical to
>     (include "./filename.scm")
> so might it be worth trying
>    (include "helpers.scm")
> in your code?
> 
> And/or should the docs explain that both ways of writing a relative
> file name in this context are or are not acceptable?
> 
> Might some macro dislike leading dots?
> 
> Long shot ;-)
> 
>> But this does not seem to work if "/libraries" is in the GUILE_LOAD_PATH
>> and my current working directory is somewhere else, say "/home/user" and
>> I'm running "/home/user/program.scm" that imports the (libname main)
>> library from "/libraries". Then Guile seems to try to include the
>> "libname/helpers.scm" file from the current directory, which does not
>> exist.
>>
>> Conversations with leoprikler in IRC have revealed to me that
>> call-with-include-port is the function responsible for this behavior
>> <https://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/psyntax.scm#n3231>.
>> `syntax-source` returns a file path relative to the load path, and
>> include tries to use that path to open a file relative to the current
>> working directory.
>>
>> In Guile's bug guidelines
>> <https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Reporting-Bugs.html>,
>> to me this fits
>>
>> * Whenever documentation and actual behavior differ, you have certainly
>>   found a bug, either in the documentation or in the program.
>>
>> and potentially
>>
>> * When some part of the documentation is not clear and does not make
>>   sense to you even after re-reading the section, it is a bug.
>>
>> I believe this is a bug, but I may be wrong, so emailing to clarify.
>> Thank you!
>>
>> Vijay Marupudi
>> PhD Student in Human Centered-Computing
>> Georgia Institute of Technology
>>
>>
>>
>>
> 




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 23 Dec 2024 05:09:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 23 00:09:00 2024
Received: from localhost ([127.0.0.1]:52870 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tPage-0006eW-8z
	for submit <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:09:00 -0500
Received: from mail-pl1-f169.google.com ([209.85.214.169]:52234)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1tPagc-0006eO-6F
 for control <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:08:58 -0500
Received: by mail-pl1-f169.google.com with SMTP id
 d9443c01a7336-2165cb60719so34993255ad.0
 for <control <at> debbugs.gnu.org>; Sun, 22 Dec 2024 21:08:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734930476; x=1735535276; darn=debbugs.gnu.org;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=cxaoyQmDG+CpQ0nQB2uA6m77Iu0CmNTRKS7dVqpleOs=;
 b=DBLHkNtMTJNcU5U8ba2Mr4/uDSrxdBYH3lVQ7461N8gqj9VNZhBa51+9TvXxqTw+bk
 XnJOp2lAVhPCs4IixPPwh/hVqZBr8K2wEF120JdKuJnH/nZwkN55AAQpc3cH5hgDaKe0
 vtui6HVwWFSQfKk6d7Emu5/RUm/xvJn/D+4COFgXyp/b3Qk7/1V+rhl9vawbxdW63c+A
 gOOU8XHtT3IvjXRaahqLs2fyEPQ+sQbnGS/zQXQEr+KZGGzlLgdVi1z8HNKCxDPY22Vl
 8+4dJFf3q0hGdWYN1y8xzFV1bs3rJkXMe3j31AsuBSnRbMh2uDZ8Uex52g39Ibxf3rB1
 kZrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734930476; x=1735535276;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=cxaoyQmDG+CpQ0nQB2uA6m77Iu0CmNTRKS7dVqpleOs=;
 b=Az6OdPewqYIZaL8vgAYR5R1J8jZ0nMnReDmINkrbTvmzHrzklfPWO/W6K6sW+sQxdf
 p6xShjz6irdFQg8YPB8pQcpHRMFMW8g7lcV5rFVqspD0OQj8L38zHOmMX7zwvN+YuzvQ
 SbnsocRWPJ0/ScC/Qwl0KZ1EWqaHppRg3QuodSiQm6YeK7Ri6tuu0awVyGW5xotQrW/p
 A2cBTnPiqLxzXOlhMgv61+ePLp/SRyDO3RNjMWq949b+r1Oo8igGBDep8jOXO1/yMrU5
 ryS/IKuXCz578x3nwYcRhtAIpdlY+WfIkUPMdBQ7MkaLlBqIPkLl1OPdmxOoo6ix5g9K
 QWeQ==
X-Gm-Message-State: AOJu0YwxFu/04ngXCbF83yY7rMjEP+66bYyJNt0IF2n7awF9KOvvjqdJ
 4jrV5fSmu91sZTlqdU/6g0VrQBf77zFuVbU+SEEkpbTKjTbC7IZCO2f4Lg==
X-Gm-Gg: ASbGncu9pf4gp5HGkSs74VJ92/tkN7fgLPDTK8yX034pYtr5oYHsuOKFk2TnnOi9w+D
 tFjTnSW8yuTMgDeevKlotMLTjIwYohZENEBhjY/GqJMlxVyWf6ovSQLrT3wjoST9zU4KbNQIVDz
 HdthoRc3DGGi8VgH+7SiUGvzO64w5Hvbi7isDsqtHgHO7+4wAlGYZZewXrnm8SxNGA4MswLxZxr
 YbCPWnvQLnnwjMGVzpK+SGTWHyvduJIRBMnl1XGzOpWqPFe2B5jzg==
X-Google-Smtp-Source: AGHT+IF3SKLXu4P+/vPlVvja84Z6j9j2wYic1R7kPDnhdHtZJV13kkghgrTttRXJSc85YRNWkPOaJg==
X-Received: by 2002:a17:903:234c:b0:215:5a53:edee with SMTP id
 d9443c01a7336-219e6e85b25mr151743515ad.9.1734930476524; 
 Sun, 22 Dec 2024 21:07:56 -0800 (PST)
Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-219dc9d4c06sm62940865ad.126.2024.12.22.21.07.55
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 22 Dec 2024 21:07:56 -0800 (PST)
Date: Mon, 23 Dec 2024 14:07:46 +0900
Message-Id: <87cyhjvvfh.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: control message for bug #49452
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 49452 21613
quit





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 23 Dec 2024 05:10:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 23 00:10:04 2024
Received: from localhost ([127.0.0.1]:52875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tPahf-0006h4-KH
	for submit <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:10:03 -0500
Received: from mail-pl1-f175.google.com ([209.85.214.175]:59543)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1tPahc-0006ge-9X
 for control <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:10:01 -0500
Received: by mail-pl1-f175.google.com with SMTP id
 d9443c01a7336-21675fd60feso44722335ad.2
 for <control <at> debbugs.gnu.org>; Sun, 22 Dec 2024 21:10:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734930539; x=1735535339; darn=debbugs.gnu.org;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=pkrbt5pYOltvhrGlm0b+vcAPbGdD9OjDse0fnn5jrvc=;
 b=l6SAgmUyURPUs8RFHgWywH/Un+oRR/b3i30YLfgDMz7lHAe6KCATT8PgOJ2WKhdnPB
 qY7AgOiZs2Y54piKhjYupwYkL0oXOiYwyE7+8kkmOsklagdo8QlNo4K+OmdsM+8agoTm
 EaCizC3Ssu3kY2/+FLiKWj0PjU5uCl6q4lbAHe2A6sAafZ1dMgKKPDWPyUWT1Dok8wG+
 RWe9kotFAVt2yNw23kpaq0K7voznvFmv8VMi/7XTljoN9SGSGuTXa6FMQ8s/f8I+FyZT
 LqMyYNrtytyUg98kSgqX4HPwTZ4TRZCLGn3Ml9r2IcCETlqM/4mXdVygozN+cYb1tSaX
 IJFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734930539; x=1735535339;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=pkrbt5pYOltvhrGlm0b+vcAPbGdD9OjDse0fnn5jrvc=;
 b=gH1CcAgI5kZaT4NQxVsd28bYqMAmnw2WyydnYzmCnPQSjF6kPMf3KwKT2E4AxaKNkV
 VblKILIJMstLpsZU0PbDTEDlOF5KKGAZE/pqe02dNcI/c9CG+HujZEAq7IXj54gd5a4/
 706arOdeDAp3pFyVmIWXtEoyGY6KrYjrJ5B0InaIfOTCw4YXKAKiv9UDmQCHiKY0A4Up
 B6KmYMKU3LzW3mGQtbR670EmpT+Vs4bYGYXQ3yVwc5bSriCBt3lBGFTEGU8A1EAivLTJ
 kWfo449JFYc2nzoTFTIDB5g5k/Po3EQhdk4O1XfWD8I+TqsGdqcmhgXiz/fVO5qFoVK8
 CtYQ==
X-Gm-Message-State: AOJu0YzieNvNTo47GXmk6NSwj/8UifhliH/YUAfW1YTy2AK353vY/L47
 otAf2HiEDpkS4riIoSKlK8se092P/f5pJZxrpWxXOlrpR/nxOg/MCQRmng==
X-Gm-Gg: ASbGncswEgt3E7URUNNTzRjcGi3xGQUch0w2CKMrXNMFM0ZfuGv6jZ/76DQGRu50m/r
 U06zMR2VPz3+o8z1xNqP9ou19FqK5+fxAtJTg/nS6P5InFudskPU1810eCsbr9K2yzpP7ZuZbUs
 Eb+ucbYdNJak0w/71aowDusGL+9tGLis1FcRU80dtOFpxY/Kv6faA5AaZrqweXlPgxAA019aGqS
 l1sRwl1OJ8y1kx1RaQjECIv8Cm3RZ4ukuU//n0uxN9eg1O/d1VOgA==
X-Google-Smtp-Source: AGHT+IGDC9fWlOTv4EAJ/cnFhmBNMBVfD/2wdFTuVliwJTFEnsDsFou4GPFfqwf+QLxXsVIOzSOVQw==
X-Received: by 2002:a17:902:db0f:b0:215:4362:bc76 with SMTP id
 d9443c01a7336-219e6f29827mr170401315ad.54.1734930539268; 
 Sun, 22 Dec 2024 21:08:59 -0800 (PST)
Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-219dc9f6251sm63281205ad.207.2024.12.22.21.08.58
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 22 Dec 2024 21:08:58 -0800 (PST)
Date: Mon, 23 Dec 2024 14:08:49 +0900
Message-Id: <878qs7vvdq.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: control message for bug #70778
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 70778 21613
quit





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 23 Dec 2024 05:10:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 23 00:10:42 2024
Received: from localhost ([127.0.0.1]:52892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tPaiI-0006oY-KB
	for submit <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:10:42 -0500
Received: from mail-pl1-f171.google.com ([209.85.214.171]:45292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1tPaiG-0006oP-QR
 for control <at> debbugs.gnu.org; Mon, 23 Dec 2024 00:10:41 -0500
Received: by mail-pl1-f171.google.com with SMTP id
 d9443c01a7336-2161eb94cceso24219685ad.2
 for <control <at> debbugs.gnu.org>; Sun, 22 Dec 2024 21:10:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1734930580; x=1735535380; darn=debbugs.gnu.org;
 h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id
 :reply-to; bh=7mwCbUeRLbu0fF1MsRmJtlQYamR3h4bJnpBPxBIGzWE=;
 b=BtCR7YSWG7syT0chiXqOuZsDvkZdTV51XFArXo+T5uo42dfP3U64wL6Efovt7ykUfu
 4Tlspo2CPs0f5FnkO4Lds9QFkM0bGOacxFFg2lkgAbr4dcCa6EeYdNVE+jqu/LSISxCi
 tTNb9LGEaHKelRQYnQJd8a7SMb1c1Yo0n5oSHgtQwz+4qWR4vy/ssCeN5w9MU+Ynv6Y7
 qLh0oehAnO+a+hZNczbLpq9MKg87kA5IuPtayS2RcWA+OEOHLFX+amkXWfE3J8IoqYn7
 Fqrfl36b11ity1x8u8ItzsepgAVTcjhlPVWZNv1dJjdmCP24QLD1bkDK2pbAqfuyQv3S
 X68Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734930580; x=1735535380;
 h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=7mwCbUeRLbu0fF1MsRmJtlQYamR3h4bJnpBPxBIGzWE=;
 b=jSGfCG6h90eZtE2DowF8OG9GN3hJoQ4U8n/0VPRp44giX/izO/EvaF2HXK3/APo5Wj
 y5nA5G20856LyO1MCovzaO8ki00OWQnrKqyzcobJL1JsP/yTv4sM8rlw2j2os6QmbojT
 eHCaIf472bP+Vgy85b3aE+73wOMMZoYhBYL8jwIFtkKOqki28Vg0aoWAOvX9UsoeY0b/
 ZbUef7G4QM4+zIk5ObyFDYTFJleotiXsq+SRSaTPjt9fyaxslCI5jo1Sg4sB5rR8MngZ
 PYwkXmCjPYpGlHr64PS+wtMunc7c5kO3Sgj32Qk+e05N36NBgYfbGKTuOXRCQDcaftnc
 eApA==
X-Gm-Message-State: AOJu0YzGBKrnkn6f2E6RUPAbfLd0e7NlIz0UdfvL0B/Gvv7JD9Ot1B/0
 oozYQRcGy/XP3eq008JbnlP5mSdONXVTF1hGd7oZRKmLCu99GFHLhiu66g==
X-Gm-Gg: ASbGncv6s9IRcQ2CyKdMg9e/Gks8eeX543EPRYKsldjPtjnQ/lTtAVnN87wt+v2GvZe
 rNLYHJr45qDPQ6+DIQ08IPiBJwjITvly6xTJ34zKnk4IiO93QdQz5PfVH7w98qY7L+Os2vD4uql
 IUZ19pooF40N3NTyV7Rfd9POQodL0fIA/yrEcfGeMmfPeUnByyu69B1L4wcmcgFC0MCI+wtFOUE
 X67hnky9PlLQk2roJw8ivoqmwUu5724Uup/qnzY1hGBGOnoRhs5rQ==
X-Google-Smtp-Source: AGHT+IFYE+4RqjQbWwoDi3GX33bY6V8u5Td0Ee/2JabObyAKidlc+bxKSISq83emtJIxY3ecQTvpEg==
X-Received: by 2002:a17:902:d48b:b0:20c:5533:36da with SMTP id
 d9443c01a7336-219e6f11759mr150896575ad.42.1734930579766; 
 Sun, 22 Dec 2024 21:09:39 -0800 (PST)
Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-219dca02397sm64843175ad.238.2024.12.22.21.09.38
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 22 Dec 2024 21:09:39 -0800 (PST)
Date: Mon, 23 Dec 2024 14:09:29 +0900
Message-Id: <877c7rvvcm.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: control message for bug #66046
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 66046 21613
quit






Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.