-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding exception hunter breaks the apartment gem #97
Comments
Commenting out these in schema.rb resolves the issue:
|
Hey @CR1AT0RS, thanks for reporting this issue!. It doesn't seem to be related to the gem itself but rather to Postgres. Exception Hunter uses the pg_trgm module from Postgres to quickly index error messages and search them by similarity (kind of like Elasticsearch does). This module should be installed by default but it may not be present on your system, could you tell me which operating system are you using, Postgres' version, and how did you install it? You can also check for instructions to enable the module in this issue, it seems you only need to run |
@brunvez thanks for responding. I have the extensions enabled. I am using OSX postgres.app which comes precompiled with the extensions. I am on rails 6.0.3 and ruby 2.7.1. Interestingly if I run the migrations manually to create a new schema it works but when I use the default "apartment" based migration creation it faiils. This works:
This doesn't work:
Migration name: 20200716171440_create_exception_hunter_error_groups.rb
|
Bug report:
Steps to Reproduce:
Version of the repo: latest
Ruby and Rails Version: 2.7.1 and 6.0.3
Rails Stacktrace: this can be found in the
log/development.log
orlog/test.log
, if this is applicable.The problem is that its not able to copy the schema from the exception_hunter gem
I have tried testing this with different rails api projects and all gems except the "exception_hunter_error" table. It breaks on that. I have postgres with "gin_trgm_ops"
The text was updated successfully, but these errors were encountered: