Skip to content

Rails::BacktraceCleaner compatibility. #98

@lime-boorse

Description

@lime-boorse

The implementation of Rails::BacktraceCleaner filters out everything that doesn't come from the app, config, lib, or test directories, which obviously impacts using packs to organize a Rails codebase. I also noticed this was raised in the Rails forum here.

Would it make sense to have an implementation of this in packs-rails, which inherits from ActiveSupport::BacktraceCleaner, and it adds the packs directory?

Something like:

APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|packs|\(\w*\))/
# ...
add_silencer { |line| !APP_DIRS_PATTERN.match?(line) }

The alternative to this is to call remove_filters! on the Rails::BacktraceCleaner, but obviously this would remove a bunch of useful configuration that we're getting from the ActiveSupport::BacktraceCleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageA new issue that needs review by the core team

    Type

    No type

    Projects

    Status

    Up for grabs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions