Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GnatStudio.app can't find gnatls #135

Open
rogermc2 opened this issue Nov 20, 2022 · 4 comments
Open

GnatStudio.app can't find gnatls #135

rogermc2 opened this issue Nov 20, 2022 · 4 comments
Assignees

Comments

@rogermc2
Copy link

rogermc2 commented Nov 20, 2022

Mac OSX 13.0.1 (22A400)
XCode 14.1
gcc-12 (Homebrew GCC 12.2.0) 12.2.0
GNAT 12.1.0
GnatStudio version 23.0w

When I open an Ada file under GnatStudio version 23.0w, it responds with:

Language server: Could not locate exec gnatls

although 'gnatls` is available:

Roger@Rogers-Mac-mini alire % which gnatls
/opt/GNAT/gnat-x86_64-darwin-12.2.0-1/bin/gnatls
@rogermc2 rogermc2 changed the title GnatStudio can't find gnatls GnatStudio.app can't find gnatls Nov 20, 2022
@Joebeazelman
Copy link

If you're using Alire, you have to issue "alr edit" command from you project's directory. If not, then it it's probably related to a similar issue I'm having. Python is used throughout Gnat Studio. For reasons unknown, it doesn't always pickup the entire PATH environment when launched.

@AnthonyLeonardoGracio
Copy link
Collaborator

Hello @rogermc2 ,

Are you actually using Alire? Normally GNAT Studio should be able to locate any gnatls present in your PATH environment variable.

Also, is your project a native project or a cross/bare-metal one?

Regards,

@AnthonyLeonardoGracio AnthonyLeonardoGracio self-assigned this May 19, 2023
@setton setton reopened this Jan 12, 2024
@Joebeazelman
Copy link

Hello @rogermc2 ,

Are you actually using Alire? Normally GNAT Studio should be able to locate any gnatls present in your PATH environment variable.

Also, is your project a native project or a cross/bare-metal one?

Regards,

Yeah, this is a common issue that's hard to troubleshoot. By default, projects are implicitly configured for native targets. You have to explicitly set the target and runtime GPR variables for non-native targets. It's very easy to overlook setting these variables. I recently proposed a feature request to make the user aware of these settings.

@rogermc2
Copy link
Author

rogermc2 commented Jan 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants