Giter Site home page Giter Site logo

swdotcom / swdc-intellij-music-time Goto Github PK

View Code? Open in Web Editor NEW
16.0 7.0 6.0 164.65 MB

An IntelliJ plugin to discover the most productive music to listen to as you code

Home Page: https://www.software.com/music-time

License: Apache License 2.0

Java 99.86% Groovy 0.14%
intellij intellij-idea intellij-plugin jetbrains music spotify jetbrains-ides

swdc-intellij-music-time's People

Contributors

brettmstevens7 avatar geoffstevens8 avatar kushalkadu avatar kushkadu avatar xavluiz avatar yottamo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

swdc-intellij-music-time's Issues

Music Time fails to connect to Spotify

Verify first that your issue is not already reported on GitHub : reported and closed here, but still is an issue for me

Describe the bug

A clear and concise description of what the bug is.

I installed the plugin, hit "connect to spotify", gets to the page "Spotify is now connected" but nothing happens in my IDE.

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install the plugin via Marketplace
  2. Click on "Connect Spotify"
  3. Scroll down, click on "Allow" on Spotify's OAuth Page
  4. Get to https://app.software.com/spotify/authorized
  5. Go back to Webstorm, nothing happened, I can only retry from "2."

Expected behavior
A clear and concise description of what you expected to happen.

The plugin is connected to Spotify and allows me to play music.

ACTUAL RESULTS

I can't get the plugin to go past the "Connect to spotify" step.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

  • OS: Microsoft Windows 10 Enterprise Version 10.0.18363 Build 18363
  • Plugin version: MusicTime 2.0.5
  • IDE version: Webstorm 2020.2.1

Additional context
Add any other context about the problem here.


Spotify can't reconnect

Describe the bug
A clear and concise description of what the bug is.

After restarting the reconnect failed. No error message.
It just requested permissions on Spotify and didn't reconnect.

ISSUE TYPE

  • Bug Report

I installed used MusicTime 2.1.10 on IntelliJ 2021.2.3 RC.

The first start and connection to Spotify worked. After restarting the reconnect failed. No error message.
It just requested permissions on Spotify and didn't reconnect.

Steps to reproduce

  1. Install Music time
  2. Authorise with Spotify. (including the allowing part)
  3. Shutdown IntelliJ
  4. Restart
  5. try to connect to Spotify client on desktop
  6. It fails. Asks to reauthorise with Spotify.

Desktop (please complete the following information):

  • OS: macOS
  • Plugin version see above

Fails to connect (or fails to fetch playlists)

Describe the bug
A clear and concise description of what the bug is.

When setting up the plugin and authorizing Spotify, a popup appears, however the plugin view is still stuck on "Connect Spotify", even after waiting.

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install the plugin via Marketplace
  2. Click on "Connect Spotify"
  3. Scroll down, click on "Allow" on Spotify's OAuth Page
  4. Click "OK" on the new popup in Webstorm

Expected behavior
A clear and concise description of what you expected to happen.

Music Time shows recommendations, etc.

ACTUAL RESULTS

Music Time does not recognize fully that Spotify was connected, and tells me to Connect Spotify over and over.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 Pro 1909
  • Plugin version 2.0.2

Additional context
Add any other context about the problem here.


Status Bar Items moving

Describe the bug
A clear and concise description of what the bug is.

Status bar item from the plugin change size moving the rest of the items

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Press a status bar item

Expected behavior
A clear and concise description of what you expected to happen.

Status bar items wouldn't change size

ACTUAL RESULTS

Status bar items change size

Screenshots
If applicable, add screenshots to help explain your problem.

Grabacion.de.pantalla.2021-04-27.a.la.s.11.20.17.mov

Desktop (please complete the following information):

  • OS: MacOS
  • Plugin version: Music Time 2.2.10

Plugin's README that appears in the Rider Plugins panel has template markdown included at bottom

Describe the bug

I have Music Time 2.1.10 installed in Rider 2021.2.2.

When viewing the Music Time plugin under Rider's Settings -> Plugins, the README text has what looks like template markedown content at the bottom. For example:

Second Heading
Unordered lists, and:
One
Two
Three
More
Blockquote
And bold, italics, and even italics and later bold. Even  strikethrough . A link to somewhere.
And code highlighting:
var foo = 'bar';

function baz(s) {
   return foo + ':' + s;
}
Or inline code like var foo = 'bar';.
Or an image of bears
 
The end ...

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. In Rider, goto Settings -> Plugins and search for "Music Time" on the marketplace.
  2. Scroll down to the bottom of the README.

Screenshots

2021-12-04 22๊ž‰22๊ž‰15 rider64

Desktop (please complete the following information):

  • OS: Windows 10 Pro 21H1, build 19043.1348
  • IDE: JetBrains Rider 2021.2.2, build #RD-212.5284.64
  • Plugin: Music Time 2.1.10

Music controls don't show up in CLion

Describe the bug
Installing Music Time in CLion works as well as in IntelliJ. Menu and window are there, connection to Spotify incl. desktop app works well. The only bug in CLion is, that the music controls don't show up in the status bar. They do in IntelliJ on the same machine, so it's CLion specific.

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install plugin in CLion

Expected behavior
Music controls show up in status bar for CLion like they do in IntelliJ.

Music Controls

Desktop (please complete the following information):

  • OS: macOS
  • Plugin version Music Time v2.0.5

Freezes

Describe the bug
Saw your plugin in user freeze reports

	at com.musictime.intellij.plugin.fs.FileManager.getNumericItem(FileManager.java:390)
	at com.musictime.intellij.plugin.managers.SessionDataManager.getTimeBetweenLastPayload(SessionDataManager.java:82)
	at com.musictime.intellij.plugin.KeystrokeCount.processKeystrokes(KeystrokeCount.java:260)
	at com.musictime.intellij.plugin.SoftwareCoEventManager.lambda$checkFocusState$1(SoftwareCoEventManager.java:59)
	at com.musictime.intellij.plugin.SoftwareCoEventManager$$Lambda$2982/0x0000000801a90440.run(Unknown Source)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:322)
	at com.intellij.openapi.application.impl.ApplicationImpl$$Lambda$359/0x000000080029c440.run(Unknown Source)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:132)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:188)
	at [email protected]/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at [email protected]/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at [email protected]/java.awt.EventQueue$4.run(EventQueue.java:727)
	at [email protected]/java.awt.EventQueue$4.run(EventQueue.java:721)
	at [email protected]/java.security.AccessController.doPrivileged(Native Method)
	at [email protected]/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at [email protected]/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:841)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:452)
	at com.intellij.ide.IdeEventQueue$$Lambda$676/0x000000080089f840.compute(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)
	at com.intellij.ide.IdeEventQueue$$Lambda$673/0x0000000800899c40.run(Unknown Source)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:499)
	at [email protected]/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at [email protected]/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at [email protected]/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at [email protected]/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at [email protected]/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at [email protected]/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

ISSUE TYPE

  • Bug Report

ToolWindow icons should be 13x13

Describe the bug
A clear and concise description of what the bug is.

2021-02-11 00:05:15,820 [   8279]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Music Time) or icon UrlResolver{ownerClass=com.musictime.intellij.plugin.tree.MusicToolWindowFactory, classLoader=PluginClassLoader[PluginDescriptor(name=Music Time, id=com.musictime.intellij.plugin, path=/home/spurlos/.local/share/JetBrains/PhpStorm2020.3/musictime, version=2.1.4)] com.intellij.ide.plugins.cl.PluginClassLoader@7629d13f, overriddenPath='/com/musictime/intellij/plugin/assets/paw.png', url=file:/unresolved, useCacheOnLoad=true} 

ISSUE TYPE

  • Issue Report

Steps to reproduce

Launch IDE from console and you would see the logs right at the start.

Expected behavior

No warnings obviously :)

ACTUAL RESULTS

Logs pasted above ^

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 20.10
  • Plugin version Music Time v2.1.4

java.lang.NullPointerException at getSpotifyIntegration$0(Apis.java:35)

Describe the bug

Fatal error on startup. Plugin in non usable state.

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Just start IDE and click on Music Time tab

Expected behavior

Plugin in working state

ACTUAL RESULTS

Fatal Error

java.lang.NullPointerException
	at com.musictime.intellij.plugin.musicjava.Apis.lambda$getSpotifyIntegration$0(Apis.java:35)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
	at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1632)
	at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.findAny(ReferencePipeline.java:548)
	at com.musictime.intellij.plugin.musicjava.Apis.getSpotifyIntegration(Apis.java:36)
	at com.musictime.intellij.plugin.musicjava.Apis.getSpotifyAccessToken(Apis.java:42)
	at com.musictime.intellij.plugin.music.MusicControlManager.hasSpotifyAccess(MusicControlManager.java:312)
	at com.musictime.intellij.plugin.tree.MusicToolWindow.rebuildPlaylistTreeView(MusicToolWindow.java:274)
	at com.musictime.intellij.plugin.tree.MusicToolWindow.<init>(MusicToolWindow.java:131)
	at com.musictime.intellij.plugin.tree.MusicToolWindowFactory.createToolWindowContent(MusicToolWindowFactory.java:17)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:524)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:503)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:1016)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:962)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow(ToolWindowManagerImpl.kt:665)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow$default(ToolWindowManagerImpl.kt:643)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activated$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:2027)
	at com.intellij.openapi.wm.impl.StripeButton.lambda$new$0(StripeButton.java:68)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6652)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at com.intellij.openapi.wm.impl.StripeButton.processMouseEvent(StripeButton.java:329)
	at java.desktop/java.awt.Component.processEvent(Component.java:6417)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2784)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:885)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:814)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:751)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:441)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:440)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Desktop:

  • OS: Ubuntu 21.04
  • Plugin version 2.1.10

Error upon trying to connect

Describe the bug
A clear and concise description of what the bug is.

Error says I should upgrade my Code Time plugin upon trying to connect Music Time to Spotify. 

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install it through PHPStorm plugin marketplace
  2. Click on Connect Spotify
  3. Error shown in browser: "{"message":"Deprecated API. Please upgrade your Code Time plugin."}"

Expected behavior
A clear and concise description of what you expected to happen.

Spotify connection succesful

ACTUAL RESULTS

Error shown in a previous section

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Pop!_OS 22.04
  • Plugin version: Music Time v2.1.10
  • IDE: PhpStorm 2022.2.1

Additional context
Add any other context about the problem here.


Music Time for other streaming service like Youtube Music

SUMMARY
Music Time for other streaming service like Youtube Music
ISSUE TYPE
  • Feature Request
ADDITIONAL INFORMATION
I don't like Spotify and I am a Youtube Music user, it would be good to have a plugin compatible with Youtube Music as well!

NoClassDefFoundError: okhttp3/OkHttpClient

Describe the bug
A clear and concise description of what the bug is.

java.lang.NoClassDefFoundError: okhttp3/OkHttpClient
	at com.swdc.snowplow.tracker.manager.TrackerManager.<init>(TrackerManager.java:47)
	at com.musictime.intellij.plugin.managers.EventTrackerManager.init(EventTrackerManager.java:47)
	at com.musictime.intellij.plugin.SoftwareCoMusic.initializeUserInfo(SoftwareCoMusic.java:183)
	at com.musictime.intellij.plugin.SoftwareCoMusic.initializeUserInfoWhenProjectsReady(SoftwareCoMusic.java:170)
	at com.musictime.intellij.plugin.SoftwareCoMusic.access$000(SoftwareCoMusic.java:30)
	at com.musictime.intellij.plugin.SoftwareCoMusic$1.run(SoftwareCoMusic.java:165)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
	at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by: java.lang.ClassNotFoundException: okhttp3.OkHttpClient PluginClassLoader[PluginDescriptor(name=Music Time, id=com.musictime.intellij.plugin, path=/home/spurlos/.local/share/JetBrains/PhpStorm2020.2/musictime, version=2.0.11)] com.intellij.ide.plugins.cl.PluginClassLoader@465479a
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:95)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 8 more

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Just launch IDE

Expected behavior
A clear and concise description of what you expected to happen.

No error popup and stable plugin work

ACTUAL RESULTS

IDE becomes unstable if MusicTime is being used

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 20.10
  • Plugin version 2.0.11

Additional context
Add any other context about the problem here.


Use playerctl for spotify controls on GNU/Linux systems

SUMMARY
It is a known thing that the plugin currently requires to have a premium account for changing the song, pause, music control.
ISSUE TYPE
  • Feature Request
ADDITIONAL INFORMATION
This can be changed on GNU/Linux systems as there is a  FOSS project that provides cli control of multiple apps including spotify, player controls:

Here is the link:
playerctl

The music control no working

Describe the bug
The music control no working in phpstorm 2020.1, i can't play music, or playlist, only list

ISSUE TYPE

  • Bug Report

Desktop (please complete the following information):

  • OS: Windows 10
  • Plugin version: 1.1.2

This process is very bureaucratic, and I think in give up reporting the issue

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.