asp-language-support

A VSCode Extension that uses the Clingo Answer Set Solver (bundled), developed by Potassco (University of Potsdam).

https://github.com/captainunbrauchbar/asp-language-support

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

answer-set-programming asp clingo informaticup potassco potato
Last synced: 6 months ago · JSON representation ·

Repository

A VSCode Extension that uses the Clingo Answer Set Solver (bundled), developed by Potassco (University of Potsdam).

Basic Info
Statistics
  • Stars: 10
  • Watchers: 0
  • Forks: 2
  • Open Issues: 2
  • Releases: 11
Topics
answer-set-programming asp clingo informaticup potassco potato
Created over 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Codeowners Security

README.md

OpenSSF Scorecard OpenSSF Best Practices License: MIT code style: prettier DOI

Answer Set Programming Language Support (for Clingo)

Version on Marketplace Downloads Rating

| Potassco | Potassco on Github | Clingo | Get it on Open VSX Registry

This Extension uses Clingo Answer Set Solver (bundled), developed by Potassco (University of Potsdam). We added multi-file support with v0.4.0!

Usage

demo-gif

Just right click anywhere on a logic program (.lp) file and select Compute all Answer Sets, Compute the first Answer Set or Compute Answer Sets (config.json). This will display Clingo's results in a seperate ASP tab located in the panel. You can also use the buttons in the top right of this tab to run bundled or PATH clingo depending on your ASPLanguage: Use PATH Clingo setting.

If you want to add additional startup arguments you can use the Compute Answer Sets (config.json) option. For this, you can generate a sample config.json file with the ASPLanguage: Initialize clingo config file in current working directory command (Press Ctrl+Shift+P).

This will create a config file with all supported arguments/settings in your current working directory. If you want to use your own config file, just change the config file name in the extension settings (ASPLanguage: Set Config). Additionally you can use arguments not directly supported by the config.json by passing them in the "customArgs" setting as a string.

If you need to work with multiple files specify them in additional files in this config file using the relative path from the current working directory. See the Clingo Documentation (PDF) for more details on the config settings!

If you want to use your own Version of Clingo from PATH with this extension, please enable ASPLanguage: Use PATH Clingo option in your settings.

Customization

customization-gif

When using the bundled WASM Clingo (Choose in configuration ASPLanguage: Use PATH Clingo), you can easily move the panel to the sidebars or change the panel position depending on your preferences. The layout will adjust accordingly!

Requirements

For the extension to work properly, please install the Answer Set Programming syntax highlighter by abelcour (abelcour.asp-syntax-highlight) Answer Set Syntax Highlighter

Extension Settings

This extension contributes the following settings:

  • ASPLanguage: Select Operating System: Select your Operating System, so the currect clingo version is used! (default: Auto)
  • ASPLanguage: Terminal Mode: Select if you want a new Terminal after every execution! (default: False)
  • ASPLanguage: Use PATH Clingo: Set this option if you would like to use the Clingo version from your PATH instead of the version included! (default: False)
  • ASPLanguage: Turn Messages Off: Set this option if you want to turn off all Messages (bottom right)! (default: False)
  • ASPLanguage: Set Config: Set a .json file if you want to use a specific config file for clingo (default: empty)

Extension Features

This extension contributes the following features:

  • Compute all Answer Sets: Get all answer sets for the current logic program file!
  • Compute the first Answer Set: Get the first answer set for the current logic program file!
  • Compute Answer Sets (config.json): Compute answer sets using the clingo configuration from a config file

Contributing

If you have any suggestions for a new feature or anything else please open an issue on GitHub: ASP-LANGUAGE-SUPPORT The repository is being actively maintained and pull requests are welcome anytime. If you don't receive feedback within 48h feel free to also email one of the codeowners!

View the CONTRIBUTING.md for more info on Pull Requests.

Acknowledgements

Clingo was developed by Potassco. This extension uses Clingo compiled to WebAssembly by Dominik Moritz.

Owner

  • Name: Florian Frankreiter
  • Login: CaptainUnbrauchbar
  • Kind: user
  • Location: Potsdam, Germany
  • Company: IHP-Microelectronics

Student at University of Potsdam

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  Clingo for VSCode - Answer Set Programming Language
  Support
message: Please cite this software using these metadata.
type: software
doi: 10.5281/zenodo.16755874
authors:
  - given-names: Florian
    family-names: Frankreiter
    email: frankreiter@uni-potsdam.de
    affiliation: University of Potsdam
    orcid: 'https://orcid.org/0009-0003-5675-8515'
  - given-names: Richard
    family-names: Hegewald
    email: richard.hegewald@uni-potsdam.de
    affiliation: University of Potsdam
    orcid: 'https://orcid.org/0009-0006-3953-6445'
repository-code: 'https://github.com/CaptainUnbrauchbar/asp-language-support'
url: >-
  https://marketplace.visualstudio.com/items?itemName=ffrankreiter.answer-set-programming-language-support
repository: >-
  https://open-vsx.org/extension/ffrankreiter/answer-set-programming-language-support
repository-artifact: 'https://zenodo.org/records/16755874'
abstract: >-
  This extension provides built-in support for ASP script
  execution in VS Code.
keywords:
  - ASP
  - Clingo
  - Answer Set Programming
  - Declarative Programming
license: MIT
references:
  - authors:
      - family-names: Gebser
        given-names: Martin
      - family-names: Kaminski
        given-names: Roland
      - family-names: Kaufmann
        given-names: Benjamin
      - family-names: Schaub
        given-names: Torsten
    title: "Multi-shot ASP solving with clingo"
    type: article
    doi: 10.1017/S1471068418000054
    journal: Theory and Practice of Logic Programming
    volume: 19
    issue: 1
    start: 27
    end: 82
    year: 2018

GitHub Events

Total
  • Create event: 47
  • Issues event: 4
  • Release event: 5
  • Watch event: 6
  • Delete event: 39
  • Issue comment event: 23
  • Push event: 127
  • Pull request review comment event: 16
  • Pull request review event: 61
  • Pull request event: 91
Last Year
  • Create event: 47
  • Issues event: 4
  • Release event: 5
  • Watch event: 6
  • Delete event: 39
  • Issue comment event: 23
  • Push event: 127
  • Pull request review comment event: 16
  • Pull request review event: 61
  • Pull request event: 91

Dependencies

package-lock.json npm
  • 150 dependencies
package.json npm
  • @types/glob ^7.1.1 development
  • @types/mocha ^7.0.2 development
  • @types/node ^13.11.0 development
  • @types/vscode ^1.46.0 development
  • eslint ^6.8.0 development
  • glob ^7.1.6 development
  • typescript ^3.8.3 development
  • vscode-test ^1.3.0 development
  • ajv ^7.0.3
  • which ^2.0.2
.github/workflows/ci.yml actions
  • HaaLeo/publish-vscode-extension ca5561daa085dee804bf9f37fe0165785a9b14db composite
  • actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
  • actions/setup-node cdca7365b2dadb8aad0a33bc7601856ffabcc48e composite
  • actions/upload-artifact ea165f8d65b6e75b540449e92b4886f43607fa02 composite
  • step-security/harden-runner 4d991eb9b905ef189e4c376166672c3f2f230481 composite
.github/workflows/dependency_review.yml actions
  • actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
  • actions/dependency-review-action 3b139cfc5fae8b618d3eae3675e383bb1769c019 composite
  • step-security/harden-runner 4d991eb9b905ef189e4c376166672c3f2f230481 composite
.github/workflows/scorecard.yml actions
  • actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
  • actions/upload-artifact 4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 composite
  • github/codeql-action/upload-sarif 1b549b9259bda1cb5ddde3b41741a82a2d15a841 composite
  • ossf/scorecard-action f49aabe0b5af0936a0987cfb85d86b75731b0186 composite
  • step-security/harden-runner 4d991eb9b905ef189e4c376166672c3f2f230481 composite
.github/workflows/semgrep.yml actions
  • actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
  • github/codeql-action/upload-sarif 1b549b9259bda1cb5ddde3b41741a82a2d15a841 composite
  • step-security/harden-runner 4d991eb9b905ef189e4c376166672c3f2f230481 composite
.github/workflows/marketplace_release.yml actions
  • HaaLeo/publish-vscode-extension ca5561daa085dee804bf9f37fe0165785a9b14db composite
  • actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
  • actions/setup-node 49933ea5288caeca8642d1e84afbd3f7d6820020 composite
  • actions/upload-artifact ea165f8d65b6e75b540449e92b4886f43607fa02 composite
  • softprops/action-gh-release da05d552573ad5aba039eaac05058a918a7bf631 composite
  • step-security/harden-runner 0634a2670c59f64b4a01f0f96f84700a4088b9f0 composite