Skip to main content

FORTRAN Language Server for the Language Server Protocol

Project description

https://travis-ci.org/hansec/fortran-language-server.svg?branch=master https://img.shields.io/github/license/hansec/fortran-language-server.svg

A FORTRAN implementation of the Language Server Protocol using Python (2.7+).

Note: This language server is currently in the early stages of development. Not all features are supported or planned.

Language Server Features

Document Symbols:

https://raw.githubusercontent.com/hansec/fortran-language-server/master/images/fortls_outline.png

Auto Completion:

https://raw.githubusercontent.com/hansec/fortran-language-server/master/images/fortls_autocomplete.gif

Go to definition:

https://raw.githubusercontent.com/hansec/fortran-language-server/master/images/fortls_gotodef.gif

Hover:

https://raw.githubusercontent.com/hansec/fortran-language-server/master/images/fortls_hover.gif

Installation

pip install fortran-language-server

Configuration

Setup module search paths:

By default all files with the suffix f,F,f77,F77,for,FOR,fpp,FPP or f90,F90,f95,F95,f03,F03,f08,F08 in the root_dir directory specified during initialization are parsed and included in the project. Specific folders containing FORTRAN source files can be set for a given project by placing a JSON file (example below) named .fortls in the root_dir directory. Folders to search are listed in the variable mod_dirs (relative to root_dir) and excluded files can be specified using the variable excl_paths. Directories are not added recursively, so any nested sub directories must be explicitly listed.

{
  "mod_dirs": ["subdir1", "subdir2"],
  "excl_paths": ["subdir1/file_to_skip.F90"]
}

Bug reports

When filing bugs please provide example code to reproduce the observed issue.

License

This project is made available under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fortran-language-server-0.1.4.tar.gz (20.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page