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
VS code extension can't find some project files when included with Alire #1180
Comments
What's weird is even if I install the ada web server outside of alire into a standard place in my GPR_PROJECT_PATH using I noticed that occasionally it will actually find the projects if I just reload the window a few times in a row. There is a bug somewhere here. |
Hello @dalybrown, We'll try to reproduce on our side. Thanks for the report. We might come back to ask you more questions. Regards, |
Thanks. Yeah I don't know how else to precisely explain the problem. I can reproduce it in my environment easy enough though. I wonder if there is a race condition between indexing / finding all the projects and their sources and the VS code extension declaring there is a problem with the environment and giving up. |
Are you using the VS Code remote mode? |
Yeah... we develop in a docker container, so we are always using the remote development extensions. (Specifically, we use dev containers and so we use the builtin support of the remove development extensions for those.) |
Ok I see, thanks for the quick answer. As you may know, VS Code's environment management with the Remote mode requires to specify the environment per workspace, as described in our documentation here. Have you already followed these instructions? |
I did not see those instructions. To be clear: this setup works without that most of the time. It is only the odd time (e.g., with the scenario I described above) where we see these issues. I set the I don't quite understand what the |
We'll have a look to the scenario you described. Keeping you posted. Regards, |
Projects that seem to have their own actions for building / installing in non-standard places seem to be problematic for Alire and it results in all code being non-navigable.
For example, trying to include the Ada Web Server in a project (i.e.,
alr with aws
) exposes this problem because AWS has actions to build/install itself when deployed. It seems like within the Alire environment the GPR_PROJECT_PATH is set correctly to the installed path of AWS, but VS code still complains. All code is then non-navigable. It is built properly though (as inalr build
picks up the right environment).It's easy to reproduce: just create a new project, with aws, and try to navigate the code. The issue seems to be present using shared and non-shared dependencies in Alire.
The text was updated successfully, but these errors were encountered: