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

Reload project does not seem to take any effect #1182

Open
rongcuid opened this issue Feb 20, 2024 · 2 comments
Open

Reload project does not seem to take any effect #1182

rongcuid opened this issue Feb 20, 2024 · 2 comments
Assignees
Labels

Comments

@rongcuid
Copy link

When project file is modified (such as changing the list of main files), running the Ada: Reload project does not have any effect, such as updating the list of main files. Vscode must be reloaded for project file updates to take effect.

Environment: Mac OS 14.2.1; using alire to install Gnat native.

Reproduction:

  1. Use alr to create a new binary project
  2. Open the project with vscode
  3. Build and run main
  4. Rename the main file and update in the .gpr project definition
  5. Ada: Reload project
  6. Try build and run again

Expected:

  • Build and run menu should update

Actual:

  • Menu is still the main specified in stale definition
@sanyaade-teachings
Copy link

When project file is modified (such as changing the list of main files), running the Ada: Reload project does not have any effect, such as updating the list of main files. Vscode must be reloaded for project file updates to take effect.

Environment: Mac OS 14.2.1; using alire to install Gnat native.

Reproduction:

  1. Use alr to create a new binary project
  2. Open the project with vscode
  3. Build and run main
  4. Rename the main file and update in the .gpr project definition
  5. Ada: Reload project
  6. Try build and run again

Expected:

  • Build and run menu should update

Actual:

  • Menu is still the main specified in stale definition

Totally agree!: I have been wrangling with the same issues for almost 3 days now
I think I need another direction for the teachings of Ada

@eliericha
Copy link
Contributor

Hello folks,

Thank you for reporting this issue. I have good news and bad news :)

The good news is that the issue has already been fixed last week and no longer occurs in the development version.

The bad news is that the fix went in right after we did the last release, v24.0.4. So currently I am able to reproduce the bug with the last release.

I will discuss with my colleagues about the possibility of performing another release with the fix soon.

@eliericha eliericha self-assigned this Feb 26, 2024
@eliericha eliericha added the bug label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants