Skip to content

Issue with formatting

Hello, I'm using v0.18.0 of this very nice extension in JMP Pro 18.2.

When trying to format JSL I get an error. In the log I find:

_VSCODE_SCRIPT_BOX = Script Box(loadTextFile("C:\Users\patelmom\AppData\Local\Temp\tmp-11392-BRX5ZoDYYpeb-.jsl")); _VSCODE_SCRIPT_BOX << setWidth(1000); _VSCODE_SCRIPT_BOX << Reformat; try( _VSCODE_JSL = _VSCODE_SCRIPT_BOX << getText; parse(_VSCODE_JSL); // Only valid jsl should be reformatted saveTextFile("C:\Users\patelmom\AppData\Local\Temp\tmp-11392-BRX5ZoDYYpeb-.jsl", _VSCODE_JSL) // write to the temp file , write("SYNTAX ERROR") );

If I run this code removing the "try()", I see the error is generated with the saveTextFile, it seems the file is locked for writing. I checked my AppData/Local/Temp and I do have writing rights.

Not sure if it is my configuration which has something wrong or if this is a real issue.

thanks for your help Matteo