structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
245 stars 30 forks source link

Stuck loading workspace with 2024-09-19 version #162

Closed jan93 closed 2 weeks ago

jan93 commented 2 weeks ago

Expected

I expect to be able to start the workspace in the same way as in the previous version, 2024-07-02.

Actual

I am able to start the workspace in 2024-07-02, but doing the same procedure in 2024-09-19 version does not seem to complete loading the workspace, just hangs/is stuck.

Steps to reproduce

Steps:

Workspace.dsl file used: workspace {

model {
    u = person "User"
    system = softwareSystem "Software System" {
        wa = container "Web Application" {
            tags "Application"
        }
        db = container "Database Schema" {
            tags "Database"
        }
    }

    u -> wa "Uses"
    wa -> db "Reads from"
}

views {
    systemContext system "Diagram1" {
        include *
        autolayout lr
    }

    container system "Diagram2" {
        include "->wa->"
        autolayout lr
    }

    styles {
        element "Element" {
            color white
        }
        element "Software System" {
            background #1DACD6
        }
        element "Person" {
            background #E5D3D3
            shape person
        }
        element "Database" {
            shape cylinder
            background #A39193
        }
        element "Application" {
            background #7C0A02
        }
    }
}

}

Version/build information

Using Structurizr docker version as listed here, 2024.09.19 and 2024.07.02. https://hub.docker.com/r/structurizr/lite/tags

It's the first time I'm trying the newer version from today.

Note im using Docker API "dockerd (moby)" from Rancher Desktop version 1.14.1 which has a docker cli.

Severity

Major

Priority

I have no budget and there's no rush, please fix this for free

More information

Was following this guide: https://docs.structurizr.com/dsl/tutorial

See video below, reproducing the issue:

https://github.com/user-attachments/assets/a26566ad-ef09-495d-9c9d-361e3fcdcc9c

simonbrowndotje commented 2 weeks ago

Are there any error messages in your web browser's console?

jan93 commented 2 weeks ago

I see these errors. Issue with using dark mode?

structurizr.ui.initDarkMode is not a function
structurizr.ui.isDarkMode is not a function
GET http://localhost:8080/workspace/1/images/Diagram1-thumbnail.png 404 (Not Found)
GET http://localhost:8080/workspace/1/images/Diagram2-thumbnail.png 404 (Not Found)

image

simonbrowndotje commented 2 weeks ago

Try doing a hard refresh in your web browser - something is likely being cached.

jan93 commented 2 weeks ago

Tried from incognito window, seems to load now, so must have been something cached yes.