Comments (8)
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.
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.
When the extension installs birdseye, it should just automatically install the latest version by default.
from birdseye-vscode.
pip show birdseye
gives the version.
from birdseye-vscode.
@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.
sounds good to me - I'll raise an issue in your repo.
from birdseye-vscode.
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.
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)
- unit tests HOT 1
- birdseye is not fully closed upon exit of birdseye HOT 6
- show user output of birdseye when birdseye is loading HOT 5
- improve birdseye start speed HOT 1
- telemetry reporting HOT 1
- about Chinese decode error HOT 4
- report installation progress HOT 1
- birdseye allows you to install using a pip that does not match your python HOT 2
- move settings config to birdseye function
- birdseye does not show up upon install HOT 1
- Update eye icon to match birdseye
- Change name for seo
- Doesn't pick up that birdseye is running HOT 3
- New documentation HOT 4
- Poll localhost to check if birdseye is running instead of looking at text
- Catch schema change warning and display it to user HOT 2
- update birdseye to use webview HOT 1
- Can't see the code that is run HOT 1
- Interactive elements don't appear in the WebView tab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdseye-vscode.