CommandLine Export Bugs

What do you want to achieve?

Export assets via command line

What have you tried so far?

I created a project and can export the assets fine via SquareLine Studio. I am trying to integrate a build step in my build system to call the SquareLine Studio exe in batchmode to export the assets. The output contains a few errors and ultimately the ui assets are not exported.

Screenshot or video

“C:\Program Files\SquareLine Studio 1.4.0\SquareLine_Studio.exe” -batchmode -logFile - -projectfile C:/git/test/export/Smart_Gadget/SquareLine_Project/Smart_Gadget.spj -exportfolder “C:/git/test/export/Smart_Gadget” -ui_exportfolder “C:/git/test/export/Smart_Gadget/User/squareline”
[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8”
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1”
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216”
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216”
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152”
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8”
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1”
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576”
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152”
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144”
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144”
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536”
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768”
“memorysetup-temp-allocator-size-gfx=262144”
CreateDirectory ‘’ failed: The system cannot find the path specified.

(current dir: )
[Physics::Module] Initialized MultithreadedJobDispatcher with {0} workers.
Initialize engine version: 2021.3.31f1 (3409e2af086f)
[Subsystems] Discovering subsystems at path C:/Program Files/SquareLine Studio 1.4.0/SquareLine_Studio_Data/UnitySubsystems
GfxDevice: creating device client; threaded=0; jobified=0
d3d12: loaded!
Direct3D:
Version: Direct3D 12 [level 12.1]
Renderer: NVIDIA RTX A2000 Laptop GPU (ID=0x25b8)
Vendor: NVIDIA
VRAM: 3990 MB
App VRAM Budget: 3391 MB
Driver: 31.0.15.1789
UnloadTime: 0.388100 ms
DirectoryNotFoundException: Source directory not found: C:\git\test\export\Smart_Gadget\Release\boards
at BoardManager.ĩĪĪĪĪĪĪĪĩĪĩĪĩĩĪĪĩĪĪĩĪĩĪĪĪĩĩĩĩĩĩĩĩĩĪĪĩĪĪĩĩĩĩĪĪĪĩ (System.String ĪĩĪĪĩĪĪĩĩĪĩĩĪĪĪĪĩĩĪĩĪĪĩĪĪĩĪĩĩĪĩĪĩĪĪĩĪĩĩĩĩĩĪĩĩĪĩ, System.String ĪĩĪĪĩĩĩĩĪĩĪĩĪĪĩĪĪĩĪĩĩĪĩĩĩĩĪĪĩĩĪĩĪĪĪĩĪĩĩĪĪĩĩĪĩĩĪ, System.Boolean ĪĪĩĪĩĪĩĩĩĩĪĪĩĩĩĪĪĩĪĩĪĩĩĩĩĩĩĩĩĪĩĪĪĩĩĪĪĪĩĪĪĪĩĩĪĪĪ, System.Boolean ĩĩĪĪĩĪĪĪĪĩĪĩĩĪĪĪĩĪĪĪĪĩĩĩĩĪĪĪĩĩĩĪĪĪĪĪĪĪĩĪĩĩĪĪĪĩĩ) [0x00000] in <00000000000000000000000000000000>:0
at BoardManager.ĪĩĪĩĪĩĩĩĩĪĪĩĩĩĪĪĩĩĩĩĩĩĩĩĪĩĪĩĩĩĪĩĩĩĪĪĪĩĪĪĪĩĪĩĩĪĩ () [0x00000] in <00000000000000000000000000000000>:0

CurrentCulture converted to en-US
go back to front
Opening .spj Project-file: C:/git/test/export/Smart_Gadget/SquareLine_Project/Smart_Gadget.spj
Load component: C:/git/test/export/Smart_Gadget/SquareLine_Project/components/Alarm Comp.ecomp
Load component: C:/git/test/export/Smart_Gadget/SquareLine_Project/components/Clock Dot.ecomp
Load component: C:/git/test/export/Smart_Gadget/SquareLine_Project/components/Scrolldots.ecomp
Load component: C:/git/test/export/Smart_Gadget/SquareLine_Project/components/Small Label.ecomp
<color=#f0f>Json.Deserialize: 20.1134
<color=#f0f>FastLoader.ToClass: 30.1929
<color=#f0f>reInitStyles: 57.2306
Connection closed
StopServer
Select : Splash
Load failed: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at Launcher.btnSelect (UnityEngine.GameObject ĪĪĪĩĩĩĩĪĪĪĩĩĪĪĪĪĪĪĩĩĪĩĪĪĩĩĪĪĩĩĪĪĩĪĩĪĩĩĪĪĪĩĩĪĩĪĩ) [0x00000] in <00000000000000000000000000000000>:0
at LauncherProjectPanel.ĪĪĪĩĪĪĩĪĩĪĪĪĪĩĩĩĩĩĪĪĪĪĪĪĪĪĪĩĩĩĩĩĩĪĩĩĪĪĪĪĪĩĩĪĩĪĩ (System.Collections.Generic.List`1[T] ĪĩĪĩĪĩĩĪĩĩĩĩĩĩĪĩĩĩĪĪĩĪĩĪĪĩĩĩĪĩĩĪĪĪĪĪĪĪĩĪĪĪĩĩĪĩĩ) [0x00000] in <00000000000000000000000000000000>:0
at LauncherProjectPanel.AddItem (System.String ĪĩĩĩĪĩĪĩĩĩĪĩĩĪĪĩĩĩĩĪĪĪĪĪĩĪĩĪĩĩĪĩĪĩĪĩĪĪĩĩĪĩĩĩĩĪĩ, ProjectManager+ProjectInfo ĩĪĩĪĪĩĩĪĪĪĩĩĪĪĩĪĩĩĪĪĩĩĩĪĩĩĪĪĪĩĪĩĩĩĪĪĩĩĪĪĩĪĩĩĩĩĪ, System.String ĩĩĪĪĪĪĩĪĩĩĩĩĪĩĪĩĪĩĩĩĪĪĩĩĪĪĩĩĩĪĩĪĪĩĩĩĩĪĩĩĪĪĪĪĪĪĩ) [0x00000] in <00000000000000000000000000000000>:0
at ProjectManager+ĪĩĩĩĪĩĩĩĪĪĪĪĪĪĩĪĩĪĩĩĩĩĩĪĪĩĪĩĪĪĪĪĪĪĪĪĩĩĩĩĪĩĩĩĩĩĩ+<g__Action|0>d.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
0x00007ffcc8d52fad (UnityPlayer) UnityMain
0x00007ffcc8d57fe3 (UnityPlayer) UnityMain
0x00007ffcc8d426c5 (UnityPlayer) UnityMain
0x00007ffcc930d15e (UnityPlayer) UnityMain
0x00007ffcc85db53e (UnityPlayer)
0x00007ffcc786f56f (GameAssembly) DllCanUnloadNow
0x00007ffcc788428d (GameAssembly) DllCanUnloadNow
0x00007ffcc786f9a7 (GameAssembly) DllCanUnloadNow
0x00007ffcc66726d3 (GameAssembly) DllCanUnloadNow
0x00007ffcc788f965 (GameAssembly) DllCanUnloadNow
0x00007ffcc6519cf6 (GameAssembly) BrotliDecoderIsFinished
0x00007ffcc6519c94 (GameAssembly) BrotliDecoderIsFinished
0x00007ffcc8b40568 (UnityPlayer)
0x00007ffcc8b43792 (UnityPlayer)
0x00007ffcc8b5f1f5 (UnityPlayer)
0x00007ffcc8871534 (UnityPlayer)
0x00007ffcc89c24da (UnityPlayer)
0x00007ffcc89c2580 (UnityPlayer)
0x00007ffcc89c5258 (UnityPlayer)
0x00007ffcc8bbb5ca (UnityPlayer)
0x00007ffcc8bba2fb (UnityPlayer)
0x00007ffcc8bbe9a5 (UnityPlayer)
0x00007ffcc8bc065b (UnityPlayer) UnityMain
0x00007ff756be11f2 (SquareLine_Studio)
0x00007ffdab30257d (KERNEL32) BaseThreadInitThunk
0x00007ffdacb4aa58 (ntdll) RtlUserThreadStart

Exporting UI-files to folder: C:/git/test/export/Smart_Gadget/User/squareline
Checking free port 20085
20085: False
Checking free port 20086
20086: True
StartServer
Start lvgl server from: C:/Program Files/SquareLine Studio 1.4.0/SquareLine_Studio_Data/…/lvgl/lvgl_v8_3_11/server/
Try to start lvgl server from: C:/Program Files/SquareLine Studio 1.4.0/SquareLine_Studio_Data/…/lvgl/lvgl_v8_3_11/server/ with arguments: -X heapsize = 512m server.py 320 240 20086
Connect to 127.0.0.1 on port 20086
START FULL REBUILD
Connection success
Setting up 4 worker threads for Enlighten.
Connection closed
StopServer
Micropython’s exitcode: -1
Memory Statistics:
[ALLOC_TEMP_TLS] TLS Allocator
StackAllocators :
[ALLOC_TEMP_MAIN]
Peak usage frame count: [32.0 KB-64.0 KB]: 39 frames, [64.0 KB-128.0 KB]: 3 frames, [128.0 KB-256.0 KB]: 1 frames, [2.0 MB-4.0 MB]: 1 frames, [4.0 MB-8.0 MB]: 1 frames
Initial Block Size 4.0 MB
Current Block Size 8.0 MB
Peak Allocated Bytes 5.9 MB
Overflow Count 1589
[ALLOC_TEMP_Loading.AsyncRead]
Initial Block Size 64.0 KB
Current Block Size 64.0 KB
Peak Allocated Bytes 285 B
Overflow Count 0
[ALLOC_TEMP_Loading.PreloadManager]
Initial Block Size 256.0 KB
Current Block Size 504.0 KB
Peak Allocated Bytes 345.5 KB
Overflow Count 21
[ALLOC_TEMP_Background Job.Worker 8]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 6]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 0]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 10]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 9]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 5]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 104.1 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 14]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 6]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 1.9 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 4]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 14]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 3]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 104.1 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 13]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 12]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_EnlightenWorker] x 4
Initial Block Size 64.0 KB
Current Block Size 64.0 KB
Peak Allocated Bytes 54 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 15]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 1]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 2]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 7]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_AssetGarbageCollectorHelper] x 15
Initial Block Size 64.0 KB
Current Block Size 64.0 KB
Peak Allocated Bytes 0 B
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 5]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 9]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 119.0 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 13]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 8]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 119.0 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 7]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 119.1 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 1]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 2]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 103.1 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 3]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 2.5 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 11]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 10]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 104.1 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 0]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_Job.Worker 11]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 104.1 KB
Overflow Count 0
[ALLOC_TEMP_Job.Worker 12]
Initial Block Size 256.0 KB
Current Block Size 256.0 KB
Peak Allocated Bytes 120.3 KB
Overflow Count 0
[ALLOC_TEMP_Background Job.Worker 4]
Initial Block Size 32.0 KB
Current Block Size 32.0 KB
Peak Allocated Bytes 65 B
Overflow Count 0
[ALLOC_TEMP_BatchDeleteObjects]
Initial Block Size 64.0 KB
Current Block Size 64.0 KB
Peak Allocated Bytes 54 B
Overflow Count 0
[ALLOC_DEFAULT] Dual Thread Allocator
Peak main deferred allocation count 1935
[ALLOC_BUCKET]
Large Block size 4.0 MB
Used Block count 1
Peak Allocated bytes 2.4 MB
[ALLOC_DEFAULT_MAIN]
Peak usage frame count: [4.0 MB-8.0 MB]: 19 frames, [8.0 MB-16.0 MB]: 24 frames, [16.0 MB-32.0 MB]: 2 frames
Requested Block Size 16.0 MB
Peak Block count 1
Peak Allocated memory 27.1 MB
Peak Large allocation bytes 23.7 MB
[ALLOC_DEFAULT_THREAD]
Peak usage frame count: [2.0 MB-4.0 MB]: 44 frames, [16.0 MB-32.0 MB]: 1 frames
Requested Block Size 16.0 MB
Peak Block count 1
Peak Allocated memory 18.5 MB
Peak Large allocation bytes 16.0 MB
[ALLOC_TEMP_JOB_1_FRAME]
Initial Block Size 2.0 MB
Used Block Count 1
Overflow Count (too large) 0
Overflow Count (full) 0
[ALLOC_TEMP_JOB_2_FRAMES]
Initial Block Size 2.0 MB
Used Block Count 1
Overflow Count (too large) 0
Overflow Count (full) 0
[ALLOC_TEMP_JOB_4_FRAMES (JobTemp)]
Initial Block Size 2.0 MB
Used Block Count 4
Overflow Count (too large) 0
Overflow Count (full) 0
[ALLOC_TEMP_JOB_ASYNC (Background)]
Initial Block Size 1.0 MB
Used Block Count 3
Overflow Count (too large) 0
Overflow Count (full) 0
[ALLOC_GFX] Dual Thread Allocator
Peak main deferred allocation count 0
[ALLOC_BUCKET]
Large Block size 4.0 MB
Used Block count 1
Peak Allocated bytes 2.4 MB
[ALLOC_GFX_MAIN]
Peak usage frame count: [0.5 MB-1.0 MB]: 19 frames, [1.0 MB-2.0 MB]: 1 frames, [8.0 MB-16.0 MB]: 25 frames
Requested Block Size 16.0 MB
Peak Block count 1
Peak Allocated memory 11.3 MB
Peak Large allocation bytes 0 B
[ALLOC_GFX_THREAD]
Peak usage frame count: [64.0 KB-128.0 KB]: 45 frames
Requested Block Size 16.0 MB
Peak Block count 1
Peak Allocated memory 76.6 KB
Peak Large allocation bytes 0 B
[ALLOC_CACHEOBJECTS] Dual Thread Allocator
Peak main deferred allocation count 2
[ALLOC_BUCKET]
Large Block size 4.0 MB
Used Block count 1
Peak Allocated bytes 2.4 MB
[ALLOC_CACHEOBJECTS_MAIN]
Peak usage frame count: [1.0 MB-2.0 MB]: 45 frames
Requested Block Size 4.0 MB
Peak Block count 1
Peak Allocated memory 1.7 MB
Peak Large allocation bytes 0 B
[ALLOC_CACHEOBJECTS_THREAD]
Peak usage frame count: [2.0 MB-4.0 MB]: 44 frames, [8.0 MB-16.0 MB]: 1 frames
Requested Block Size 4.0 MB
Peak Block count 3
Peak Allocated memory 8.8 MB
Peak Large allocation bytes 0 B
[ALLOC_TYPETREE] Dual Thread Allocator
Peak main deferred allocation count 0
[ALLOC_BUCKET]
Large Block size 4.0 MB
Used Block count 1
Peak Allocated bytes 2.4 MB
[ALLOC_TYPETREE_MAIN]
Peak usage frame count: [0-1.0 KB]: 45 frames
Requested Block Size 2.0 MB
Peak Block count 1
Peak Allocated memory 1.1 KB
Peak Large allocation bytes 0 B
[ALLOC_TYPETREE_THREAD]
Peak usage frame count: [16.0 KB-32.0 KB]: 45 frames
Requested Block Size 2.0 MB
Peak Block count 1
Peak Allocated memory 21.2 KB
Peak Large allocation bytes 0 B

Others

  • SquareLine Studio version: 1.4
  • Operating system: Win 11
  • Target hardware:

You can’t export ‘ui’ folder alone before exporting the whole export (template-project), and it should be inside the template-project folder.
So for example, first you should try to simply export the template-project with C:\Program Files\SquareLine Studio 1.4.0\SquareLine_Studio.exe” -batchmode -logFile - -projectfile "C:/git/test/export/Smart_Gadget/Smart_Gadget.spj" -exportfolder “C:/git/test/export/Smart_Gadget"
This will create a folder called C:/git/test/export/Smart_Gadget/Smart_Gadget and export the whole project-template into it. (Note: the new folder that is created inside the exportfolder is called the name as the project, it’s ‘SquareLine_Project’ by default if you don’t add a new projectname.)

You can always do this whole template-project export, but if you only want to export ‘ui’ folder on the subsequent builds (hoping for a bit faster export), you can add the -ui_exportfolder "C:/git/test/export/Smart_Gadget/Smart_Gadget/ui" as an extra argument. As you see, the ‘ui’ folder must be inside the export-folder because lv_conf.h is saved there on UI-only export.

Thanks for the response. I’m still struggling however. I now believe the problem is that I’m using an OBP and the command cannot find the board files with the zip file containing the template project. Is there a way to specify the location of the board files? Looks like its trying to find it in the current working directory and not the default SquareLine_Studio location as specified here: Open Board Platform (OBP) | SquareLine Studio

DirectoryNotFoundException: Source directory not found: C:\git\test\test_export\TestProject\Release\boards
at BoardManager.ĩĪĪĪĪĪĪĪĩĪĩĪĩĩĪĪĩĪĪĩĪĩĪĪĪĩĩĩĩĩĩĩĩĩĪĪĩĪĪĩĩĩĩĪĪĪĩ (System.String ĪĩĪĪĩĪĪĩĩĪĩĩĪĪĪĪĩĩĪĩĪĪĩĪĪĩĪĩĩĪĩĪĩĪĪĩĪĩĩĩĩĩĪĩĩĪĩ, System.String ĪĩĪĪĩĩĩĩĪĩĪĩĪĪĩĪĪĩĪĩĩĪĩĩĩĩĪĪĩĩĪĩĪĪĪĩĪĩĩĪĪĩĩĪĩĩĪ, System.Boolean ĪĪĩĪĩĪĩĩĩĩĪĪĩĩĩĪĪĩĪĩĪĩĩĩĩĩĩĩĩĪĩĪĪĩĩĪĪĪĩĪĪĪĩĩĪĪĪ, System.Boolean ĩĩĪĪĩĪĪĪĪĩĪĩĩĪĪĪĩĪĪĪĪĩĩĩĩĪĪĪĩĩĩĪĪĪĪĪĪĪĩĪĩĩĪĪĪĩĩ) [0x00000] in <00000000000000000000000000000000>:0
at BoardManager.ĪĩĪĩĪĩĩĩĩĪĪĩĩĩĪĪĩĩĩĩĩĩĩĩĪĩĪĩĩĩĪĩĩĩĪĪĪĩĪĪĪĩĪĩĩĪĩ () [0x00000] in <00000000000000000000000000000000>:0

CurrentCulture converted to en-US
go back to front
Opening .spj Project-file: C:\git\test\test_export\TestProject..\TestProject.spj
<color=#f0f>Json.Deserialize: 1.0062
<color=#f0f>FastLoader.ToClass: 0
<color=#f0f>reInitStyles: 0.9999
Connection closed
StopServer
Select : Screen1
START FULL REBUILD
Exporting project to folder: C:\git\test\test_export\TestProject
Exception at export: System.ArgumentNullException: Value cannot be null.
Parameter name: sourceArchiveFileName
at System.IO.Compression.ZipFile.ExtractToDirectory (System.String sourceArchiveFileName, System.String destinationDirectoryName, System.Text.Encoding entryNameEncoding, System.Boolean overwrite) [0x00000] in <00000000000000000000000000000000>:0
at ĪĪĪĩĪĩĩĩĩĪĪĪĩĪĪĩĩĪĩĪĩĪĪĪĩĪĪĩĪĩĪĪĪĩĪĩĪĪĪĩĪĪĪĪĩĩĩ.ĪĪĪĩĪĩĩĪĪĩĩĪĩĪĪĪĩĩĪĩĩĩĩĪĪĩĪĪĩĪĪĪĩĩĪĪĩĩĩĪĪĩĪĪĪĩĩ (System.String ĩĩĪĩĩĪĩĩĩĩĩĪĩĩĪĩĩĪĪĪĩĩĩĩĩĪĩĪĪĩĩĩĪĪĪĪĩĩĩĩĩĩĩĪĩĩĩ) [0x00000] in <00000000000000000000000000000000>:0
at MenuLine.Update () [0x00000] in <00000000000000000000000000000000>:0

I temporarily copied the “boards” folder from its default location to my working directory and now I am able to export the ui successfully. Seems like we’ll need to specify the folder via the command line interface or have SquareLine Studio load the default directory when started via batchmode.

Thanks for the feedback about the commandline export. We’ll look at this and if reproducible, make the exporter find the board-templates, no matter where you call SquareLine Studio from. (Until that another possible workaround could be if you ‘cd’ into the SquareLine studio directory in your script and run SquareLine Studio in commandline from its own directory where it can find the board-templates. In this case the projectfile and export-folder paths should be absolute, maybe they’re already that way in your script.)