Git Product home page Git Product logo

Comments (6)

mtshiba avatar mtshiba commented on May 30, 2024

This is not a bug. Please update to rust 1.67 or higher.

from pylyzer.

mtshiba avatar mtshiba commented on May 30, 2024

And the VSCode extension works just by installing it. There is no need to change its settings.

from pylyzer.

harshil21 avatar harshil21 commented on May 30, 2024

This is not a bug. Please update to rust 1.67 or higher.

Thanks! I updated to 1.68 (from 1.66) and it worked.

And the VSCode extension works just by installing it. There is no need to change its settings.

I installed the latest version (0.1.3) and didn't change any settings, and now it launches, but it fails shortly after:

[Info  - 5:14:33 PM] load_modules
[Info  - 5:14:33 PM] initializing ELS
[Info  - 5:14:36 PM] successfully bound
[Error - 5:14:36 PM] Request textDocument/codeAction failed.
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Info  - 5:14:36 PM] Connection to server got closed. Server will restart.
true
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_parser-0.6.8-nightly.0/desugar.rs:830:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 5:14:36 PM] load_modules
[Info  - 5:14:36 PM] initializing ELS
[Info  - 5:14:36 PM] successfully bound
[Error - 5:14:36 PM] Request textDocument/codeAction failed.
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Info  - 5:14:36 PM] Connection to server got closed. Server will restart.
true
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_parser-0.6.8-nightly.0/desugar.rs:830:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 5:14:37 PM] load_modules
[Info  - 5:14:37 PM] initializing ELS
[Info  - 5:14:37 PM] successfully bound
[Info  - 5:14:37 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 5:14:37 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_parser-0.6.8-nightly.0/desugar.rs:830:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 5:14:37 PM] Connection to server got closed. Server will restart.
true
[Info  - 5:14:37 PM] load_modules
[Info  - 5:14:37 PM] initializing ELS
[Info  - 5:14:37 PM] successfully bound
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_parser-0.6.8-nightly.0/desugar.rs:830:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 5:14:37 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 5:14:37 PM] Connection to server got closed. Server will restart.
true
[Info  - 5:14:38 PM] load_modules
[Info  - 5:14:38 PM] initializing ELS
[Info  - 5:14:38 PM] successfully bound
[Info  - 5:14:38 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 5:14:38 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_parser-0.6.8-nightly.0/desugar.rs:830:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 5:14:38 PM] The pylyzer server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

from pylyzer.

mtshiba avatar mtshiba commented on May 30, 2024

I installed the latest version (0.1.3) and didn't change any settings, and now it launches, but it fails shortly after:

This was a bug. It should be fixed in the latest version.

from pylyzer.

harshil21 avatar harshil21 commented on May 30, 2024

This was a bug. It should be fixed in the latest version.

Hmm, the extension still isn't working (v0.1.3). I updated pylyzer from cargo to v0.0.12.

[Info  - 12:05:30 PM] load_modules
[Info  - 12:05:31 PM] initializing ELS
[Info  - 12:05:31 PM] successfully bound
[Info  - 12:05:31 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:33 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:34 PM] Connection to server got closed. Server will restart.
true
thread 'main' panicked at 'internal error: entered unreachable code: {.default_backend = .default_backend}', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_compiler-0.6.8-nightly.1/context/register.rs:139:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 12:05:35 PM] initializing ELS
[Info  - 12:05:35 PM] successfully bound
[Info  - 12:05:35 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:35 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'internal error: entered unreachable code: {.default_backend = .default_backend}', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_compiler-0.6.8-nightly.1/context/register.rs:139:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 12:05:39 PM] Connection to server got closed. Server will restart.
true
[Info  - 12:05:39 PM] initializing ELS
[Info  - 12:05:39 PM] successfully bound
[Info  - 12:05:39 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:39 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'internal error: entered unreachable code: {.default_backend = .default_backend}', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_compiler-0.6.8-nightly.1/context/register.rs:139:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 12:05:42 PM] Connection to server got closed. Server will restart.
true
[Info  - 12:05:42 PM] load_modules
[Info  - 12:05:43 PM] initializing ELS
[Info  - 12:05:43 PM] successfully bound
[Info  - 12:05:43 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:43 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'internal error: entered unreachable code: {.default_backend = .default_backend}', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_compiler-0.6.8-nightly.1/context/register.rs:139:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info  - 12:05:46 PM] Connection to server got closed. Server will restart.
true
[Info  - 12:05:46 PM] load_modules
[Info  - 12:05:46 PM] initializing ELS
[Info  - 12:05:46 PM] successfully bound
[Info  - 12:05:46 PM] textDocument/didOpen: file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
[Info  - 12:05:46 PM] checking file:///mnt/c/users/[omitted]/documents/pyprojects/python-telegram-bot/telegram/_bot.py
thread 'main' panicked at 'internal error: entered unreachable code: {.default_backend = .default_backend}', /home/hoppingturtles/.cargo/registry/src/github.com-1ecc6299db9ec823/erg_compiler-0.6.8-nightly.1/context/register.rs:139:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 12:05:49 PM] The pylyzer server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

I get the same error when trying from the command line: pylyzer telegram/_bot.py. The file I'm referencing is available here, if that helps.

from pylyzer.

mtshiba avatar mtshiba commented on May 30, 2024

The relevant bugs have been fixed.

from pylyzer.

Related Issues (20)

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.