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

[Bug]: 25.0.20240915 reports non-existent problems in project file #1210

Open
oscarrutt opened this issue Oct 1, 2024 · 3 comments
Open
Labels

Comments

@oscarrutt
Copy link

Environment

  • OS and Version: macOS 12.7.2
  • IDE Version:Version: 1.91.0 (Universal)
    Commit: ea1445cc7016315d0f5728f8e8b12a45dc0a7286
    Date: 2024-07-01T18:54:18.541Z
    Electron: 29.4.0
    ElectronBuildId: 9728852
    Chromium: 122.0.6261.156
    Node.js: 20.9.0
    V8: 12.2.281.27-electron.0
    OS: Darwin arm64 21.6.0
  • Ada & SPARK Extension Version: 25.0.20240915

Bug Summary and Reproducer

Bug Summary: For every editor with an Ada source file (whose tab has been opened, thus displaying the code???), a problem is reported in the Problems panel of VS Code. Text in tab titles is colored red, also indicating a problem. (Red in my theme anyway.) The Problem text is, "The project file has errors and could not be loaded." But the project file is unchanged from before updating to this version of ALS. Nevertheless, I am able to build and run normally while the Problems remain in the Problems panel. Downgrading to 24.0.6 makes all Problems go away as soon as the extension is restarted.

Steps to reproduce: Just install 25.0.20240915.

Expected behavior: No Problems in Problems panel when there are no errors in the project file

Configuration and Logs

xxx

Other VS Code Extensions

No response

Additional context

No response

@oscarrutt oscarrutt added the bug label Oct 1, 2024
@setton
Copy link
Member

setton commented Oct 1, 2024

Hello,
This is unexpected. Would you be able to share your project file?

@eliericha
Copy link
Contributor

Hello @oscarrutt ,

Thank you for reporting this problem. We are aware of issues related to project loading in the last release that match what you describe: the extension reports Project Problems while there are none. We are working on fixing this as soon as possible with a new release.

@oscarrutt
Copy link
Author

@setton Here is the project file. I edited out comments so I hope nothing else changed.

`
with "MPFR_Library";
with "GMP_Library";
with "Octave_Library";
with "GSL_Library";

project Build is

for Source_Dirs use 
    ("/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/",
	"/Users/me/Documents/Programs/Ada/Code/",
    "/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/Tests",
    "/Users/me/Documents/Programs/Ada/Code/My_Projects/TextMate_Sampling/source/Other_Code",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Sampling",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Radar",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/Specialized/Sampling/Post-processing",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/My_Tools",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/One-Offs",
	"/Users/me/Documents/Programs/Ada/Code/My_Code/Examples_and_Snippets_and_Notes",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_git/plplot/bindings/ada",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_git/plplot/examples/ada",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/PLplot_testing/",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/GMP_and_MPFR/SVN/adabindinggmpmpfr-read-only",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/Octave/",
	"/Users/me/Documents/Programs/Ada/Code/Bindings/GSL/");

for Target use "aarch64-darwin";

for Object_Dir use "build-normal";

for Exec_Dir use "product-normal";

for Main use ("third.adb");
 
package Builder is
	for Default_Switches ("Ada") use ("-O0", "-gnat12", "-g", "-gnatE", "-gnateE");
	for Executable ("third.adb") use "run"; 
end Builder;

package Compiler is
end Compiler;

package Naming is
    for Casing use "mixedcase";
end Naming;

package Binder is
	for Default_Switches ("Ada") use ("-E");
end Binder;

package Linker is
	for Default_Switches ("Ada") use ("-Wl,-no_pie"); 
end Linker;

package Pretty_Printer is
	for Default_Switches ("ada") use ("--max-line-length=100", "--indentation=4",
	  "--indent-continuation=2", "--decimal-grouping=3", "--based-grouping=4", "--alignment",
	  "--RM-style-spacing", "--preserve-blank-lines", "--comments-fill", "--comments-special",
	  "--no-separate-return", "--split-line-before-op");
end Pretty_Printer;

end Build;`

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