# 使用 Homebrew, Nix 安装 fortls

查看 fortls 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:fortls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fortls
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fortls
```

  证据: nixpkgs package indexes: pkgs/by-name/fo/fortls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:fortls
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fortls>
- **版本:** 3.2.2
- **来源摘要:** Fortran language server
- **主页:** <https://fortls.fortran-lang.org/>
- **仓库:** <https://github.com/fortran-lang/fortls>
- **上游文档:** <https://fortls.fortran-lang.org/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/c1/2b/db1e5cd07fc9e74a2e4fb8f65946f8fd79ef72211001af00982a04d977d5/fortls-3.2.2.tar.gz>
- **最后更新:** 2026-06-13T01:24:12+02:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- fortls (cli)
- fortls (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.2.2
- 管理器更新时间: 2026-06-13
- 本地数据: OK
- 上游仓库: https://fortls.fortran-lang.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

fortls is the Fortran Language Server, a Python implementation of the Language Server Protocol for Fortran. It provides editor features such as symbols, hover, signature help, completion, go-to definition, references, rename, diagnostics, and code actions.

### 项目历史

The fortran-lang/fortls repository was created in October 2021. The README says the project was originally based on hansec/fortran-language-server, but later diverged and is now developed independently with additional features and fixes.

The official README also states that fortls has reached a feature-complete and stable maintenance phase while Fortran-lang work explores a newer language server based on LFortran for deeper syntax understanding.

### 采用历史

fortls is designed for any editor that supports LSP. The official README names Visual Studio Code, Atom, Sublime Text, Vim/Neovim/gVim, and Emacs integrations, reflecting adoption through editor plugins rather than only command-line invocation.

### 使用方式

Users install fortls with pip or conda-forge and point an editor's LSP client at the fortls executable. Configuration can be supplied through command-line options or JSON configuration files such as .fortlsrc, .fortls.json, or .fortls at a project root.

### 为什么软件包爱好者会关心

fortls is significant because it gives Fortran the same LSP packaging shape familiar from newer language ecosystems: a standalone server executable, Python package distribution, conda-forge availability, editor-neutral protocol support, and project-local configuration.

### 时间线

- 2021: fortran-lang/fortls repository created.
- 2022: 2.x release series published.
- 2024: 3.0.0 release published.
- 2025: 3.2.2 release published.

### Related projects

- fortls is historically related to hansec/fortran-language-server and is part of the Fortran-lang ecosystem. The README points to future LFortran-based language-server work as the planned path for deeper Fortran syntax and semantic support.

### 来源

- <https://api.github.com/repos/fortran-lang/fortls>
- <https://api.github.com/repos/fortran-lang/fortls/releases?per_page=20>
- <https://fortls.fortran-lang.org/>
- <https://fortls.fortran-lang.org/fortls_changes.html>
- <https://fortls.fortran-lang.org/options.html>
- <https://github.com/fortran-lang/fortls>
- <https://raw.githubusercontent.com/fortran-lang/fortls/master/README.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: root_path/.fortlsrc, root_path/.fortls.json, root_path/.fortls
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fortls
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** fortran-language-server
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - fortls: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/fortls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ansible-language-server](https://www.automicvault.com/zh-hans/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [expert](https://www.automicvault.com/zh-hans/pkg/brew/expert/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [fennel-ls](https://www.automicvault.com/zh-hans/pkg/brew/fennel-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [gopls](https://www.automicvault.com/zh-hans/pkg/brew/gopls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [haskell-language-server](https://www.automicvault.com/zh-hans/pkg/brew/haskell-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [helm-ls](https://www.automicvault.com/zh-hans/pkg/brew/helm-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [jq-lsp](https://www.automicvault.com/zh-hans/pkg/brew/jq-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [lspmux](https://www.automicvault.com/zh-hans/pkg/brew/lspmux/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [python-lsp-server](https://www.automicvault.com/zh-hans/pkg/brew/python-lsp-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, language, language-server.
- [jdtls](https://www.automicvault.com/zh-hans/pkg/brew/jdtls/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, language, language-server.
- [cmake-language-server](https://www.automicvault.com/zh-hans/pkg/brew/cmake-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, language, language-server.

## Combined YAML source

View the package source record on GitHub. [combined/fortls.yml](https://github.com/automic-vault/db/blob/main/combined/fortls.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
