orrsella / sbt-sound Goto Github PK
View Code? Open in Web Editor NEWAn sbt plugin for adding sounds to task completions
License: Other
An sbt plugin for adding sounds to task completions
License: Other
It seems 1.0.2 is only available for SBT 0.13, while 1.0.1 is only available for 0.12, unlike suggested by the README?
It would be cool to have the same release number be cross-built across different SBT releases.
Below the error I get with 1.0.2 on SBT 0.12.
warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.orrsella#sbt-sound;1.0.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.orrsella:sbt-sound:1.0.2 (sbtVersion=0.12, scalaVersion=2.9.2)
How hard would this be?
As written in the README, I added the line to play sound after compilation is done:
sound.play(compile in Compile, "meow_futurama.wav")
The problem is that only a small portion of the sound - around 0.5 seconds from the beginning - is played (the sound is longer). I tested with play
, it plays without issues.
This is an awesome idea and very well thought of implementation (!).
Looks (sounds) like the sounds go off just when the task started, rather than at its end. I'm using sbt 0.13.9, scala 2.11.7. I think this is related to using this plugin on a multi-build project. Maybe it is calling the sound after the first sub-project is done.
Also getting no sound at all for +compile
or ~+compile
.
Is any of this coming from some known reason? maybe a link to a multi-project build using it would help.
My sbt setup for the plugin (in addition to plugins.sbt) is probably quite standard -
sound.play(compile in Compile, Sounds.Blow, Sounds.Tink)
sound.play(test in Test, Sounds.Blow, Sounds.Ping)
sound.play(publishLocal, Sounds.Blow, Sounds.Ping)
Thank you!
java.lang.NoClassDefFoundError: sun/audio/AudioStream
According to https://stackoverflow.com/a/49841342/1726544, sun/audio was removed from java 9.
Doesn't compile with:
sound.play(reStart in backend, Sounds.Basso, Sounds.Pop) // play the 'Pop' sound only when compile fails
error: overloaded method value play with alternatives:
[T](t: sbt.TaskKey[T], suc: com.orrsella.sbtsound.SbtSound.Sound, fail: com.orrsella.sbtsound.SbtSound.Sound)sbt.Setting[sbt.Task[T]] <and>
[error [T](t: sbt.TaskKey[T], suc: String, fail: String)sbt.Setting[sbt.Task[T]] <and>
] Type error in expression
[T](t: sbt.TaskKey[T], suc: com.orrsella.sbtsound.SbtSound.Sound, fail: String)sbt.Setting[sbt.Task[T]] <and>
[T](t: sbt.TaskKey[T], suc: String, fail: com.orrsella.sbtsound.SbtSound.Sound)sbt.Setting[sbt.Task[T]]
cannot be applied to (sbt.InputKey[spray.revolver.AppProcess], com.orrsella.sbtsound.SbtSound.Sounds.Basso.type, com.orrsella.sbtsound.SbtSound.Sounds.Pop.type)
sound.play(reStart in backend, Sounds.Basso, Sounds.Pop)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.