This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Stack overflow when running srb rbi hidden-definitions
#404
Labels
bug
Something isn't working
Comments
Still happens with Sorbet version 0.5.6357 |
@tophattom Hi Jaakko, can I ask if your ActiveRecord::Base has any method overriding "inherited"? I haven't seen this bug before and I suspect there is something that conflicts with the way sorbet-rails set up the inherited method. https://github.com/chanzuckerberg/sorbet-rails/blob/master/lib/sorbet-rails/railtie.rb#L32
|
I can't find anything in our codebase that would override it. Maybe some gem could do that? I couldn't figure out what gem would do that if any so I'll attach my Gemfile and Gemfile.lock here. Gemfilesource 'https://rubygems.org'
ruby '2.5.5'
gem 'rails', '5.2.4.5'
# Not part of Ruby in Ruby 2.4
gem 'xmlrpc', '0.3.0'
# MySQL
gem 'mysql2', '0.5.3'
# Elasticsearch client
gem 'elasticsearch', '~> 2.0.2'
# Authentication library
gem 'devise', '4.7.1'
# Easy-to-setup Rails administration
gem 'rails_admin', '1.4.3'
gem 'codemirror-rails'
# Basic localizations for most languages
gem 'rails-i18n', '5.1.1'
# All sorts of monitoring
gem 'dogstatsd-ruby', '3.3.0'
# mini replacement for RMagick
gem 'mini_magick', '~> 4.9.5'
# XLSX reader. It's in the name!
gem 'simple_xlsx_reader', '1.0.4', require: false
# Geospatial data types
gem 'rgeo', '1.0.0'
# GeoJSON extensions for RGeo
gem 'rgeo-geojson', '2.0.0'
# Encrypted model attributes
gem 'attr_encrypted', '3.1.0'
# Application timeout
gem "rack-timeout", '0.5.1', require: "rack/timeout/base"
# ---- Engines ----------------------------------------------------------------
gem 'api_v1', path: 'engines/api_v1'
gem 'diy_forms', path: 'engines/diy_forms'
gem 'newsroom', path: 'engines/newsroom'
gem 'systems_api', path: 'engines/systems_api'
gem 'webhooks', path: 'engines/webhooks'
# ---- APIs -------------------------------------------------------------------
# OAuth lib (APIs)
gem 'oauth', '0.5.4'
# Oauth2: last commit after 1.4.0 that works with LinkedIn gem
gem 'oauth2', git: 'https://github.com/oauth-xx/oauth2.git', ref: '2d8b8be4788a1b97407132e40bb03315581a139f'
# Auth0 API
gem 'auth0', '4.9.0'
# Google Oauth
gem 'omniauth-google-oauth2', '0.6.0'
# Google API client
gem 'google-api-client', '0.23.0', require: false
# google-cloud-translate is the official library for Google Cloud Translation API.
gem 'google-cloud-translate', '1.2.4'
# Vimeo API
gem 'vimeo', '~> 1.5.4'
# Facebook Graph API
gem 'koala', git: 'https://github.com/borc/koala.git', ref: 'ddde3b2'
# Twitter API
gem 'twitter', git: 'https://github.com/borc/twitter.git', ref: 'c73f8c4'
# Instagram API
gem 'instagram-continued', '1.4.0', require: "instagram"
# HTTParty for raw http-requests
gem 'httparty', '0.14.0'
# Faraday for HTTP requests
gem 'faraday', '0.13.1'
gem 'faraday_middleware', '0.12.2'
# Module for the 'fog' gem to support Amazon Web Services
gem 'fog-aws', '3.6.7'
# Wordpress XML-RPC API helper
gem 'rubypress', git: 'https://github.com/borc/rubypress.git'
# Google reCaptcha
gem 'recaptcha', '5.4.1', require: 'recaptcha/rails'
# Google+ API
gem 'google_plus', '0.2.5'
# LinkedIn API
gem 'linkedin-oauth2', '1.0.0'
# Wufoo API wrapper
gem 'wuparty', '1.2.7'
# Amazon Product advertising API
gem 'amazon-ecs', '2.5.0'
# Yammer API gem
# PR for newer rest-client (2.5.0 + PR #51)
gem 'yam', git: 'https://github.com/networkedbenny/yam.git'
# SoundCloud API gem
gem 'soundcloud', '0.3.4'
# ---- /end APIs --------------------------------------------------------------
# HTML sanitizer
gem 'sanitize', '5.2.1'
# Useful extensions to Ruby's String
gem 'stringex', '2.8.4'
# Authorization and authentication
gem 'cancancan', '2.2.0'
# curl wrapper
gem 'curb', '0.9.10'
# Markup (HTML/XML) parsing, manipulation and sanitization
gem 'nokogiri', '1.10.8'
gem 'feedjira', '2.2.0'
# Themes for rails with Rails 4+ support
gem 'themes_for_rails', git: 'https://github.com/peritpatrio/themes_for_rails.git', ref: '70647ad8fa5b7a32ab682b96fc5aea2269cf8b2c'
# Caching
gem 'redis', '3.3.1'
# Parse and linkify tweets
gem 'twitter-text', '2.1.0'
# Truncate HTML strings http://rubygems.org/gems/html_truncator
gem 'html_truncator', '0.4.2'
# FastImage finds the size or type of an image given its uri by fetching as little as needed
gem 'fastimage', '2.1.5'
# VideoInfo shows info for different video providers
gem 'video_info', '2.7.0'
# Receive emails
gem 'mailman', '0.7.3'
# Auto link text links
gem 'rinku', '2.0.4'
# Improve typography
gem 'typogruby', '1.0.18'
# Automatically strips all attributes of leading and trailing whitespace before validation
gem 'strip_attributes', '1.8.0'
# Awesome JSON builder for APIs
gem 'jbuilder', '2.8.0'
# Extends ActiveRecord to add simple support for organizing items into parent–children relationships.
gem 'acts_as_tree', '2.7.1'
# Helps with turning hashes into easily accessible with dot notation
gem 'recursive-open-struct', '1.0.5' # update requires kubeclient update (requires twitter gem update)
# For parsing OpenGraph data from url
gem 'opengraph_parser', git: 'https://github.com/tophattom/opengraph_parser.git', ref: '2c4037e'
# Preflight for HTML email https://premailer.github.io/premailer
gem 'premailer', '1.11.1'
# Simple, efficient background processing for Ruby.
gem 'sidekiq', '4.2.9'
# Needed for sidekiq to work properly (no idea why this is not in sidekiq gemspec)
gem 'redis-namespace', '1.5.2'
gem 'sidekiq-status', '~> 0.5.4'
# Rate-limit creation of jobs
gem 'sidekiq-debounce', '1.0.2'
# Control uniqueness of jobs
gem 'sidekiq-unique-jobs', '5.0.10'
# allows for calling "render" from anywhere
gem 'render_anywhere', '0.0.10', require: false
# This plugin uses the conductor pattern to wrap multiple models as one object.
# It's basically like the Presenter pattern, but for saving and creating multiple models.
gem 'active_conductor', '0.2.2'
# allows for custom tagging along dynamic contexts
gem 'acts-as-taggable-on', '7.0.0'
# Request throttle
gem 'rack-attack', '6.0.0'
# Code highlighter
gem 'coderay', '1.1.2'
# Excel sheet generation
gem 'axlsx_rails', '~> 0.5.2'
# axlsx: fix rubyzip relative path vulnerability
gem 'axlsx', git: 'https://github.com/randym/axlsx.git', ref: '5a8a685c5acf91fb40c4e42b18de61dbbbd18f57'
# Faster .blank? for strings
gem 'fast_blank', '1.0.0'
# Cross-process remote locking (mutexes)
gem 'remote_lock', '~> 1.1.0'
# Rack::UTF8Sanitizer is a Rack middleware which cleans up invalid UTF8 characters in request URI and headers.
gem 'rack-utf8_sanitizer', '1.5.0'
# A list of languages based upon ISO-639-1 and ISO-639-3
gem 'language_list', '1.2.1'
# Sentry.io
gem 'sentry-raven', '2.9.0'
# Contains CLDR data
gem 'twitter_cldr', '4.4.3'
# Country data
gem 'countries', '3.0.0'
# Helper to get an HTML select list of countries using the ISO 3166-1 standard.
gem 'country_select', '4.0.0'
# Replacement for URI
gem 'addressable', '2.5.2'
gem 'savon', '~> 2.12.0'
# For deep-converting hash keys from CamelCase to snake_case
gem 'plissken', '1.2.0'
# For deep-converting hash keys from snake_case to camelCase
gem 'awrence', '1.0.0'
# Intercom (https://www.intercom.io) is a customer relationship management and messaging tool for web app owners.
gem 'intercom', '3.7.6'
gem 'intercom-rails', '0.4.0'
# Stripe Payment Integration
gem 'stripe', '5.7.0'
# Validate VAT ID
gem 'valvat', '0.9.1'
# PDF generation
gem 'prawn', '2.2.2', require: false
gem 'prawn-svg', '0.27.1', require: false
# Wrapper for pusher.com REST api
gem 'pusher', '1.3.1'
# Rails logging in JSON format
gem 'lograge', '0.10.0'
gem 'logstash-event', '1.2.02'
# Other loggers in JSON
gem 'logstash-logger', '0.26.1'
# Clarifai API client
gem 'clarinet', '0.5.1'
gem 'net-sftp', '2.1.2', require: false
# Ruby/Rsync is a Ruby library that can syncronize files between remote hosts by wrapping a call to the rsync binary.
gem 'rsync', '1.0.9'
# A slim ruby wrapper for posting to slack webhooks
gem 'slack-notifier', '2.3.2', require: false
# Let's Encrypt certificates
gem 'acme-client', '2.0.5', require: false
# Punycode domain names
gem 'simpleidn'
# Text::Hyphen is a Ruby library to hyphenate words in various languages using Ruby-fied versions of TeX hyphenation patterns.
gem 'text-hyphen', '1.4.1'
# Kubernetes client
gem 'kubeclient', '2.5.2'
# AWS client for credentials
gem 'aws-sdk-core', '3.109.1'
group :deploy, :default do
# full text search
gem 'thinking-sphinx', '4.4.1'
# Rackspace API
gem 'fog-rackspace', '~> 0.1.5'
# Secret management
gem 'ejson', '1.2.1'
# Unicode Normalization Form (UNF)
gem 'unf', '0.1.4'
# https://appsignal.com/
# gem 'appsignal', '2.11.0'
end
group :deploy do
# Deploy with Capistrano
gem 'capistrano', '3.11.2'
gem 'capistrano-bundler', '1.6.0'
gem 'capistrano-rails', '1.4.0'
# Notify Capistrano deployments via webhook API. Just set the webhook URL and message.
gem 'capistrano-hook', '0.3.3'
end
# Rails observer (removed from core in Rails 4.0)
gem 'rails-observers', '~> 0.1.5'
gem 'sassc-rails', '2.1.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# Embed the V8 Javascript Interpreter into Ruby
gem 'therubyracer', '0.12.3', platforms: :ruby
# Javascript compactor
gem 'uglifier', '4.1.10'
# Precompile Handlebar templates
gem 'handlebars_assets', '0.23.2'
# Use hashids when you do not want to expose your database ids to the user.
gem 'hashids', '1.0.5'
# A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.
gem 'jwt', '2.2.1'
gem 'sorbet-runtime', '0.5.6357'
gem 'sorbet-rails', '0.7.3'
group :development, :dev_prod do
# A thin and fast web server (needed for https in local env)
# Generate a certificate and start with:
# bundle exec thin start -p 3001 --ssl --ssl-key-file ~/.ssl/rails.key --ssl-cert-file ~/.ssl/rails.crt
# gem 'thin', '1.7.0'
gem 'puma', '4.3.5'
# Process manager for applications with multiple components
# (run rails and sidekiq with one command: foreman start -f Procfile.development)
gem 'foreman', '0.85.0'
# Catch eager and N+1 queries
gem 'bullet', '5.9.0'
# Ruby process tracing
gem 'rbtrace', '0.4.11', require: false
# Memory profiling routines for Ruby 2.1+
gem 'memory_profiler', '0.9.13', require: false
# Automatic Ruby code style checking tool. Aims to enforce the community-driven Ruby Style Guide.
# gem 'rubocop', '0.66', require: false
# Middleware that will make Rack-based apps CORS compatible
gem 'rack-cors', '1.0.6', require: 'rack/cors'
# Logs the source of execution of all queries to the Rails log
gem 'active_record_query_trace', '1.6.2'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '3.3.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
# gem 'spring'
# Displays a speed badge on every page
# gem 'rack-mini-profiler'
# Better Rails error pages in dev
# gem 'better_errors'
gem 'sorbet', '0.5.6357'
# -- CLI tools: -----------------------------------------------------------
# Check for security vulnerabilities
# gem 'brakeman', require: false
# Spits out list of best practices you are not following
# gem 'rails_best_practices', require: false
end
# Rails console needs test gems in Ruby 2.2
gem 'minitest', '5.11.3'
gem 'minitest-rails', '3.0.0'
group :test do
# Integration test framework
gem 'capybara', '3.16.1'
# For debugging capybara tests
gem 'launchy', '~> 2.4'
# Clean it, clean it good
gem 'database_cleaner', '1.7.0'
# Freeze time
gem 'timecop', '0.9.1'
# Mock web requests
gem 'webmock', '3.5.1'
# Update crack for newer safe_yaml
gem 'crack', '0.4.3'
# allows the parent process to control the behaviour of child processes using breakpoints
gem 'fork_break', '~> 0.1.4'
# Record HTTP interactions and replay them with tests
gem 'vcr', '4.0.0'
# Stub constants for the duration of a block in MiniTest.
gem 'minitest-stub-const', '0.6'
# PhantomJS driver for Capybara
gem 'poltergeist', '1.18.1'
# Stripe webhook tests
gem 'stripe_tester', '~> 0.5.0'
# Use SQLite3 for some tests
gem 'sqlite3', '1.3.13'
# Lorem ipsum 2.0 for factories and content creation
gem 'faker', '1.8.7'
# Simple one-liner tests for common Rails functionality
gem 'shoulda', '~> 3.5'
gem 'shoulda-matchers', '~> 2.0'
gem 'rails-controller-testing'
# Mocha is a mocking and stubbing library for Ruby
gem 'mocha', '1.11.2'
end
group :development, :test do
# Rails: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
gem 'parallel_tests', '2.29.1'
# Runtime developer console for debugging
gem 'pry-rails', '0.3.9'
end
group :development, :test, :sandbox do
# Easy-to-use fixtures
gem 'factory_bot_rails', '4.8.2'
end
group :production, :staging, :sandbox do
# Kill Unicorn workers
gem 'unicorn-worker-killer', '0.4.4'
# Use unicorn as the app server
gem 'unicorn', '5.5.0'
end Gemfile.lock
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug:
I'm getting the following error when trying to run
srb rbi hidden-definitions
after installingsorbet-rails
:Steps to reproduce:
Install
sorbet-rails
, runsrb rbi hidden-definitions
either before of after running Rails RBI generator tasks.Expected behavior:
Should not crash.
Versions:
The text was updated successfully, but these errors were encountered: