opencaesar / oml-vision

A VS Code extension providing UI viewpoints for OML models
Other
4 stars 2 forks source link

Webview reloads when clicking on some nodes or rows #71

Open pogi7 opened 4 months ago

pogi7 commented 4 months ago

Checklist before submitting a bug report

Context

Webview reloads when clicking on some nodes or rows in the TableView, TreeView, or DiagramView

Steps to reproduce the bug

  1. Go to https://github.com/UTNAK/kepler16b-using-imce-vocabulary
  2. Switch to main branch
  3. Run git pull
  4. From the command line run ./gradlew load or from the Setup Tasks webview
  5. Wait for that command to finish
  6. Open the decompositions-autogen webview
  7. Click on the orbiter-propulsion-subsystem node

Current result

The webview will reload and a popup in the lower right will appear saying Generating table data...

Expected result

The webview should not reload and no popup should appear

Additional context

image

Possible fix

I may need to add an error handler in the SparqlClient.ts since the log outputs the following error

TypeError: Cannot read properties of undefined (reading 'replace') at /Users/levitt/git/opencaesar/oml-vision/build/controller/src/sparql/SparqlClient.js:66:27 at Generator.next () at /Users/levitt/git/opencaesar/oml-vision/build/controller/src/sparql/SparqlClient.js:31:71 at new Promise () at __awaiter (/Users/levitt/git/opencaesar/oml-vision/build/controller/src/sparql/SparqlClient.js:27:12) at SparqlClient (/Users/levitt/git/opencaesar/oml-vision/build/controller/src/sparql/SparqlClient.js:51:12) at /Users/levitt/git/opencaesar/oml-vision/build/commands/src/propertyPanelMessageHandler.js:74:57 at Array.forEach () at handlePropertyPanelMessage (/Users/levitt/git/opencaesar/oml-vision/build/commands/src/propertyPanelMessageHandler.js:73:54) at o.value (/Users/levitt/git/opencaesar/oml-vision/build/controller/src/panels/PropertyPanelProvider.js:74:74) at s.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:659) at s.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:876)

Technical data