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

Note makes state machine not render #5202

Closed
katzuv opened this issue Jan 15, 2024 · 2 comments
Closed

Note makes state machine not render #5202

katzuv opened this issue Jan 15, 2024 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@katzuv
Copy link

katzuv commented Jan 15, 2024

Description

When I add a note to a state graph I get an error: Y[x.shape] is not a function

Steps to reproduce

  1. Add a note in a state graph
  2. Get the error above

Screenshots

No response

Code Sample

Code without note that works: https://mermaid.live/edit#pako:eNqNkjFrwzAQhf-KOMgWLx1N8NKm0KFTOhWBUa2zLRLdBVkOhJD_3pPl1KE0UE1C9733TjpdoGGLUMIQTcQXZ7pgfHF60qRkDT2PB1sj2bph7w1ZVao3imaPakAaOKgYXNdhQJsVYaTaZaAoqj8MZuOUNle3ZJ9n882m6dk1WFWaVqsEEgsnEX1U3Krdb0F2y-jDvnJZepjcHt5s6XcJuIfvYhO63LT-wpYDJjN5no8w4r9kwr6awyAwrMFj8MZZGcQliTXEHj1qKGVrTdhr0HQVzoyRd2dqoIySs4bxaJe5Qdkmw9vp1rrI4efwaOiT2d-UOFXf8_SnT3D9BtA3s8E

Code with note that doesn't work: https://mermaid.live/edit#pako:eNqNkUtrwzAMgP-K0bm57GhKLlsHO-zUnUYgeLaSmNZS8WMwSv_7lEeXMrYxn4z16ZNkncGyQ9CQssn44E0fTaje7xpSctLA5ehaJNdaDsGQU1o9UTYHVAkpcVQ5-r7HiG7OiIVaPwNVVf8gWMRjtSW6I3e_yLdbO7C3WNcTRiyQ-IesuFP77_SskvNXR1J68vw60Nrmqr6FbwqO6Dpg-4YdRxxl8isvseC_0oR9NMckMGwgYAzGO_n_85jcQB4wYANars7EQwMNXYQzJfP-gyzoLHU2UE5uXRfobhReX3fOZ45fjydDr8zhmolT9Hle-rT7yyfeIbKD

Setup

  • Mermaid version: v10.6.1
  • Browser and Version: [Chrome, Edge, Firefox]: Chrome Version 120.0.6099.217 (Official Build) (64-bit)

Suggested Solutions

No response

Additional Context

No response

@katzuv katzuv added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 15, 2024
@Yokozuna59
Copy link
Member

Yokozuna59 commented Jan 16, 2024

@katzuv There's is no issue with it, you just used different case for it:

stateDiagram-v2
    should_end_command : Intake sensor triggered
    run_intake --> should_end_command
    state shouldEndCommand <<choice>>
-   note right of ShouldEndCommand 
+   note right of shouldEndCommand 
       Intake sensor triggered
   end note
    should_end_command --> shouldEndCommand
    shouldEndCommand --> run_intake_before_end : True
    shouldEndCommand --> run_intake : False
stateDiagram-v2
    should_end_command : Intake sensor triggered
    run_intake --> should_end_command
    state shouldEndCommand <<choice>>
   note right of shouldEndCommand 
       Intake sensor triggered
   end note
    should_end_command --> shouldEndCommand
    shouldEndCommand --> run_intake_before_end : True
    shouldEndCommand --> run_intake : False
Loading

@katzuv
Copy link
Author

katzuv commented Jan 18, 2024

Thank you! Not sure how I missed the letter case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants