Code Monkey home page Code Monkey logo

Comments (7)

kagof avatar kagof commented on July 20, 2024 2

A bit of a progress update, if you're interested.

Unfortunately it isn't a version cap that I'm (knowingly, at least) putting in. The intelliJ plugin verifier says that it should be compatible:

However even manually installing the plugin from a zip doesn't work

I've updated the plugin to build using the SDK for IntelliJ 2020.3. However, long story short, it seems like with some of the changes IntelliJ has done to their IconLoader, the Pokémon sprite gifs no longer load. I've been playing around with different ways of handling them with limited success, but hopefully with some tinkering over this weekend I'll be able to get something working.

from intellij-pokemon-progress.

kagof avatar kagof commented on July 20, 2024 2

I was able to go with option 1 :)

version 1.2.1 has been uploaded to JetBrains, hopefully should be approved in not too long. In the mean time it is uploaded as an attachment on the release: https://github.com/kagof/intellij-pokemon-progress/releases/tag/1.2.1

from intellij-pokemon-progress.

Rikj000 avatar Rikj000 commented on July 20, 2024

For me it stopped working in the latest version as well.

Environment Info (required):

  • OS: Manjaro Linux (Kernel v5.8.18.1 & KDE Plasma v5.20.3)
  • JetBrains Products:
    • IntelliJ IDEA Ultimate v2020.3
    • DataGrip v2020.3
  • Plugin Version: v1.2.0

I can also confirm that it still works in Rider v2020.4

Imgur - IntelliJ IDEA error message

Would love to see the little Pokemons fly around again, they really made my days at work a tad more fun! :)

from intellij-pokemon-progress.

kagof avatar kagof commented on July 20, 2024

Thanks for the bug report @kamronbatman, and thanks for the extra info @Rikj000, that's extremely helpful. I'll look into this.

Strangely I'm also on IntelliJ Ultimate 2020.3 and plugin v1.2.0 and it seems to currently be working for me.

I'm now able to repro, should be able to fix this :)

from intellij-pokemon-progress.

kamronbatman avatar kamronbatman commented on July 20, 2024

I didn't look into it but I assumed it was just a version cap that needs to be lifted. I would probably not have a version check and let it hard break in the future, then version cap it if needed with a minor update to cap it.

from intellij-pokemon-progress.

kamronbatman avatar kamronbatman commented on July 20, 2024

It looks like other progress cars are not affected or have been updated. I wonder if they figured it out? If I get some time I'll do some digging.

from intellij-pokemon-progress.

kagof avatar kagof commented on July 20, 2024

Specifically the issue I'm having with the sprites is because they are animated. Unfortunately the only other progress bars I know that use animated sprites (the ones by KikiManjaro) do not have their source code available online, so I can't check out the way they do it.

Things that don't work:

  1. the plugin originally uses gifs for all sprites, however gif loading seems to not work in the latest version.
  2. Animated png files with transparency do not seem to load (in this version, nor the previous versions)

Options that are viable & I've been playing around with:

  1. I've been playing around with not using the JetBrains IconLoader at all, and just directly loading from the classpath.
  • pros:
    • don't need to change away from using gifs
    • I don't think the IconLoader is really giving us a ton of benefits, other than some in memory caching, which could easily be replaced if needed
  • cons:
    • Its possible the IconLoader has some optimizations or something else that I'm not aware of, which we then lose
  1. Loading individual png files and wrapping them in an AnimatedIcon. I've checked that this works
  • pros:
    • can continue using the IconLoader
    • easy to adjust the speed of the animation
    • potentially don't need the separate reversed sprites; IconUtil.flip doesn't seem to work on animated gifs, but likely is workable with this solution
  • cons:
    • I'd need to migrate all existing sprites to be a sequence of pngs, and change my process for creating new ones.

I'm really hoping to stick with option 1, since changing from gifs to a sequence of pngs will be a pain. Although, maybe it'll be better in the long run, who knows.

from intellij-pokemon-progress.

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.