You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to automate building documentation by exporting livescripts to markdown for use with a static site generator. The export function requires a display (related to #51?) and therefore fails in CI.
I set up a build task makeDocs which only runs export on a GettingStarted.mlx.
The error is:
** Starting makeDocs
## -----------------------------------------------------------------------------## Error occurred in 'makeDocs' and it did not run to completion.## Identifier: 'cefclient:webwindow:MissingDisplay'## Message: DISPLAY environment variable must be set to a valid X11 display.## Stack:
I'm working on an example toolbox to test out using github actions with toolboxes (https://github.com/DavidRConnell/githubaction-toolbox-mwe). The mlx is very simple and just prints a few numbers (no plotting). I can run the makeDocs build task locally with matlab -batch 'buildtool makeDocs'. When adding the -nodisplay flag it doesn't error but it does hang and never completes the task.
As a test, I tried setting the environment variable DISPLAY=:0.0 and got the error:
** Starting makeDocs
## -----------------------------------------------------------------------------## Error occurred in 'makeDocs' and it did not run to completion.## Identifier: 'cefclient:webwindow:launchProcessFailed'## Message: MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 267
Anyway to export examples? Not sure why this would require a display.
The text was updated successfully, but these errors were encountered:
You need to create a virtual display as shown in the example below. Copy the "Start virtual display" step and put it in your workflow before calling MATLAB to export your live scripts.
I would like to automate building documentation by exporting livescripts to markdown for use with a static site generator. The export function requires a display (related to #51?) and therefore fails in CI.
I set up a build task
makeDocs
which only runs export on aGettingStarted.mlx
.The error is:
I'm working on an example toolbox to test out using github actions with toolboxes (https://github.com/DavidRConnell/githubaction-toolbox-mwe). The mlx is very simple and just prints a few numbers (no plotting). I can run the
makeDocs
build task locally withmatlab -batch 'buildtool makeDocs'
. When adding the-nodisplay
flag it doesn't error but it does hang and never completes the task.As a test, I tried setting the environment variable
DISPLAY=:0.0
and got the error:Anyway to export examples? Not sure why this would require a display.
The text was updated successfully, but these errors were encountered: