-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cosimstudio rework error reporting (#192)
* Add Prettier config and format entire workspace * Replace console.error with extension logger from and update logger mock * Improve error reporting in Maestro integration * Update TODOS to reflect changes * Update TODOS Fix incorrect reference to icon in package.json * Disable extensions when running extension host * Replace all uses of node fs with vscode.workspace.fs * Fix bug where a succesful simulation was displayed as failed * Lint on construction of linter and whenever active editor changes * Update CHANGELOG and bump patch version * Global format * Fix of invalid URI being passed to Maestro on Windows * Fixed linting causality rule did not apply to inputs * Move unreleased changelog to version 0.1.2 * Make prettier default formatter * Clean up Maestro error messages --------- Co-authored-by: Markus Ellyton <[email protected]>
- Loading branch information
1 parent
fc435e5
commit 508d7a0
Showing
41 changed files
with
10,198 additions
and
9,885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "Basic Dev", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
// "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"target": "cosim_basic" | ||
}, | ||
"name": "Basic Dev", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
// "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"target": "cosim_basic" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": {}, | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version" | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version" | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"connor4312.esbuild-problem-matchers" | ||
] | ||
} | ||
} | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["connor4312.esbuild-problem-matchers"] | ||
} | ||
} | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
{ | ||
"fmus": { | ||
"{msd1}": "fmus/MassSpringDamper1.fmu", | ||
"fmus": { | ||
"{msd1}": "fmus/MassSpringDamper1.fmu", | ||
"{msd2}": "fmus/MassSpringDamper2.fmu" | ||
}, | ||
"connections": { | ||
}, | ||
"connections": { | ||
"{msd1}.msd1i.x1": ["{msd2}.msd2i.x1"], | ||
"{msd1}.msd1i.v1": ["{msd2}.msd2i.v1"] | ||
}, | ||
"logVariables": { | ||
"{msd2}.msd2i": [ | ||
"x2", | ||
"v2" | ||
] | ||
}, | ||
"parameters": { | ||
"{msd2}.msd2i.c2": 1.0, | ||
"{msd2}.msd2i.cc": 1.0, | ||
"{msd2}.msd2i.d2": 1.0, | ||
"{msd2}.msd2i.dc": 1.0, | ||
"{msd2}.msd2i.m2": 1.0 | ||
}, | ||
"algorithm": { | ||
"type": "fixed-step", | ||
"size": 0.001 | ||
}, | ||
"loggingOn": false, | ||
"overrideLogLevel": "INFO" | ||
} | ||
"logVariables": { | ||
"{msd2}.msd2i": ["x2", "v2"] | ||
}, | ||
"parameters": { | ||
"{msd2}.msd2i.c2": 1.0, | ||
"{msd2}.msd2i.cc": 1.0, | ||
"{msd2}.msd2i.d2": 1.0, | ||
"{msd2}.msd2i.dc": 1.0, | ||
"{msd2}.msd2i.m2": 1.0 | ||
}, | ||
"algorithm": { | ||
"type": "fixed-step", | ||
"size": 0.001 | ||
}, | ||
"loggingOn": false, | ||
"overrideLogLevel": "INFO" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "Full Dev w. Maestro", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
// "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"target": "cosim_with_maestro" | ||
}, | ||
"containerEnv": { | ||
"MAESTRO_WEBAPI_PATH": "/home/node/maestro_home/maestro-webapi.jar" | ||
}, | ||
"name": "Full Dev w. Maestro", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
// "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"target": "cosim_with_maestro" | ||
}, | ||
"containerEnv": { | ||
"MAESTRO_WEBAPI_PATH": "/home/node/maestro_home/maestro-webapi.jar" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"java": "test" | ||
} | ||
}, | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"java": "test" | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version", | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "java -version", | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"connor4312.esbuild-problem-matchers" | ||
] | ||
} | ||
} | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["connor4312.esbuild-problem-matchers"] | ||
} | ||
} | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* text=auto | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"spec": "./dist/test/**/*.unit.test.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"all": true, | ||
"include": [ | ||
"src/**/*.ts", "dist/ext/**/*.js" | ||
], | ||
"exclude": [ | ||
"test/**/*.ts", "dist/test/**/*.js" | ||
], | ||
"include": ["src/**/*.ts", "dist/ext/**/*.js"], | ||
"exclude": ["test/**/*.ts", "dist/test/**/*.js"], | ||
"exclude-node-modules": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
.nyc_output/ | ||
*.vsix | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { defineConfig } from "@vscode/test-cli"; | ||
import { fileURLToPath } from "url"; | ||
import { dirname, join } from "path"; | ||
import { defineConfig } from '@vscode/test-cli' | ||
import { fileURLToPath } from 'url' | ||
import { dirname, join } from 'path' | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = dirname(__filename) | ||
|
||
export default defineConfig({ | ||
tests: [ | ||
{ | ||
files: "dist/test/**/*.spec.js", | ||
files: 'dist/test/**/*.spec.js', | ||
extensionDevelopmentPath: __dirname, | ||
srcDir: "dist/ext" | ||
} | ||
srcDir: 'dist/ext', | ||
}, | ||
], | ||
coverage: { | ||
includeAll: true, | ||
exclude: [join(__dirname, "dist/test")] | ||
exclude: [join(__dirname, 'dist/test')], | ||
}, | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode-remote.remote-containers" | ||
] | ||
} | ||
"recommendations": ["ms-vscode-remote.remote-containers"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.