Scilab with VSCode

There is an issue with the configuration. Whenever I run the scilab script then new Scilab windows pop up but old open up is not executed. How to stop it?

How to work with vs code ? Any tutorial for scilab?

`{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Run Scilab Script",
            "type": "shell",
            "command": "\"C:\\Program Files\\scilab-2024.0.0\\bin\\scilab-cli.exe\"",
            "args": [
                "-f",
                "${workspaceFolder}\\spacecraft-gnc-tbx-devel-kalman-filter-block\\builder.sce"
            ],
            "options": {
                "cwd": "${workspaceFolder}\\spacecraft-gnc-tbx-devel-kalman-filter-block"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": [],
            "detail": "Run Scilab script using scilab-cli.exe"
        },
        {
            "label": "New Task",
            "type": "shell",
            "command": "echo 'Hello, World!'",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        },
        {
            "label": "New Task",
            "type": "shell",
            "command": "echo 'Hello, World!'",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }
    ]
}`

Hello,

You have to add “-quit” to “args”.

Best regards.

Can you please tell me at which positions``?

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Run Scilab Script",
      "type": "shell",
      "command": "\"C:\\Program Files\\scilab-2024.0.0\bin\\scilab-cli.exe\"",
      "args": [
        "-f",
        "${workspaceFolder}\\spacecraft-gnc-tbx-devel-kalman-filter-block\builder.sce"
      ],
      "options": {
        "cwd": "${workspaceFolder}\\spacecraft-gnc-tbx-devel-kalman-filter-block"
      },
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": [],
      "detail": "Run Scilab script using scilab-cli.exe"
    },
    {
      "label": "New Task",
      "type": "shell",
      "command": "echo 'Hello, World!'",
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": []
    },
    {
      "label": "New Task",
      "type": "shell",
      "command": "echo 'Hello, World!'",
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": []
    }
  ]
}

Add it like this

      "args": [
        "-quit",
        "-f",
        "${workspaceFolder}\\spacecraft-gnc-tbx-devel-kalman-filter-block\builder.sce"
      ]

S.

Hello,

Your executable name is wrong

  • scilex.exe to java/gui/xcos disable
  • wscilex-cli.exe to java/gui/xcos enable but without graphical console.
  • wscilex.exe to enable all features and graphical console.

In your case, I guess you want to use wscilex-cli.exe