# 使用 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
- **版本:** 3.2.2
- **来源摘要:** Fortran language server
- **主页:** <https://fortls.fortran-lang.org/>
- **仓库:** <https://github.com/fortran-lang/fortls>
- **最后更新:** 2026-06-13T01:24:12+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fortls (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.2.2
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## Combined YAML source

View the package source record on GitHub. [combined/fortls.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fortls.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
