From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:774e:: with SMTP id g14mr10019496qtu.326.1624014155907; Fri, 18 Jun 2021 04:02:35 -0700 (PDT) X-Received: by 2002:a25:7688:: with SMTP id r130mr12512606ybc.462.1624014155544; Fri, 18 Jun 2021 04:02:35 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 18 Jun 2021 04:02:35 -0700 (PDT) In-Reply-To: <857594ee-8b25-46b2-8f9e-fa89ca335b57n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=94.228.180.66; posting-account=d5j2DQoAAABeZhUIl30hw1xF6LEcGIMa NNTP-Posting-Host: 94.228.180.66 References: <051a91ba-2e69-41a7-b5c6-14d821946a2ao@googlegroups.com> <857594ee-8b25-46b2-8f9e-fa89ca335b57n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <64041caf-7795-478a-a66e-15245e34059en@googlegroups.com> Subject: Re: Unable to use "Find all references" with GPS CE 2020 !? From: =?UTF-8?B?SsOpcsO0bWUgSGFndWV0?= Injection-Date: Fri, 18 Jun 2021 11:02:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62242 List-Id: Le vendredi 28 ao=C3=BBt 2020 =C3=A0 12:35:39 UTC+2, J=C3=A9r=C3=B4me Hague= t a =C3=A9crit=C2=A0: > Le mercredi 26 ao=C3=BBt 2020 =C3=A0 16:47:08 UTC+2, J=C3=A9r=C3=B4me Hag= uet a =C3=A9crit :=20 > > > > These days, I tried to use GPS from Gnat CE 2020, Windows x64.=20 > > > > Unfortunatly, 'Find all references' does not seems to work.=20 > > > > It happens on 2 different PCS, with any project I have tried, inclu= ding the one used in the tutorial.=20 > > > I have probably an identical setup: 2 PCs, Windows 10, x64, GNAT CE 2= 020. On both, 'Find all references' works perfectly, even on a relatively l= ow-powered laptop (2 cores, 2 logical processors, 1.1 GHz). I'd say it work= s better than previously: in earlier versions, the reference finder gave up= due to (perhaps) a time-out, or sometimes didn't want to work at all for t= he whole session.=20 > > > Perhaps your problem is with the path? "C:\GNAT\2020\bin;" or equival= ent should come first. It's important if you have multiple GNAT installatio= ns.=20 > > Thanks Gauthier for the suggestion, I have simplified the PATH. But it = did not make it work.=20 > > I have made some additional tests with a new computer, and it works suc= cessfully.=20 > >=20 > > But I am still facing the problem with my own computer.=20 > > I have found one difference using ProcessExplorer : subprocess ada_lang= uage_server.exe is not running after my .gpr project is opened.=20 > > It can be successfully started from command line "C:\GNAT\2020\libexec\= gnatstudio\als\ada_language_server.exe ...", but it is not started from GPS= .=20 > >=20 > > Any idea where to check ? Any log option to activate ?=20 > >=20 > > J=C3=A9r=C3=B4me > Seen in http://docs.adacore.com/live/wave/gps/html/gps_ug/environment.htm= l#the-ada-language-server=20 > "One known limitation of this server is that it doesn=E2=80=99t support f= ile paths that are not valid UTF-8."=20 >=20 > And in %USERPROFILE%\home\.gnatstudio\log, I found :=20 > ...=20 > [GPS.KERNEL.XREF] Set up xref database: :memory: (12:24:25.635)=20 > [SQL.INSPECT] Loading data from data into database (12:24:25.651)=20 > [ENTITIES.TIMING] Created database: 0.017679200 s (12:24:25.653)=20 > [GPS.KERNEL.GPS_KERNEL] Refresh_Context: no child focused (12:24:25.668)= =20 > [GPS.KERNEL.MSG] Not loading C:\GNAT\2020\share\examples\gnatstudio\tutor= ial\obj\sdc-msg.xml (12:24:25.668)=20 > [GPS.LSP_CLIENT] Starting 'C:\GNAT\2020\libexec\gnatstudio\als\ada_langua= ge_server.exe' (12:24:25.834)=20 > [HOOKS.EXCEPTIONS] While running project_view_changed:GPS.LSP_MODULE.ON_P= ROJECT_VIEW_CHANGED=20 > _HOOKS.EXCEPTIONS_ raised ADA.STRINGS.UTF_ENCODING.ENCODING_ERROR : bad i= nput at Item (34)=20 > ...=20 >=20 > But I do not understand which file path is not valid UTF-8 : I have used = standard installation, and I am testing sdc.gpr, which is provided as a tut= orial=20 >=20 > Regards=20 > J=C3=A9r=C3=B4me FYI :=20 This specific problem was due to an environment variable with French charac= ters For example :=20 C> set ONE_VAR=3DD=C3=A9j=C3=A0 C> gnatstudio.exe=20 .... and ada_language_server.exe process will fail to start when opening the 1st= gpr project. Same problem with gnatstudio from GNAT CE 2021