mix

dialyxir mix task to create PLT exits without error or creating table

僤鯓⒐⒋嵵緔 提交于 2019-12-02 10:08:23
I am trying to use dialyxir to run dialyzer analysis on my project through the mix tasks it provides. I have added it to my dependencies and compiled as per the README. When I run the mix dialyxir.plt it reports no error and yet exits without creating the table. $ mix dialyzer.plt Starting PLT Core Build ... this will take awhile dialyzer --build_plt --output_plt /home/vagrant/.dialyxir_core_19_1.3.2.plt --apps erts kernel stdlib crypto public_key -r /usr/local/lib/elixir/bin/../lib/elixir/../eex/ebin /usr/local/lib/elixir/bin/../lib/elixir/../elixir/ebin /usr/local/lib/elixir/bin/../lib

Is it possible to get the compiler to exit early, failing the build, if a compile time warning is raised?

会有一股神秘感。 提交于 2019-12-01 15:52:48
I find the compile time warnings very useful, but I can occasionally miss them, especially if it's on a pull request where the tests are running on a CI server. Ideally I would specify something in the project mix file that would make the compiler more strict. I want to this to be in effect for all mix tasks, and I do not want to have to pass the flag to the command, as this is easy to forget. For example with a project with a compiler warning, this command should fail mix clean && mix compile As should this one mix clean && mix test Possible to some extent. There is a flag --warnings-as

Is it possible to get the compiler to exit early, failing the build, if a compile time warning is raised?

瘦欲@ 提交于 2019-12-01 14:42:44
问题 I find the compile time warnings very useful, but I can occasionally miss them, especially if it's on a pull request where the tests are running on a CI server. Ideally I would specify something in the project mix file that would make the compiler more strict. I want to this to be in effect for all mix tasks, and I do not want to have to pass the flag to the command, as this is easy to forget. For example with a project with a compiler warning, this command should fail mix clean && mix

How do I set the default Elixir mix task

我只是一个虾纸丫 提交于 2019-12-01 03:38:12
If I have a mix.exs file something like: defmodule Mix.Tasks.My_task do use Mix.Task @shortdoc "Perform my task" def run(_) do IO.puts "Working" end end defmodule ElixirKoans.Mixfile do use Mix.Project def project do ... end I can happily run this with mix my_task . How do I make my_task be the default, so it is executed when I run mix without a task? It looks like you can define inside the project block (mix.exs) using default_task : def project do [default_task: "run"] end More info: https://github.com/elixir-lang/elixir/blob/f3f64cdba205253ca0bbc0ce6a5dddd500ffb48f/lib/mix/lib/mix/project

Block-scoped declarations not yet supported outside strict mode

拜拜、爱过 提交于 2019-11-28 06:47:36
I'm running Laravel 5.4 on my Homestead vagrant box. I've installed all the npm dependencies with npm install command. That didn't produce any errors. In my webpack.min.js file I have: const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up

FFMPEG amix filter volume issue with inputs of different duration

ぐ巨炮叔叔 提交于 2019-11-27 05:22:14
I noticed that ffmpeg amix filter doesn't output good result in specific situation. It works fine if input files have equal duration. In that case volume is dropped in constant value and could be fixed with ",volume=2" . In my case I'm using files with different duration. Resulted volume is not good. First mixed stream resulted in lowest volume, and last one is highest. You can see on image that volume is increased linearly withing a time. My command: ffmpeg -i temp_0.mp4 -i user_2123_10.mp4 -i user_2123_3.mp4 -i user_2123_4.mp4 -i user_2123_7.mp4 -i user_2123_5.mp4 -i user_2123_1.mp4 -i user

FFMPEG amix filter volume issue with inputs of different duration

旧城冷巷雨未停 提交于 2019-11-26 14:38:24
问题 I noticed that ffmpeg amix filter doesn't output good result in specific situation. It works fine if input files have equal duration. In that case volume is dropped in constant value and could be fixed with ",volume=2" . In my case I'm using files with different duration. Resulted volume is not good. First mixed stream resulted in lowest volume, and last one is highest. You can see on image that volume is increased linearly withing a time. My command: ffmpeg -i temp_0.mp4 -i user_2123_10.mp4

Is it possible to mix multiple audio files on top of each other preferably with javascript

青春壹個敷衍的年華 提交于 2019-11-26 14:38:17
问题 I want to combine audio clips, layered on top of each other so that they play synchronously and are saved in a new audio file. Any help would be much appreciated. I've done some digging online, but couldn't find a definitive answer as to whether or not many of the tools available as far as Javascript audio editing librarys go (Mix.js for example) are capable. 回答1: Yes, it is possible using OfflineAudioContext() or AudioContext.createChannelMerger() and creating a MediaStream . See Phonegap