Coder Social home page Coder Social logo

crossbreezenl / crossmodel Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 1.61 MB

An open-source logical data modeler to support the model driven data engineering approach.

License: GNU Affero General Public License v3.0

JavaScript 2.45% HTML 6.81% TypeScript 90.02% CSS 0.66% Dockerfile 0.06%
data mdd mdde modeler

crossmodel's People

Contributors

harmen-xb avatar martin-fleck-at avatar ozcanxbreeze avatar planger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

crossmodel's Issues

Dragging an entity file into a diagram sometimes doesn't add the entity but opens the file

Dragging an entity file into a diagram sometimes doesn't add the entity but opens the file

Steps to reproduce

  1. Open a diagram
  2. Drag an entity from the file explorer onto the diagram canvas a couple of times

Experienced behaviour
Sometimes the entity is added as a node to the diagram, and other times the file of the entity is opened.

Expected behaviour
The entity should consistantly be added as a node to the diagram

Browser does not refresh after build

Now when you run "yarn browser:start" and "yarn watch" simultaneously the server gets rebuilt and the changes you made to the code automatically applied.

Would be nice if this feature was extended, so the browser also get refreshed after each rebuild.

ERROR Error: Cannot update an unmounted root.

Sometimes I get the following error:

2023-11-15T10:23:15.321Z root ERROR Error: Cannot update an unmounted root.
    at ReactDOMHydrationRoot.render.ReactDOMRoot.render (http://localhost:3000/bundle.js:145610:11)
    at FormEditorWidget.onUpdateRequest (http://localhost:3000/bundle.js:62984:23)
    at __webpack_modules__.../../node_modules/@phosphor/widgets/lib/widget.js.Widget.processMessage (http://localhost:3000/bundle.js:161321:22)
    at invokeHandler (http://localhost:3000/bundle.js:16566:21)
    at sendMessage (http://localhost:3000/bundle.js:16302:13)
    at runMessageLoop (http://localhost:3000/bundle.js:16616:17)

Steps to reproduce

  1. Start CrossModel with yarn start:browser
  2. Open the yaml-example workspace
  3. Open the form-editor on the customer entity.
  4. Close the form-editor on the customer entity.
  5. Open the diagram
  6. Change the customer entity via the property widget (for example change the name and press 'Save').

After step 6 the exception will be in the console.

If you don't do step 4, the exception doesn't occur. So it looks like the form-editor-widget is not unregistering itself from the model-server.

Attributes is not an array

The model server sends an object to the form-client. Is has the following data structure:

{
$type: "Entity",
name: "Klant1",
description: "yyweyeytest",
attributes: {
"0": {
$type: "Attribute",
name: "test1",
value: "test2",
},
"1": {
$type: "Attribute",
name: "test2",
value: "test1233",
},
"2": {
$type: "Attribute",
name: "test3",
value: "test",
},
"3": {
$type: "Attribute",
name: "test4",
value: "test1",
},
"4": {
$type: "Attribute",
name: "test5",
value: "test12124124124",
},
},
}

the attributes are not in an array. instead of simply mapping the values, we have to write a for loop.

can this project achieve similar requirement?

i want to achieve a requirement(that need to transform industrial Programming Language LD(Ladder Diagram) to other specific lauguage like C++ or PLC ST (Structured Text)language) when graph(Ladder Diagram) changed,corresponding text file(for my requirement is C++ or PLC ST) is changed rather than changing the text file lead to change the graph,can this project achieve similar requirement?

GLSP Tool Pallete missing entity and relationship not working

There are 2 issues with the tool pallette:

  1. The Diagram Tool Palette is missing the option to add an entity.
  2. The relationship is in the tool palette, but it's not working. When you click on it you cannot drag a line between 2 entities. You have to click the first and then the second entity.

This is probably broken for a while already, or has never worked. In PR #28 I see the entity option is also not there.

Form-view empty after refreshing the page

When you open a form-view and refresh the browser, the form-view will be empty.

That is because this line in the form-editor-widget.tsx never finishes.
await this.formEditorService.open(uri);

The formEditorService(form-server) or the model server has not been initalized.

When moving any file of an open diagram perspective crashes the diagram

When moving any file of an open diagram perspective crashes the diagram

Steps to reproduce:

  1. Open a diagram
  2. Move the diagram file in the file explorer to another folder

Experienced behaviour
The diagram notes 'Deleted' in the title and errors are shown the diagram can't be loaded.

Expected behaviour
The open diagram tab would be informed of the move somehow and keep the existing file open.

Text editor is not handling indentation and - prefix within collections automatically

When writing a YAML file by hand, and you type the property name of a collection and then press 'Enter', to get to the next line the identation is not automatically done. You have to indent it yourself to get the right auto-completion.

Since within the grammer it is known that we just typed the name of a collection/array the LSP/editor should be aware that indentation needs to happen.

After indentation for a collection we always need to start with a '- ' the describe the item in the collection, which can also be automated.

Adding attribute via entity form results in incorrect entity file

When adding a new attribute using the entity form/property view the new attribute is created, but doesn't have an Id, so there is an error that the Id is missing.

Steps to reproduce

  1. Open the form editor on an entity
  2. Add an attribute to the entity on the 'Attributes' tab

Expected behaviour
The Id should be in the form for now, maybe automatically populated based on the name?

Entity form/property view re-rendered on a change when text editor is open on same object

Entity form/property view re-rendered on a change when text editor is open on same object

Steps to reproduce:

  1. Open the text editor on an entity
  2. Open the form perspective on the same entity
  3. Change the entity from within the entity form

Issue experienced
Once you are done typing the form will automatically sync to the text perspective, after which the form is re-rendered.
The re-rendring of the form perspective shouldn't happen when the change comes from the form (cause when you keep typing in the form editor you will see changes disappear because of the re-rendering). Also the re-rendering causes the perspective to reset, so if you are on the 'Attributes' tab it jumps back to 'General'.

Expected behaviour
When a change originates from the form, the form itself should not be re-rendered.

Module not found: Error: Can't resolve 'utf-8-validate' / 'bufferutil'

Module not found: Error: Can't resolve 'utf-8-validate' in 'C:\Werkmappen\repos\crossmodel\node_modules@eclipse-glsp\server\node_modules\ws\lib'

Can't resolve 'bufferutil' in 'C:\Werkmappen\repos\crossmodel\node_modules@eclipse-glsp\server\node_modules\ws\lib'

These errors appear when you build crossmodel-lang

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.