-
Notifications
You must be signed in to change notification settings - Fork 63
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
no code navigation in the VS Code extension when using Alire projects #1192
Comments
Here is a reproducer ... just open this folder in VS code and, using the dev container extension, it will build the the dev container automatically and install the Ada VS code extension. You'll notice you can't navigate code but building with alire works fine. |
Hello @dalybrown Thank you for self-contained reproducer! I'm able to reproduce. Probably, the reason is that ALS launches two instances of To unblock you I propose to rename #!/bin/bash
LOCK=/tmp/alr.lock
if [[ "$1/$2" =~ --non-interactive/(show|printenv) ]] ; then
while ! { set -C; 2>/dev/null >$LOCK; } ; do sleep 0.5 ; done
trap "rm -f $LOCK" EXIT
fi
${0}2 "$@" I guess you also may need to add Please let us know if this works for you. |
Thanks for the reply. Before we start implementing workarounds (this affects more than just me), is this something that is planned to be fixed soon (ish)? We can live without code navigation for a bit longer... Let me know! Thanks! |
I'm going to change ALS code to launch alr sequentially, but it has not been decided when we will release |
Thanks for the response! I'll try out your proposal this week (and monitor for the updated extension). Cheers! |
instead of as concurrent processes. Fixes ada_language_server#1339, refs #1192 on github
I also see this error quite a bit in the console (not sure it's related):
I didn't get a chance to try the workaround - I haven't been able to do much development the past couple of weeks :(. I'll try to get around to it today or next week. |
Could you try |
I will try this next week when I (hopefully) get back to coding. Thanks! |
I get this error when using
and this error:
This is with a fresh crate. Something doesn't seem right still. Also other things don't work: formatting code, etc. I'm not sure what I'm missing here, and how others are using this. This is with a completely fresh environment, a brand new fresh crate, etc. |
I'm not sure what I'm missing here: code navigation doesn't work reliably for me, nor does it work reliably for my colleague. I think there is a race condition somewhere still, or I am just doing something incorrect. If I reload the window, I can get it to work sometimes. |
We lost the ability to navigate code sometime a couple months ago (rough estimate) using the VS Code extension. We exclusively use Alire to manage our projects and dependencies. We develop in a remote container using dev containers and the VS code extension.
It might have something to do with the version of Alire we are using (
2.0.1
) or the version of the extension (v24.0.5
).We have tried adjusting where the dependencies are cached using:
and this still does not fix it. The VS Code extension complains it can't find any of the project files we depend on. These dependencies are managed by Alire.
Somewhere a regression has been introduced. Our environment used to work with SPARK/Ada and Alire, and still works for every other language we develop with.
We see this behaviour on both
amd64
andarm64
platforms and with different Alire projects.The text was updated successfully, but these errors were encountered: