Neovim compiler for building and running your code without having to configure anything
GPL-3.0 License
Published by Zeioth about 1 year ago
redo
: Works correctly again.This regression was introduced during the code cleanup prior to the release of v3.0.0
. Credits to @GustavoPrietoP for reporting it.
Published by Zeioth about 1 year ago
Compiler.nvim now support all the programming languages that were originally planned. That is:
22 programming languages
128 different ways of compiling
128 unit tests
100+ examples
1 test suite
Through the lapse of 75 days. That's... A lot of coding.
I'd like to thank all the users for giving a chance to this old programmer to give back some to the open source community.
Published by Zeioth about 1 year ago
I don't if anyone actually use this language nowadays anymore, but it was easy to add.
Published by Zeioth about 1 year ago
Now you can choose compiling as .class or .jar
Java and Kotlin .solution.toml
have been fixed, and now work the same way as all the other languages.
Specifying the entry point file and the output is enough. Even if you only want to compile .class files, the compiler will be smart enough to know what to do.
Published by Zeioth about 1 year ago
New available options have been tested with automated tests to guarantee they work correctly
You can run flutter code
Or you can debug it on DAP!
Published by Zeioth about 1 year ago
This release complete all the main languages used by data scientists.
R
languageAdded REPL
for the languages
Python
R
F#
There is not DAP adapter for the R language, so that will be added to the wiki once someone writes one. In case you want to contribute, check DAP
Published by Zeioth about 1 year ago
Dotnet run this file on REPL
, Dotnet build & run
and Dotnet build
.Example of using the F# REPL:
Example of using DAP with F#:
Published by Zeioth about 1 year ago
CompilerStop
: dispose all tasks.This can be useful for users who want to build a key mapping like
-- Stop all tasks and redo
vim.api.nvim_buf_set_keymap(0, 'n', '<S-F6>', function()
vim.cmd(CompilerStop)
vim.cmd(CompilerRedo)
end", { noremap = true, silent = true })
To prevent tasks from accumulating.
Published by Zeioth about 1 year ago
Starting this version, Compiler.nvim is considered ready for production, and only minor bug fixes and support for new languages will be added. No breaking changes are expected from this point.
This version contain minor new features for .solution.toml
.
.solution.toml
: Now accept inline comments.
.solution.toml
: Can now run multiple executables.
In previous versions, it was only possible to run one executable per solution. This new change cover border cases where an executable
may depend on one or many executable
to work properly. This way you don't have to manually run them of the terminal. All executable
will be launched in parallel every time you use build solution
.
Published by Zeioth about 1 year ago
.solution
file is now accepted again in order to keep backwards compatibility. From this version both .solution
and .solution.toml
are accepted as name for the solution file. We do recommend using .solution.toml
, so you get syntax highlighting and auto completion snippets.v2.2.0
. Now they are here for real!Published by Zeioth about 1 year ago
Telescope
: Will now start filtering after entering one character. This has been possible by using the new telescope conf.generic_sorter()
.Telescope
: Had a critical bug during 10 hours in the main branch. It's very unlikely you ran into this bug unlike you updated compiler.nvim in that precise moment, but it's been fixed (Thanks to ManJack1 for reporting).Published by Zeioth about 1 year ago
Rust Cargo
: Now it's possible to compile a rust
project using its Cargo.toml
file with the next options Cargo build and run
, Cargo build
and Cargo run
.Rust Cargo
: Also added the same options, but at workspace level: Cargo build --all and run
and Cargo build --all
..solution.toml
files instead of .solution
.Published by Zeioth about 1 year ago
C#
project using its .csproj
file. This will automatically install its nuget dependencies when necessary.It requires the new dependency dotnet
.
We now document how to debug programs compiled with compiler.nvim.
Published by Zeioth over 1 year ago
v2 include the next additions
Command | Description |
---|---|
:CompilerRedo |
Redo the last selected option. |
V1 only had the ability to compile single file programs.
Now it is possible to compile any project. Compiler.nvim will search recursively in the current working directory for the necessary files to compile the entry point of the program.
.solution
file.Published by Zeioth over 1 year ago
This first stable release include 100+ fixes and adds support for the next languages
You can be 100% sure all the compilers are working correctly.
A user can now check if all the required dependencies are installed with
:lua require("compiler") -- To ensure compiler.nvim is loaded
:checkhealth compiler
Some language like python now allow compiling to machine code, bytecode, or interpreted. This makes Python the most versatile language to experiment of all the ones we implement.
Windows and MacOS support has been added too.