Code Monkey home page Code Monkey logo

metamath-vspa's People

Contributors

dependabot[bot] avatar tirix avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

metamath-vspa's Issues

Server Crash on new install

  1. Followed install instructions for Metamath LSP server https://github.com/tirix/metamath-vspa#installation.
  2. Installed Metamath VS code extension.
  3. Server Error when trying to open eengtrkg.mmp to test the functionality of the extension.

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace [Info - 9:07:02 AM] Connection to server got closed. Server will restart. thread 'main' panicked at 'Bad file path: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/util.rs:105:33

Don't think I am doing anything wrong as I am following the instructions so this issue is being opened to help figure out my issue but also, in the event that it is something trivial, to add the fix to the install instructions in case others may hit the same thing.

Server crash if set.mm is not valid

Hi @tirix ,

to see if Diagnostics was implemented, I've changed the line

reelprrecn $p |- RR e. { RR , CC } $=

to

reelprrecn $p |- RR e. { RR , CCD } $=

and I get the error below:

thread 'main' panicked at 'called Option::unwrap() on a None value', /mydir/.cargo/git/checkouts/metamath-knife-c0afdf58ccf11b37/0dbd297/src/grammar.rs:1295:59
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at 'called Result::unwrap() on an Err value: Any { .. }', /mydir/.cargo/git/checkouts/metamath-knife-c0afdf58ccf11b37/0dbd297/src/database.rs:300:31
[Info - 5:14:40 PM] Connection to server got closed. Server will restart.

Autocompletion error (non implemented)

If I edit an .mmp file, I get this error

[Error - 5:08:09 PM] Request textDocument/completion failed.
Message: Not implemented
Code: -32601

I'm pretty sure it is because the server adverts that feature, but it's actually not implemented.

Just to let you know

trying to test it

Hi @tirix ,

in these days, every now and then I've tried to test your project. A few notes you could consider, when you'll update the Readme file:

  • a little typo in the Readme intall > install

I've tried to install it on a clean Ubuntu VM:

  • at some point (I don't remember if I was installing Rust, or I was compiling with Cargo) an error came up (googling for the error message, it was an easy fix, I was missing a C Compiler)

  • please, consider adding a note about updating node.js (I had to do it, because my npm version was pretty old, not sure if VSCode comes with an old version of node); on Linux I always use nvm to manage node versions

  • to silence warnings, I had to launch a 'npm install'

Now F5 runs, but it does nothing (I would expect the "Extension Development Host" to open). Should I look for the launch.json file?
I'll look further into it.

Thanks for the great job
Glauco

Wrong hover descriptions on constants

In general, the correct description is provided when hovering over constants:
image

However, in some cases, there is a shift between the correct description and the description shown:
image

Here, the correct description for /\ would be: Wedge (read: 'and')
But the description shown is: Vee (read: 'or')

LSP server crashes when hovering on constants

@glacode mentioned in issue #2 :

I'm getting an error when I hover on a constant; and the LSP server crashes/restarts:

thread 'main' panicked at 'called Option::unwrap() on a None value', //.cargo/git/checkouts/metamath-knife-c0afdf58ccf11b37/7954d40/src/grammar.rs:462:80
stack backtrace:
0: rust_begin_unwind
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
1: core::panicking::panic_fmt
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
2: core::panicking::panic
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:48:5
3: metamath_knife::grammar::Grammar::too_short
4: metamath_knife::grammar::Grammar::parse_formula
5: mm_lsp_server::definition::find_statement
6: mm_lsp_server::hover::hover
7: mm_lsp_server::server::Server::run
8: mm_lsp_server::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
[Info - 12:30:40 AM] Connection to server got closed. Server will restart.
[Error - 12:30:40 AM] Request textDocument/hover failed.

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.