Coder Social home page Coder Social logo

Comments (8)

BruceEckel avatar BruceEckel commented on June 8, 2024 1

I removed all autoLayouts. Here's the browser javascript console:

LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable.
DevTools failed to load source map: Could not load content for chrome-extension://akimgimeeoiognljlfchpbkpfbmeapkh/polyfills/web-animations-next-lite.min.js.map: System error: net::ERR_FILE_NOT_FOUND

After removing the autoLayouts, I got the following on the windows terminal used for invoking the command (after the usual copyright stuff):

2023-07-10T10:44:30.396-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser   : Container-001 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:30.422-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser   : Component-001 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:30.429-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.dsl.AbstractViewParser   : Component-002 is an automatically generated view key - you will likely lose manual layout information when using automatically generated view keys.
2023-07-10T10:44:31.073-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet             : Could not find a matching view for "System Landscape" ... diagram layout information may be lost.
2023-07-10T10:44:31.073-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet             : Could not find a matching view for "C4 Dsl Extension - Containers" ... diagram layout information may be lost.
2023-07-10T10:44:31.078-06:00  WARN 20844 --- [nio-8080-exec-1] com.structurizr.view.ViewSet             : Could not find a matching view for "C4 Dsl Extension - C4 DSL Client - Components" ... diagram layout information may be lost.

At this point I've stopped attempting to get the war file to work, since the docker version not only works but starts up faster. My guess is that it wouldn't be an impediment to narrow the instructions to just using the docker version, at least for windows. Especially since that seems to have a reliable testing process. (Insert requisite joke about "Java, write once run everywhere").

from lite.

BruceEckel avatar BruceEckel commented on June 8, 2024

Not sure if this helps: when I start with an empty Structurizr data directory, starting the app will produce a workspace.dsl file, and then when I try to open the browser the workspace.json file appears.

from lite.

BruceEckel avatar BruceEckel commented on June 8, 2024

The Docker version seems to work consistently.

from lite.

BruceEckel avatar BruceEckel commented on June 8, 2024

Just installed the Docker version on my desktop (the other was on my laptop) and it started seamlessly. (also a Windows 11 machine).

from lite.

simonbrowndotje avatar simonbrowndotje commented on June 8, 2024

Thanks for the information. Do you see any errors in your web browser's developer/JavaScript console? I'm wondering whether this is a problem with running Graphviz ... does commenting out autoLayout in your workspace.dsl file resolve the issue?

from lite.

WolfgangNiebuhr avatar WolfgangNiebuhr commented on June 8, 2024

I have a similar problem with the current structurizr-lite.war version. When I run that on a (virtual) machine with no internet access at all. The same dsl and war runs fine on another machine with http(s) internet access.

More info: the browser shows a lot of Server errros (500)

GET https://fonts.googleapis.com/css?family=Open+Sans:400,700 net::ERR_NAME_NOT_RESOLVED
structurizr-ui.js:1 Uncaught TypeError: Cannot set properties of undefined (setting 'DEFAULT_FONT_NAME')
at structurizr-ui.js:1:34
(anonymous) @ structurizr-ui.js:1
diagrams:368 Uncaught TypeError: Cannot set properties of undefined (setting 'ProgressMessage')
at diagrams:368:36
(anonymous) @ diagrams:368
diagrams:415 Uncaught TypeError: Cannot set properties of undefined (setting 'QuickNavigation')
at diagrams:415:36
(anonymous) @ diagrams:415
diagrams:681 Uncaught TypeError: Cannot set properties of undefined (setting 'Tooltip')
at diagrams:681:28
(anonymous) @ diagrams:681
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
diagrams:2137 Uncaught ReferenceError: progressMessage is not defined
at diagrams:2137:5
(anonymous) @ diagrams:2137
diagrams:3406 Uncaught TypeError: Cannot read properties of undefined (reading 'StructurizrApiClient')
at diagrams:3406:53
(anonymous) @ diagrams:3406
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)
jquery-3.6.3.min.js:2

   POST http://localhost:8080/error 500 (Internal Server Error)

send @ jquery-3.6.3.min.js:2
ajax @ jquery-3.6.3.min.js:2
logError @ structurizr.js:54
window.onerror @ structurizr.js:49
error (async)
(anonymous) @ structurizr.js:48
structurizr.js:71 There was an error logging the error : error (HTTP status code=500)

from lite.

BruceEckel avatar BruceEckel commented on June 8, 2024

from lite.

simonbrowndotje avatar simonbrowndotje commented on June 8, 2024

Closing as can't reproduce.

from lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.