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

Html_Custom_Dir ignored #24

Open
Lucretia opened this issue Jan 19, 2024 · 1 comment
Open

Html_Custom_Dir ignored #24

Lucretia opened this issue Jan 19, 2024 · 1 comment

Comments

@Lucretia
Copy link

Hi,

I'm just testing this and failing straight away.

I built gnatdoc4 using alr and installed it into ~/opt/bin, so I added Html_Custom_Dir to the gpr which points at the ~/mine-new/gnatdoc_23.0.0_0e9095ce/share/gnatdoc/html directory, it's a full absolute path in my gpr. I get the following error:

$ gnatdoc4 -P gnatdoc_test.gpr 

raised ADA.IO_EXCEPTIONS.NAME_ERROR : Could not open $HOME/opt/share/gnatdoc/html/template/index.xhtml
@Lucretia
Copy link
Author

Lucretia commented Jan 19, 2024

Here's the gpr ($HOME isn't in mine):

with "config/gnatdoc_test_config.gpr";

project Gnatdoc_Test is
   for Source_Dirs use ("src/", "config/");
   for Object_Dir use "obj/" & Gnatdoc_Test_Config.Build_Profile;
   for Create_Missing_Dirs use "True";
   for Exec_Dir use "bin";
   for Languages use ("C", "Ada");
   for Main use ("gnatdoc_test.adb");

   package Compiler is
      for Default_Switches ("Ada") use Gnatdoc_Test_Config.Ada_Compiler_Switches;
   end Compiler;

   package Binder is
      for Switches ("Ada") use ("-Es"); --  Symbolic traceback
   end Binder;

   package Install is
      for Artifacts (".") use ("share");
   end Install;

   package Documentation is
      for Html_Custom_Dir use "$HOME/src/mine-new/gnatdoc_23.0.0_0e9095ce/share/gnatdoc/html";
      for Doc_Pattern use "^!";
   end Documentation;
end Gnatdoc_Test;

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

1 participant