Giter VIP home page Giter VIP logo

Comments (9)

digital-phoenix avatar digital-phoenix commented on September 2, 2024

I just confirmed that turning off the wi-fi produces a timeout error in the status bar.

from refact-sublime.

olegklimov avatar olegklimov commented on September 2, 2024

produces a timeout error in the status bar

Cool, but we need error to go via LSP, not through stderr. We want a good product, written correctly, no hacks.

from refact-sublime.

digital-phoenix avatar digital-phoenix commented on September 2, 2024

The error is generated from the rpc connection. The rpc connection uses stdio in favour of an http connection because the server is running locally.

from refact-sublime.

digital-phoenix avatar digital-phoenix commented on September 2, 2024

The main reason the code monitors the process through stderr is to address the issue where the server would crash but the process would not terminate. By monitoring for crashes directly the code is able to cleanly close the server.

from refact-sublime.

olegklimov avatar olegklimov commented on September 2, 2024

refact-lsp does not crash. I think we fixed all or nearly all error handling in rust, so unlikely it will panic or exit.

from refact-sublime.

digital-phoenix avatar digital-phoenix commented on September 2, 2024

This code is over a month old. If the refact server doesn't crash anymore then this code can be removed.

from refact-sublime.

olegklimov avatar olegklimov commented on September 2, 2024
image

I just exited Sublime Text, two processes left over.

from refact-sublime.

olegklimov avatar olegklimov commented on September 2, 2024

Tested: process does not restart

The process does not restart with relevant settings change, specifically api_key, address_url, telemetry_code_snippets.

^^ this specifically doesn't work.

image

Here if I change "zzz" to "www" it doesn't restart the refact-lsp process with the new command line.

from refact-sublime.

hazratisulton avatar hazratisulton commented on September 2, 2024

Checked #16 - changing option in plugin settings restarts the refact-lsp.

from refact-sublime.

Related Issues (12)

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.