GithubHelp home page GithubHelp logo

classicvalues / sourcer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erlang/sourcer

0.0 1.0 0.0 2.59 MB

An Erlang language server, providing IDE services.

License: Apache License 2.0

Erlang 100.00%

sourcer's Introduction

Sourcer - language services for IDEs

This is a new incarnation of the sourcer project, the old code is still available on the legacy branch.

Sourcer aims to provide:

  • a generic language server implementation lsp_server
  • Erlang support for the above erlang_ls
  • Erlang language services library sourcer

Generic language server lsp_server

The generic language server uses a TCP connection to talk LSP with clients. It encodes/decodes the messages and delegates the actual work to a language specific server, using cancelable worker processes. It also supports making requests to the client.

Erlang server erlang_ls

This is the "real" server, connecting the generic and specific parts and an adapter from LSP to the 'sourcer' data format (see below) and back.

Supported Options

  • --help, -h, undefined, Shows help;
  • --dump, -d, string, Dump sourcer db for file;
  • --port, -p, integer, LSP server port;
  • --verbose, -v, integer, Verbosity level;
  • --indent, -i, string, Indent file(s) and exit;
  • --config, N/A, string, Configuration file.

Configuration

Configuration file contains property list.

Currently we only support these keys:

  • indent - controls indentation parameters.

Example:

{indent, [{indentW, 2}]}.

Language services library sourcer

The actual work is done by this application. It is meant to be LSP-agnostic so that it can be used in other contexts and tools.

An own parser (largely based on the legacy 'sourcer' code, but simpler) processes the source code and produces a ctags-like database containing information about all interesting code entities. The database should be distributed, in the sense that libraries should be able to provide the data about their own code (produced at build time).

Query facilities are provided so that the information in the database is presented in a way that the LSP expects.

sourcer's People

Contributors

vladdu avatar dgud avatar deadtrickster avatar klajo avatar subsetpark avatar hommeabeil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.