Giter VIP home page Giter VIP logo

vscode-juvix's People

Contributors

jonaprieto avatar lopeetall avatar paulcadman avatar vrom911 avatar

Stargazers

 avatar  avatar

Watchers

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

Forkers

alhassy sskav7

vscode-juvix's Issues

Typechecking no longer works

When I click the "typecheck" button I get:

Invalid argument `/home/heliax/Documents/juvix/examples/milestone/Collatz/Collatz.juvix'

Usage: juvix ((-v|--version) | (-h|--help) | COMPILER_CMD | UTILITY_CMD) 
             [--no-colors] [--show-name-ids] [--internal-build-dir BUILD_DIR] 
             [--no-format] [--stdin] [--only-errors] [--no-termination] 
             [--no-positivity] [--no-stdlib]

  The Juvix compiler.

 *  The terminal process "/usr/bin/bash '-c', 'juvix --internal-build-dir .juvix-build  /home/heliax/Documents/juvix/examples/milestone/Collatz/Collatz.juvix'" failed to launch (exit code: 1). 

Stop creating random .juvix-build folders

For some reason, this extension is creating random .juvix-build folders in the user's system while running. This behaviour is unexpected and can lead to clutter in the user's file system

Highlighting disappears while typing

When you start typing and you haven't yet finished writing correct code, all highlighting disappears, including of the already correct code typed earlier. This is very annoying.

Typechecking on the fly is annoying the way it currently works

I constantly get a pop-up window saying "The task 'juvix: typecheck' is already active" and the error messages pop up constantly in the terminal window while typing. Maybe there should be some delay like a few seconds before you type check, or do type checking only after one stops typing, with a delay of a second or so?

Geb files cannot be saved

Trying to save a *.geb file reverts to the previous content.

More precisely, I have a file with "6" in it on a single line, try to change it to "32", save, and it reverts back to "6".

Error underlines do not disappear unless one manually typechecks the code

When editing code, error underlines persist even after the problematic code has been fixed. The error underlines only disappear after the code is typechecked again.

image

Steps to reproduce:

  1. Write code with an error that would cause an underline.
  2. Fix the error in the code.
  3. Notice that the error underline does not disappear immediately.

Expected behaviour:

After fixing the error, the underline should disappear automatically without needing to trigger a type check manually.

Actual behaviour:

The error underline persists until the code is type-checked again.

Possible solution:

Implement an automatic type check or error check when the code is updated (in the background), so the underline gets removed once the error is fixed.

Shift+Alt+R doesn't work for me

It's a no-op. It doesn't launch the REPL, even though there are no conflicting keybindings. I think there is some conflict with Alt+R which launches some VSCode popup about searching for regular expressions.

I propose we try changing this to Shift+Alt+E (for Evaluation).

Code is removed on save!!!

If you type in

module Bug;
end;

save, then change it to

module Bug;

f : Nat -> Nat;
f x := x;

end;

and save, then the module body disappears with no error message and you get

module Bug;
end;

back again.

Add snippets

  • For Modules
  • For Data type declarations
  • For Compile blocks
  • For Axioms

Add CI

  • Install package
  • Compile and build a vscode package
  • Run some linter.

Add missing buttons for Juvix Core programs

We want buttons same as we have for Juvix programs, namely:
Buttons for:

  • load the REPL,
  • compile, and
  • run.

There exists a subcommand, juvix dev core read that may be used for formatting the code.

Control + C in VS code should copy

Describe the bug
In the VS code support, ctrl+c does not copy text due to a clash in key bindings. This is very unexpected for users.

Expected behavior
Ctrl+C copies text to clipboard

Highlighting works for alphanumeric chunks of text instead of for Juvix identifiers

For instance, when putting the cursor inside to-str only to or str are highlighted, but not the whole identifier. Or in Stdlib.System.IO only Stdlib, System or IO are highlighted, but not the whole thing.

In general, highlighting always highlights any alphanumeric chunk of text even if it's not an identifier (keywords, text inside string literals). It should highlight only identifiers. See how it works with the Haskell extension.

Go-to definition stopped working

Currently, instead of heading to the resource file like /some/path/Module.juvix it leads to /some/path/Module.juvix,11,3.
This means that the result of the highlight command is not properly parsed on the extension side.

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.