Skip to content

tinymist panicked when calling Ord::clamp #2669

Description

@bramadityaw

Is there an existing issue for this?

  • I have searched the existing issues

Platform

x64 Windows (win32-x64, Most Common)

Editor

Neovim

Editor Version

NVIM v0.11.7
Build type: Release
LuaJIT 2.1.1741730670

Describe the bug

tinymist panicked with the following assertion failure:

thread 'tokio-rt-worker' (752) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234\\library\\core\\src\\cmp.rs:1090:9:
assertion failed: min <= max

when looking up where that assertion failed, even though it's not exact, I found the exact same call to assert! in Ord::clamp.

Server Logs

tinymist.log

Browser Logs

tinymist_browser.log

Additional context

This seems to happen whenever I spread an expression with three or more dots (I forget sometimes) instead of the correct two.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions