GithubHelp home page GithubHelp logo

jrenaud90 / vs-code-cython Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ktnrg45/vs-code-cython

0.0 0.0 0.0 783 KB

VS Code Language Extension for Cython

License: MIT License

Shell 93.43% Makefile 6.57%

vs-code-cython's Introduction

vscode-cython

Main Repository

Cyright LSP Repository

Cython Language Extension for VS Code

VS Code Cython Demo

Features

  • Syntax highlighting
  • Static syntax checking for C and CPP syntax
  • Go to definitions
  • Import resolver for .pyx and .pxd files

About

This extension provides syntax highlighting and a Static Syntax checker for the Cython language. Cython is a superset of Python with it's own C-styled syntax mixed with Python syntax.

The static checker is based on Pyright and will only support Cython/Python syntax version 3.0 and above.

This extension uses the configured Python interpreter/venv path from the VS Code Python extension.

Limitations

These features would be nice to have but are not implemented.

  • In-depth type analysis
  • C headers analysis / inline C code analysis

FAQ

  • If no problems are reported will my code compile?

    No. There are no guarantees that code will be compiled correctly

Issues

Please report any issues in this repo.

Installing

Install with VS Code

Install normally through the extensions tab.

Install from source

  • Clone repo. For installation clone in the <user home>/.vscode/extensions folder.

  • Ensure submodules are fetched with:

    git submodule update --init --recursive
    
    
  • Install npm

  • Run:

    make install
    

Development

Setup

To setup development environment:

  • Follow the instructions for Installing from source (repo can be cloned anywhere on filesystem)

  • Install development npm packages:

    make dev
    
  • To rebuild lang-server and syntax file, Run:

    make build
    

Syntax highlighting changes

Any changes should be made to ./grammars/cython.syntax.yaml

The syntax file will need to be re-generated for VS Code to see changes.

To re-generate syntax file run:

make syntax

Language Server (Cyright) Development

Pull requests should be created under the Cyright Repository.

There is a 'Watch Extension' task to aid in development. The language server can be debugged by launching the 'Extension' launch target and then launching the 'Attach Server' target.

vs-code-cython's People

Contributors

ktnrg45 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.