Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Atomic batteries to power, turbines to speed." -- Robin, The Boy Wonder


devel / comp.lang.ada / Re: Unable to use "Find all references" with GPS CE 2020 !?

SubjectAuthor
o Re: Unable to use "Find all references" with GPS CE 2020 !?Jérôme Haguet

1
Re: Unable to use "Find all references" with GPS CE 2020 !?

<64041caf-7795-478a-a66e-15245e34059en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5428&group=comp.lang.ada#5428

  copy link   Newsgroups: comp.lang.ada
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: i2pn2.org!i2pn.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: <a3912a60-0f59-43ca-8a0c-d5cb248300acn@googlegroups.com>
<051a91ba-2e69-41a7-b5c6-14d821946a2ao@googlegroups.com> <e92ec296-b824-4cdb-a5de-5127ce7d7949n@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: j.hag...@cadwin.com (Jérôme Haguet)
Injection-Date: Fri, 18 Jun 2021 11:02:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Jérôme Haguet - Fri, 18 Jun 2021 11:02 UTC

Le vendredi 28 août 2020 à 12:35:39 UTC+2, Jérôme Haguet a écrit :
> Le mercredi 26 août 2020 à 16:47:08 UTC+2, Jérôme Haguet a écrit :
> > > > These days, I tried to use GPS from Gnat CE 2020, Windows x64.
> > > > Unfortunatly, 'Find all references' does not seems to work.
> > > > It happens on 2 different PCS, with any project I have tried, including the one used in the tutorial.
> > > I have probably an identical setup: 2 PCs, Windows 10, x64, GNAT CE 2020. 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 due to (perhaps) a time-out, or sometimes didn't want to work at all for the whole session.
> > > Perhaps your problem is with the path? "C:\GNAT\2020\bin;" or equivalent should come first. It's important if you have multiple GNAT installations.
> > Thanks Gauthier for the suggestion, I have simplified the PATH. But it did not make it work.
> > I have made some additional tests with a new computer, and it works successfully.
> >
> > But I am still facing the problem with my own computer.
> > I have found one difference using ProcessExplorer : subprocess ada_language_server.exe is not running after my .gpr project is opened.
> > 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..
> >
> > Any idea where to check ? Any log option to activate ?
> >
> > Jérôme
> 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’t support file paths that are not valid UTF-8."
>
> And in %USERPROFILE%\home\.gnatstudio\log, I found :
> ...
> [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\tutorial\obj\sdc-msg.xml (12:24:25.668)
> [GPS.LSP_CLIENT] Starting 'C:\GNAT\2020\libexec\gnatstudio\als\ada_language_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 standard installation, and I am testing sdc.gpr, which is provided as a tutorial
>
> Regards
> Jérôme

FYI :
This specific problem was due to an environment variable with French characters
For example :
C> set ONE_VAR=Déjà
C> gnatstudio.exe
.....
and ada_language_server.exe process will fail to start when opening the 1st gpr project.

Same problem with gnatstudio from GNAT CE 2021

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor