Overview — Logtalk 3.100.1

# Overview

The following developer tools are available, each one with its own `loader.lgt` loader file (except for the built-in `linter` and `make` tools, which are integrated with the compiler/runtime) and `NOTES.md` documentation files:

- `asdf`

- `assertions`

- `code_metrics`

- `dead_code_scanner`

- `debug_messages`

- `debugger`

- `diagrams`

- `doclet`

- `help`

- `issue_creator`

- `lgtdoc`

- `lgtunit`

- `linter`

- `linter_reporter`

- `make`

- `mutation_testing`

- `packs`

- `ports_profiler`

- `profiler`

- `sarif`

- `sbom`

- `tool_diagnostics`

- `tutor`

- `wrapper`

## Loading the developer tools

To load the main developer tools, use the following goal:

    | ?- logtalk_load(tools(loader)).

The `linter_reporter` and `sarif` tools are not loaded by default as they are mostly useful for CI/CD pipelines.

The `ports_profiler` tool is not loaded by default; however, as it conflicts with the `debugger` tool as both provide a debug handler that must be unique in a running session.

The `profiler` tool is also not loaded by default, as it provides integration with selected backend Prolog compiler profilers that are not portable.

The `tutor` tool is also not loaded by default, given its usefulness mainly for new users that need help understanding compiler warning and error messages.

The `wrapper` tool is also not loaded by default, given its specialized purpose and beta status.

The `sbom` tool is also not loaded by default, given its specialized purpose.

To load a specific tool, either change your Prolog working directory to the tool folder and then compile and load the corresponding loader utility file or simply use library notation as argument for the compiling and loading predicates. For example:

    | ?- logtalk_load(lgtunit(loader)).

## Tools documentation

Specific notes about each tool can be found in the corresponding `NOTES.md` files. HTML documentation for each tool API can be found in the `docs` directory (open the `../docs/handbook/index.html` file with your web browser).

## Tools common flags

The `lgtdoc`, `lgtunit`, and `issue_creator` tools share a `suppress_path_prefix` flag that can be used to suppress a prefix when printing file paths. For example (after loading the tools):

    | ?- set_logtalk_flag(suppress_path_prefix, '/home/jdoe/').

This flag is mainly used to avoid user specific path prefixes appearing in documentation, test logs, and bug reports.

## Tools requirements

Some of the developer tools have third-party dependencies. For example, the `lgtdoc` tool depends on XSLT processors to generate documentation final formats and uses Sphinx for the preferred HTML final format. Be sure to consult the tools documentation details on those requirements and possible alternatives. For convenience, follows a global list of the main tool requirements and suggestions for installing them per operating-system. If your operating-system or a dependency for it is not listed, see the dependency websites for installation instructions.

### Tool dependencies for full functionality

- `code_metric`: `cloc`, `sed`

- `diagrams`: d2, Graphviz

- `help`: `lynx` `info`

- `issue_creator`: `gh`, `glab`

- `lgtdoc`: Sphinx, `libxslt`, `fop`, `texlive`, `texinfo`, `pandoc`, `xsltproc`

- `lgtunit`: Allure, `coreutils`, `gsed`

- `packs`: `coreutils`, `libarchive`, `gnupg2`, `git`, `curl`, `wget`, `direnv`

### Python dependencies (all operating-systems)

    $ pip install --upgrade pygments
    $ pip install --upgrade sphinx
    $ pip install --upgrade sphinx_rtd_theme

In alternative, if your want to use the same versions used to build release documentation:

    $ cd manuals/sources
    $ python3 -m pip install -r requirements.txt

### macOS - MacPorts

    $ sudo port install cloc
    $ sudo port install d2 graphviz
    $ sudo port install lynx texinfo pandoc
    $ sudo port install libxslt fop texlive
    $ sudo port install gsed
    $ sudo port install coreutils gsed libarchive gnupg2 git curl wget direnv
    $ sudo port install gh glab

### macOS - Homebrew

    $ brew install cloc
    $ brew install d2 graphviz
    $ brew install lynx texinfo pandoc
    $ brew install libxslt fop texlive
    $ brew install allure gsed
    $ brew install coreutils libarchive gnupg2 git curl wget direnv
    $ brew install gh glab

### Ubuntu

    $ sudo apt install cloc
    $ sudo apt install graphviz
    $ sudo apt install lynx texinfo pandoc
    $ sudo apt install xsltproc fop texlive-latex-extra tex-gyre latexmk
    $ sudo apt install coreutils libarchive-tools gnupg2 git curl wget direnv
    $ sudo apt install gh

### RedHat

    $ sudo dnf install cloc
    $ sudo dnf install graphviz
    $ sudo dnf install lynx texinfo pandoc
    $ sudo dnf install libxslt fop
    $ sudo dnf install bsdtar gnupg2 git curl wget direnv

### Windows - Chocolatey

    > choco install cloc sed
    > choco install pandoc xsltproc
    > choco install d2 graphviz
    > choco install xsltproc apache-fop texlive
    > choco install gnupg git
    > choco install gh glab
    > choco install wget

### Installers

- https://d2lang.com/tour/install

- https://www.graphviz.org/download/

- https://allurereport.org/docs/

- https://www.gnupg.org/

- https://gitforwindows.org

- https://cli.github.com

- https://glab.readthedocs.io

- https://eternallybored.org/misc/wget/

### Windows - PowerShell add-ons

    PS> Install-Module -Name Set-PsEnv