Giter VIP home page Giter VIP logo

vscode-blueprint's Introduction

VSCode Blueprint Language Plugin

VSCode language support for the Blueprint Compiler.

Features

This extension provides the following language features:

  • Validation and completion through the Blueprint language server.
  • Syntax highlighting.

Desired features it does not currently provide:

  • Source formatting.

Licence

Copyright 2022 Bodil Stokke

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

vscode-blueprint's People

Contributors

bedsteler20 avatar bodil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-blueprint's Issues

Allow specifying custom Blueprint command (with arguments)

I am developing inside Flatpak using awesome extension by Bilal Elmoussaoui and I'd like to run blueprint LSP from the Flatpak environment I am using. For now I had to make a hack to make a ~/.local/bin/blueprint-compiler file with this

flatpak build .flatpak/repo/ $PWD/subprojects/blueprint-compiler/blueprint-compiler.py $@

so it will launch it from there.

Could you please provide an option where I can specify command to run the blueprint compiler?
Thanks.

The blueprint-gtk server crashed 5 times in the last 3 minutes.

I installed the extension and blueprint-compiler. However, I get this error:

[Info  - 6:59:10 p.m.] Connection to server got closed. Server will restart.
[Info  - 6:59:10 p.m.] Connection to server got closed. Server will restart.
[Info  - 6:59:11 p.m.] Connection to server got closed. Server will restart.
[Info  - 6:59:11 p.m.] Connection to server got closed. Server will restart.
[Error - 6:59:11 p.m.] The blueprint-gtk server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

blueprint-compiler works, so I don't think that's the problem. I'm running this inside an Arch Linux container if that matters.

How to connect to Blueprint Language server?

I'm not sure how to get the extension to use the blueprint language server.
Do I put the blueprint-compiler anywhere in my computer and crate a link to the python script it in /usr/bin?
Do I just put the blueprint-compiler directory in the project root?
Do I follow the setup and add the compiler as a meson subproject? But what if my project is not using meson?

[Error - 8:46:36 PM] blueprint-gtk client: couldn't create connection to server.
Launching server using command blueprint-compiler failed. Error: spawn blueprint-compiler ENOENT

Couldn't create connection to server on silverblue w/ toolbox-vscode

Not sure why this is happening. toolbox-vscode essentially connects to a running toolbox container as the remote, so the command SHOULD be getting run in the container. Instead, I'm getting the following error:

[Error - 12:35:47 AM] blueprint-gtk client: couldn't create connection to server.
Launching server using command blueprint-compiler failed. Error: spawn blueprint-compiler ENOENT

I can confirm blueprint-compiler is accessible in the container, so I have no idea what is going on.

What exactly should i put under blueprint-gtk.command when i am using this in windows?

I have built gtk4 using gvsbuild along with pygobject. When I invoke blueprint-compiler.py with a python inside of venv, it works but I am unable to activate this extension because of the following error.
image

Setting the following in the blueprint-gtk.command didn't solve the error:
{path_to_blueprint-compiler/blueprint-compiler.py}
{venv_python_path} {path_to_blueprint-compiler/blueprint-compiler.py}
{venv_python_path} {path_to_blueprint-compiler/blueprint-compiler.py} lsp

What am I doing wrong ?

For the record, I am trying this in windows, and I couldn't get other methods to get gtk4 working.

Add "Wrap with" code actions like Flutter

Flutter's VS Code extension provides code actions which allow wrapping one widget inside another. Like suppose, you already made a big nested widget, and now you need to wrap your widget inside something like Gtk.Box, it is a pain to find matching bracket of widget, add the required closing curly brace and then reformat the indentation of document. It would make sense to have a "Wrap with" action, which puts your nested widget inside a child: property.

See this for example:

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.