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=0.1 required=3.0 tests=BAYES_20,PLING_QUERY autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:1264:: with SMTP id b4mr559531qkl.266.1598610937935; Fri, 28 Aug 2020 03:35:37 -0700 (PDT) X-Received: by 2002:a37:6516:: with SMTP id z22mr572693qkb.164.1598610937610; Fri, 28 Aug 2020 03:35:37 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!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, 28 Aug 2020 03:35:37 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <857594ee-8b25-46b2-8f9e-fa89ca335b57n@googlegroups.com> Subject: Re: Unable to use "Find all references" with GPS CE 2020 !? From: =?UTF-8?B?SsOpcsO0bWUgSGFndWV0?= Injection-Date: Fri, 28 Aug 2020 10:35:37 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:59811 List-Id: Le mercredi 26 ao=C3=BBt 2020 =C3=A0 16:47:08 UTC+2, J=C3=A9r=C3=B4me Hague= t a =C3=A9crit=C2=A0: > > > 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, includi= ng the one used in the tutorial.=20 > > I have probably an identical setup: 2 PCs, Windows 10, x64, GNAT CE 202= 0. On both, 'Find all references' works perfectly, even on a relatively low= -powered laptop (2 cores, 2 logical processors, 1.1 GHz). I'd say it works = better than previously: in earlier versions, the reference finder gave up d= ue to (perhaps) a time-out, or sometimes didn't want to work at all for the= whole session.=20 > > Perhaps your problem is with the path? "C:\GNAT\2020\bin;" or equivalen= t should come first. It's important if you have multiple GNAT installations= . > Thanks Gauthier for the suggestion, I have simplified the PATH. But it di= d not make it work.=20 > I have made some additional tests with a new computer, and it works succe= ssfully.=20 >=20 > But I am still facing the problem with my own computer.=20 > I have found one difference using ProcessExplorer : subprocess ada_langua= ge_server.exe is not running after my .gpr project is opened.=20 > It can be successfully started from command line "C:\GNAT\2020\libexec\gn= atstudio\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.html#= the-ada-language-server "One known limitation of this server is that it doesn=E2=80=99t support fil= e paths that are not valid UTF-8." And in %USERPROFILE%\home\.gnatstudio\log, I found :=20 ... [GPS.KERNEL.XREF] Set up xref database: :memory: (12:24:25.635) [SQL.INSPECT] Loading data from data into database (12:24:25.651) [ENTITIES.TIMING] Created database: 0.017679200 s (12:24:25.653) [GPS.KERNEL.GPS_KERNEL] Refresh_Context: no child focused (12:24:25.668) [GPS.KERNEL.MSG] Not loading C:\GNAT\2020\share\examples\gnatstudio\tuto= rial\obj\sdc-msg.xml (12:24:25.668) [GPS.LSP_CLIENT] Starting 'C:\GNAT\2020\libexec\gnatstudio\als\ada_langu= age_server.exe' (12:24:25.834) [HOOKS.EXCEPTIONS] While running project_view_changed:GPS.LSP_MODULE.ON_= PROJECT_VIEW_CHANGED _HOOKS.EXCEPTIONS_ raised ADA.STRINGS.UTF_ENCODING.ENCODING_ERROR : bad = input at Item (34) ... But I do not understand which file path is not valid UTF-8 : I have used st= andard installation, and I am testing sdc.gpr, which is provided as a tutor= ial=20 Regards J=C3=A9r=C3=B4me