Skip to content

Error messages #324

Open
Open

Description

@brandmaier

I just got this:


julia> model = Sem(
           specification = partable,
               data          = data
       )
ERROR: MethodError: no method matching /(::String, ::Int64)
The function `/` exists, but no method is defined for this combination of argument types.

I realized this happens because I accidentally modeled a variable that was type String. I think we should have a check to catch this and give a proper error message.

Activity

  1. niro4-1 commented on Jun 7, 2026

    @niro4-1

    Consider adding documentation to clarify the cause and resolution for the type mismatch error mentioned in this issue.

  2. siya12425 commented on Jun 10, 2026

    @siya12425

    Hi! I'd like to work on this issue. I'm interested in improving the error handling for this case and adding a clearer message when non-numeric variables are passed to Sem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions