Trying to run entire test suite of rails app fails. More specifically, the Rake task test:prepare fails.
Probable cause is the above linked line.
def tool_exists?(tool)
system "command -v #{tool} > /dev/null"
end
Since windows doesn't have a /dev/null directory, that line of code is platform-specific and fails on windows.
Versions:
windows 11
ruby 3.4.4
rails 8
cssbundling-rails 1.4.3
Backtrace:
** Invoke test:prepare (first_time)
** Invoke javascript:build (first_time)
** Invoke javascript:install (first_time)
** Execute javascript:install
yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.09s.
** Execute javascript:build
yarn run v1.22.22
$ esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets
app\assets\builds\application.js 854.6kb
app\assets\builds\add_jquery.js 240.5kb
app\assets\builds\datatables-bs5.js 51b
app\assets\builds\application.js.map 1.6mb
app\assets\builds\add_jquery.js.map 460.6kb
app\assets\builds\datatables-bs5.js.map 93b
Done in 0.18s.
** Invoke css:build (first_time)
** Invoke css:install (first_time)
** Execute css:install
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
bin/rails aborted!
cssbundling-rails: No suitable tool found for installing JavaScript dependencies
C:/Users/matias/.gem/ruby/3.4.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:37:in 'Cssbundling::Tasks#install_command'
C:/Users/matias/.gem/ruby/3.4.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:4:in 'block (2 levels) in <main>'
......```
Trying to run entire test suite of rails app fails. More specifically, the Rake task test:prepare fails.
cssbundling-rails/lib/tasks/cssbundling/build.rake
Line 53 in 95d9b59
Probable cause is the above linked line.
Since windows doesn't have a /dev/null directory, that line of code is platform-specific and fails on windows.
Versions:
windows 11
ruby 3.4.4
rails 8
cssbundling-rails 1.4.3
Backtrace: