Code Monkey home page Code Monkey logo

Comments (8)

alexmojaki avatar alexmojaki commented on July 28, 2024 1

You started with

Birdseye does not provide a __version__ attribute

which would have left you in the same situation.

I found a better option:

$ pip search birdseye
birdseye (0.3.0)  - Quick, convenient, expression-centric, graphical Python debugger using the AST
  INSTALLED: 0.3.0 (latest)

Perhaps this should be done in birdseye itself rather than this extension. It can do the check in a background thread and emit a warning if necessary. Then all the extension has to do is show the warning if it sees it in the server output. People not using this extension will also know that they should update.

from birdseye-vscode.

alexmojaki avatar alexmojaki commented on July 28, 2024 1

This is done. Your extension should look for a message along these lines:

The package birdseye is out of date. Your version is 0.4.0, the latest is 0.4.1.

Although you won't be able to test it until a newer version is released.

from birdseye-vscode.

alexmojaki avatar alexmojaki commented on July 28, 2024 1

When the extension installs birdseye, it should just automatically install the latest version by default.

from birdseye-vscode.

alexmojaki avatar alexmojaki commented on July 28, 2024

pip show birdseye gives the version.

from birdseye-vscode.

Almenon avatar Almenon commented on July 28, 2024

@alexmojaki I don't want to just get the version - I want to check if there is a newer version availible.

As a workaround I suppose I could hardcode the latest version into the extension, but then I would have to update that manually each time. Easier to just parse the output of pip list --outdated

from birdseye-vscode.

Almenon avatar Almenon commented on July 28, 2024

sounds good to me - I'll raise an issue in your repo.

from birdseye-vscode.

alexmojaki avatar alexmojaki commented on July 28, 2024

As it happens I found another bug and I've already released a version 0.4.1, so you should be able to test this soon. But the version check is cached for a day, so if you've already upgraded to 0.4.0 and run birdseye you won't see it yet.

from birdseye-vscode.

rootsmusic avatar rootsmusic commented on July 28, 2024

I'm using version 0.0.6 of @Almenon's extension, which was updated on 3/7/2021. There's no message that says "The package birdseye is out of date." Since the extension is a "wrapper", does that mean its underlying package has been updated to version 0.9.4?

from birdseye-vscode.

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.