Skip to content

docs: Add note about adding .snapshot.rb files manually. #39

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

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

varungandhi-src
Copy link
Contributor

Motivation

I'll probably forget to mention it to someone contributing.

Test plan

n/a

@varungandhi-src varungandhi-src merged commit 532d9bf into scip-ruby/master Jul 28, 2022
@varungandhi-src varungandhi-src deleted the vg/add-test-note branch July 28, 2022 15:09
varungandhi-src pushed a commit that referenced this pull request Jun 25, 2024
* Add failing test

    ❯ sorbet test/testdata/definition_validator/superclass_class_loc__1.rb test/testdata/definition_validator/superclass_class_loc__2.rbi
    msg="Bad offset2Pos off" path="test/testdata/definition_validator/superclass_class_loc__1.rb" off="778""
    source="# typed: true\n\nmodule Parent\nend\n\nclass Child < Parent\nend\n"
    Exception::raise(): core/Loc.cc:43 enforced condition false has failed: (no message provided)

    Backtrace:
      #3 0xbb3f32
      #4 0x1a5b870 sorbet::core::Loc::offset2Pos()
      #5 0x1a5bbda sorbet::core::Loc::position()
      #6 0x1a5da17 sorbet::core::Loc::filePosToString()
      #7 0x19df6b8 sorbet::core::Error::toString()
      #8 0x19f292e sorbet::core::ErrorQueue::pushError()
      #9 0x1a3e882 sorbet::core::GlobalState::_error()
      #10 0x19e11c0 sorbet::core::ErrorBuilder::~ErrorBuilder()
      #11 0x1288d5a sorbet::definition_validator::(anonymous namespace)::validateSuperClass()
      #12 0x12861b6 sorbet::definition_validator::(anonymous namespace)::ValidateWalk::preTransformClassDef()
      #13 0x1285f6a sorbet::ast::MapFunctions<>::CALL_MEMBER_impl_preTransformClassDef<>::call<>()
      #14 0x1284c0f sorbet::ast::TreeMapper<>::mapClassDef()
      #15 0x1283d55 sorbet::ast::TreeMapper<>::mapIt()
      #16 0x1285a58 sorbet::ast::TreeMapper<>::mapInsSeq()
      #17 0x12846a6 sorbet::ast::TreeMapper<>::mapIt()
      #18 0x12839fa sorbet::ast::TreeWalk::apply<>()
      #19 0x12838db sorbet::definition_validator::runOne()
      #20 0xf5e8b0 sorbet::realmain::pipeline::(anonymous namespace)::typecheckOne()
      #21 0xf5e50d sorbet::realmain::pipeline::typecheck()::$_5::operator()()
      #22 0xf5e19d std::__1::__invoke<>()
      #23 0xf5e14d std::__1::__invoke_void_return_wrapper<>::__call<>()
      #24 0xf5e11d std::__1::__function::__alloc_func<>::operator()()
      #25 0xf5d2e9 std::__1::__function::__func<>::operator()()
      #26 0x1753d52 std::__1::__function::__value_func<>::operator()()
      #27 0x174a5f5 std::__1::function<>::operator()()
      #28 0x1bf5d7a sorbet::WorkerPoolImpl::multiplexJob()::$_2::operator()()
      #29 0x1bf5d1d std::__1::__invoke<>()
      #30 0x1bf5ccd std::__1::__invoke_void_return_wrapper<>::__call<>()
      #31 0x1bf5c9d std::__1::__function::__alloc_func<>::operator()()
      #32 0x1bf4ea9 std::__1::__function::__func<>::operator()()
      #33 0x1bfa5b2 std::__1::__function::__value_func<>::operator()()
      #34 0x1bf91d5 std::__1::function<>::operator()()
      #35 0x1bf313d sorbet::WorkerPoolImpl::WorkerPoolImpl()::$_0::operator()()
      #36 0x1bf307d std::__1::__invoke<>()
      #37 0x1bf302d std::__1::__invoke_void_return_wrapper<>::__call<>()
      #38 0x1bf2ffd std::__1::__function::__alloc_func<>::operator()()
      #39 0x1bf2219 std::__1::__function::__func<>::operator()()
      #40 0x1753d52 std::__1::__function::__value_func<>::operator()()
      #41 0x174a5f5 std::__1::function<>::operator()()
      #42 0x1bfdd53 Joinable::trampoline()
      #43 0x7f5e1d694b43
      #44 0x7f5e1d726a00

* Fix failing test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant