tjdevries / vim9jit

a vim9script -> lua transpiler (written in Rust)
MIT License
510 stars 21 forks source link

Newbie in Need: Seeking Guidance on vim9jit - Feeling a Bit Lost #36

Open ghost opened 8 months ago

ghost commented 8 months ago

Can someone help me figure out how to use vim9jit?

I've downloaded the executable file, but it's not running on my Fedora system.

ghost commented 8 months ago

For this command ./vim9jit -o test --file init.vim, I'm getting this error message.

thread 'main' panicked at 'not yet implemented: [Colon] I don't think we ever get this in reality? Parser {
    lexer: Lexer { position: 100, read_position: 101, ch: Some(' ') },
    token_buffer: RefCell {
        value: [
            Token(Colon, ":", (2,13)->(2,14)),
            Token(Identifier, "os", (2,14)->(2,16)),
            Token(Equal, "=", (2,17)->(2,18)),
            Token(DoubleQuoteString, "Windows", (2,20)->(2,26)),
            Token(EndOfLine, "\n", (2,28)->(2,28)),
        ],
    },
}', crates/vim9-parser/src/lib.rs:1720:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
tjdevries commented 8 months ago

Sounds like there was some broken code -- can you send me the file you're trying to parse?

ghost commented 8 months ago

This one

https://github.com/tjdevries/vim9jit/releases/download/latest/vim9jit