Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library failing to load at all on CircleCI: Invalid default value for property 'initializer' in class 'janklab.exportmlx.internal.ExportmlxBaseHandle' #2

Closed
apjanke opened this issue Sep 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@apjanke
Copy link
Member

apjanke commented Sep 11, 2021

image

@apjanke apjanke self-assigned this Sep 11, 2021
@apjanke apjanke added the bug Something isn't working label Sep 11, 2021
@apjanke apjanke added this to the 0.3.0 milestone Sep 11, 2021
@apjanke
Copy link
Member Author

apjanke commented Sep 11, 2021

Aha: Looks like it's not finding lib/java, which wasn't checked in to the repo because there's no .gitkeep.

Probably would be better to have this code gracefully handle a missing lib/java dir instead. Should probably change MatlabProjectTemplate's base code to do that.

I added a lib/java/.gitkeep. Let's see how that works.

@apjanke
Copy link
Member Author

apjanke commented Sep 11, 2021

Now it's getting further, but failing with a different error:


	Sponsored License -- for use in support of a program or activity sponsored by MathWorks.
	Not for government, commercial or other non-sponsored organizational use.

Exporting: ExportMlx doc file: UserGuide.mlx
Exporting: /home/circleci/project/docs/UserGuide.mlx -> /home/circleci/project/docs/UserGuide.tex
[�Warning: The current message service state: "connected"]� 
[�> In matlab.internal.liveeditor.LiveEditorUtilities.open>handleTimeOutException (line 169)
In matlab.internal.liveeditor.LiveEditorUtilities.open>openUsingCEF (line 143)
In matlab.internal.liveeditor.LiveEditorUtilities.open (line 33)
In matlab.internal.liveeditor.openAndConvert (line 18)
In janklab.exportmlx.mlx2latex (line 54)
In janklab.exportmlx.livescript2markdown (line 33)
In exportmlx_gendoco (line 19)
In exportmlx_launchtests (line 11)
In command_11438 (line 2)
In mdcsbatch (line 58)]� 
{�Error using matlab.internal.liveeditor.LiveEditorUtilities.open>openUsingCEF
(line 139)
Java exception occurred:
org.apache.commons.lang.NotImplementedException: Connector is not running. Use
Connector.ensureServiceOn() to ensure it is running before using it.
	at
        com.mathworks.messageservice.MessageServiceFactory.getBuilder(MessageServiceFactory.java:39)
        	at
        com.mathworks.messageservice.MessageServiceFactory.getMessageService(MessageServiceFactory.java:17)
        	at
        com.mathworks.mde.liveeditor.widget.rtc.RichDocument.publish(RichDocument.java:789)
        	at
        com.mathworks.mde.liveeditor.widget.rtc.RichDocument.setContentAsync(RichDocument.java:501)

Error in matlab.internal.liveeditor.LiveEditorUtilities.open (line 33)
[javaRichDocument, cleanupObj, webWindow] = openUsingCEF(fileName, reuse,
timeout, webWindow);

Error in matlab.internal.liveeditor.openAndConvert (line 18)
[javaRichDocument, cleanupObj, webwindow] =
LiveEditorUtilities.open(sourceFileName); %#ok<ASGLU>

Error in janklab.exportmlx.mlx2latex (line 54)
matlab.internal.liveeditor.openAndConvert(char(inMlxFile), char(outTexFile));

Error in janklab.exportmlx.livescript2markdown (line 33)
latexRslt = janklab.exportmlx.mlx2latex(mlxFile);

Error in exportmlx_gendoco (line 19)
    janklab.exportmlx.livescript2markdown(mlxFile);

Error in exportmlx_launchtests (line 11)
exportmlx_gendoco;

Error in command_11438 (line 2)
addpath dev-kit; exportmlx_launchtests
}� 

Exited with code exit status 1

failed-build.txt

@apjanke
Copy link
Member Author

apjanke commented Sep 11, 2021

Hmmmm. That might be a real problem: That looks like some service required by the Matlab desktop isn't running. That could be because in the CI environment, matlab runs in a headless/nodisplay mode.

Gonna open a separate ticket for this, since I may need to report it to MathWorks Tech Support: #3.

@apjanke apjanke closed this as completed Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant