Skip to content

web-console complains about being active in the test environment when tailwindcss-rails gets update #326

Closed as not planned
@pupeno

Description

@pupeno

I'll continue debugging this but I thought you may know what's going on or be able to give me some pointers as to what to look for. My project is open source, so I can point you out to the pull request that's causing web-console to stop working:

https://github.com/flexpointtech/repeater_world/pull/321/files

It updates two gems, nokogiri and tailwindcss-rails. I upgraded nokogiri on its own and it didn't seem to be the culprit, so it must be tailwindcss-rails but I have no idea how yet.

What happens is that when I run rake spec I get this error:

Web Console is activated in the test environment. This is
usually a mistake. To ensure it's only activated in development
mode, move it to the development group of your Gemfile:

    gem 'web-console', group: :development

If you still want to run it in the test environment (and know
what you are doing), put this in your Rails application
configuration:

    config.web_console.development_only = false

For more details:

pupeno@a:~/repeater_world$ git checkout main
Already on 'main'
Your branch is up to date with 'origin/main'.
pupeno@a:~/repeater_world$ rake spec
/home/pupeno/.rbenv/versions/3.1.2/bin/ruby -I/home/pupeno/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rspec-core-3.12.2/lib:/home/pupeno/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rspec-support-3.12.1/lib /home/pupeno/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rspec-core-3.12.2/exe/rspec --pattern
 spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

Randomized with seed 32190
.....^C

pupeno@a:~/repeater_world$ git checkout dependabot/bundler/tailwindcss-rails-2.0.30
Switched to branch 'dependabot/bundler/tailwindcss-rails-2.0.30'
Your branch is up to date with 'origin/dependabot/bundler/tailwindcss-rails-2.0.30'.
pupeno@a:~/repeater_world$ rake spec
Web Console is activated in the test environment. This is
usually a mistake. To ensure it's only activated in development
mode, move it to the development group of your Gemfile:

    gem 'web-console', group: :development

If you still want to run it in the test environment (and know
what you are doing), put this in your Rails application
configuration:

    config.web_console.development_only = false

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions