Skip to content

Incorrect hover annotations #1326

Closed
Closed
@p-offtermatt

Description

@p-offtermatt

Take this spec:
https://github.com/cosmos/interchain-security/blob/214f6e5c25346b9d3287be8337201f2d15ba538a/tests/mbt/model/ccv.qnt#L337

In particular, this function:

    pure def AppendConsumerAddrToPrune(currentState: ProtocolState, oldConsAddr: ConsumerAddr): ProtocolState = {
        pure val vscId = currentState.providerState.runningVscId
        pure val consumerAddrsToPrune = currentState.providerState.consumerAddrsToPrune
        pure val prevConsAddr = consumerAddrsToPrune.get(oldConsAddr).getOrElse(vscId, [])

       pure val newConsAddrsToPrune = consumerAddrsToPrune

       currentState
    }

when I hover over consumerAddrsToPrune, I get this info:
image
which is not very useful - I want to find the type of consumerAddrsToPrune, which is defined like this:

    type ProviderState =
        {
            [...]
            consumerAddrsToPrune: Chain -> VscId -> List[ConsumerAddr],
        }

The field curiously also doesn't show up when I hover over providerState:

image

It seems this is only broken in this particular function, not everywhere. See how I think it should look, hovering over a providerState somewhere else (red circle for emphasis):
image

Not sure I'm missing something subtle, or this is a genuine bug.

% quint --version
0.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXimpacts or improves user experiencebugSomething isn't workingtypecheckerType checker for Quint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions