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
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
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
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
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. >
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.