Git Product home page Git Product logo

jakt-intellij-plugin's Introduction

Jakt IntelliJ Plugin

A fully-featured plugin for the Jakt programming language.

Features

  • Highlighting
    • Fully-configurable via a Color Scheme page
    • Material-like defaults for Darcula
    • Semantic-based. Examples:
      • Static method calls vs instance method calls
      • Mutable vs immutable local variables
  • Validation
    • Flexible BNF-based language description detects parsing errors early
    • Displays type-checking and advanced parsing errors from the Jakt compiler
  • Completions
    • Completes after plain identifiers, field access expressions, and namespace qualifiers
    • Intelligent completions (example: not suggesting static methods for a field access expression)
    • Function template completion
    • Completes prelude types/functions
  • Intentions
    • Basic intention support (currently only has one very simple intention)
  • Resolution
    • Two-way resolution (ref -> decl, decl -> all refs)
    • Sees through import statements
    • Complex resolution support. Example:
      • Function argument labels resolve to the respective parameter
      • Function parameters resolve to their usages in the function body (and not the aforementioned argument labels)
      • Shorthand enum names in match cases and is expressions
    • Type declaration from identifiers when ctrl-clicking
  • Rename refactoring
    • Works for any identifier that supports resolution (declaration, local variable, imports, etc)
  • Run Configurations
    • Gutter icons for main function allow easily running scripts with custom arguments

Contributing

There is no special setup needed for the project; simply open it in IntelliJ, and run the Test task for tests, and the Run IDE for UI Tests to launch a clean version of IntelliJ with the plugin installed.

The buildPlugin task will build the plugin to build/libs, which can be installed manually in the plugins tab in settings.

TODO (in order of importance)

  • GitHub Actions: Automatically run tests for commits and PRs
  • Grammar
    • Improve parsing errors
    • Implement error recovery (currently highlighting breaks for invalid files)
  • Complex refactoring (move/delete)
  • Most of the features mentioned in the IntelliJ Custom Language Support tutorial

jakt-intellij-plugin's People

Contributors

alimpfard avatar atkinssj avatar mattco98 avatar networkexception 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.