From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.116.214 with SMTP id o205mr1204855itc.13.1519383204165; Fri, 23 Feb 2018 02:53:24 -0800 (PST) X-Received: by 10.157.46.5 with SMTP id q5mr52269otb.10.1519383204050; Fri, 23 Feb 2018 02:53:24 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!o66no715267ita.0!news-out.google.com!10ni899ite.0!nntp.google.com!w142no719182ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 Feb 2018 02:53:23 -0800 (PST) In-Reply-To: <29d286a8-f740-4478-8619-8235f977665c@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.170.137.10; posting-account=BdhepwoAAAD2gYa9OWHpN5JW78SH4mVo NNTP-Posting-Host: 109.170.137.10 References: <29d286a8-f740-4478-8619-8235f977665c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8c84c60f-522f-4974-820c-ce7a6bae9cdd@googlegroups.com> Subject: Re: raised CONSTRAINT_ERROR : gnattest-skeleton-source_table.adb:1023 access check failed From: robinmoss@e2eservices.co.uk Injection-Date: Fri, 23 Feb 2018 10:53:24 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2328 X-Received-Body-CRC: 2311472788 Xref: reader02.eternal-september.org comp.lang.ada:50596 Date: 2018-02-23T02:53:23-08:00 List-Id: On Thursday, February 22, 2018 at 2:36:41 PM UTC, robi...@e2eservices.co.uk wrote: > Hello, > > I've managed to get gnattest to run locally but I hit the above error when i try to generate stubs for my code. > > Anyone got an idea what could be causing this problem? the verbose output doesn't give me many leads. Any support would be appreciated > > gnattest firmware_host.gpr --stub -v src/rest/json/firmware-rest-v0_0_1.ads > gnattest GPL 2017 (20170515) > Copyright 2011-2017, AdaCore. > [0] firmware-rest-v0_0_1.ads > warning: (gnattest) firmware-rest-v0_0_1.ads:27:1: elaboration control pragma > this can cause circularity in the test harness > raised CONSTRAINT_ERROR : gnattest-skeleton-source_table.adb:1023 access check failed > > > The line that has the error is: > > function Get_Project_Path (Project_Name : String) return String is > begin > return Project_File_Table.Element > > (PF_Table, Project_Name).Path.all; > end Get_Project_Path; This seems to be an issue when using GNATCOLL.JSON, raised a bug on github for it.. https://github.com/AdaCore/gnatcoll-core/issues/15