Skip to content
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

sequential causes panic #339

Open
morgante opened this issue May 16, 2024 · 0 comments
Open

sequential causes panic #339

morgante opened this issue May 16, 2024 · 0 comments

Comments

@morgante
Copy link
Contributor

A simple sequential pattern is causing panics:

language python

sequential {
  find_replace_imports(list=[
    [`langchain_community.llms.anthropic`, `Anthropic`, `langchain_anthropic`, `Anthropic`],
    [`langchain_community.callbacks.tracers`, `LangChainTracer`, `langchain_core.tracers`, `LangChainTracer`],
  ]),
  find_replace_imports(list=[
    [`langchain_community.llms.anthropic`, `Anthropic`, `langchain_anthropic`, `Anthropic`],
    [`langchain_community.callbacks.tracers`, `LangChainTracer`, `langchain_core.tracers`, `LangChainTracer`],
  ])
}
Vector::index: index out of bounds: 0 < 0
thread '<unnamed>' panicked at /Users/runner/work/rewriter/rewriter/vendor/gritql/crates/grit-pattern-matcher/src/pattern/state.rsthread ':<unnamed>42' panicked at :/Users/runner/work/rewriter/rewriter/vendor/gritql/crates/grit-pattern-matcher/src/pattern/state.rs43thread '::
Vector::index: index out of bounds: 0 < 0<unnamed>
thread '' panicked at <unnamed>' panicked at thread '/Users/runner/work/rewriter/rewriter/vendor/gritql/crates/grit-pattern-matcher/src/pattern/state.rs<unnamed>:' panicked at 42/Users/runner/work/rewriter/rewriter/vendor/gritql/crates/grit-pattern-matcher/src/pattern/state.rs/Users/runner/work/rewriter/rewriter/vendor/gritql/crates/grit-pattern-matcher/src/pattern/state.rs:4243::
43Vector::index: index out of bounds: 0 < 0:
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

No branches or pull requests

1 participant