[Solved] -always-load-scripts

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
ikua
Junior Member
Posts: 11
Joined: Tue Apr 25, 2023 4:07 pm

[Solved] -always-load-scripts

Post by ikua » Tue Apr 25, 2023 4:13 pm

Hello!

I am trying to start qcad with the always laod script command so that i do not have to restart the programm to try out changes in the scripts.
But if I try it form Windows 10 command line the qcad loading sceen shows up a short time and than ends the programm. I can start it with the following commands without any problem:
-rescan
-enable-script-debugger

Version:
3.25.2.0 (3.25.2)

Geets and thx
Last edited by ikua on Wed Dec 20, 2023 12:39 pm, edited 1 time in total.

CVH
Premier Member
Posts: 3471
Joined: Wed Sep 27, 2017 4:17 pm

Re: -always-load-scripts

Post by CVH » Tue Apr 25, 2023 5:11 pm

ikua wrote:
Tue Apr 25, 2023 4:13 pm
qcad loading sceen shows up a short time and than ends the programm.
There is probably an error or a wrong syntax in your script.
With -always-load-scripts QCAD is forced to load the script as it is.
When QCAD is running and you insert a code error and run the script then it reverts to the former state.
When restarting there is no former state and QCAD may fail to load.
All depends if it is a wrong syntax or the error occurs at run-time.
ikua wrote:
Tue Apr 25, 2023 4:13 pm
I can start it with the following commands without any problem:
-rescan
-enable-script-debugger
And what does the debugger shows as error?
Remark also that the debugger mode is not a stable environment.

If you want to share the code then we could have a look at it.
You may always PM me if you don't want to share it in public.

Regards,
CVH

ikua
Junior Member
Posts: 11
Joined: Tue Apr 25, 2023 4:07 pm

Re: -always-load-scripts

Post by ikua » Wed Apr 26, 2023 8:52 am

Thank you for your fast an competent reply! With your help, i realized, that one of the scripts in the Misc folder had an error and interrupted the loading process of qcad. After deleting it starting with the -always-load-scripts works perfectly!!

many thanks!

CVH
Premier Member
Posts: 3471
Joined: Wed Sep 27, 2017 4:17 pm

Re: -always-load-scripts

Post by CVH » Wed Apr 26, 2023 5:54 pm

ikua,

When considered solved please prefix the initial post title with [Solved] by editing it.

Regards,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”