If one selects some input arguments for a Python script and then changes them, they are not updated in the script. Reproducible: Always Steps to Reproduce: With some objects in the drawing 1. Objects -> Other -> Python Scripts 2. Don't select any input argument, hit Next 3. The script starts with def calc( ): 4. Hit back 5. Select objects as inputs 6. Hit next Actual Results: Script still starts with def calc( ): Expected Results: Script should have some arguments, e.g. def calc( arg1 ):
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
(In reply to Andrew Crouthamel from comment #1) > This bug has been stagnant for a long time. Could you help us out and > re-test if the bug is valid in the latest version? I am setting the status > to NEEDSINFO pending your response, please change the Status back to > REPORTED when you respond. I am the maintainer for Kig, and I keep this bug around as a junior job in case newcomers want to get their feet wet.
Sounds good!
Hey I am new to the KDE community, I would like to get started (or get my feet wet as you say :)) Can I start working on this?
(In reply to Adit Jain from comment #4) > Hey I am new to the KDE community, I would like to get started (or get my > feet wet as you say :)) Can I start working on this? You sure can! Welcome to KDE :)
Hey I cannot build kig on my pc . Many of the dependencies are not installing. The error that keeps popping up is: Could not find a configuration file for package "Qt5" that is compatible with requested version "5.10.0". The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.9.5 Now i have installed qt5.10.0 separately on the machine and have tried to set he config of qmake to the home directory(where qt5.10.0 is) but no avail. Please help :D .
Hi David, I had a look at this bug and I think I isolated the piece of code that is causing the issue in the description. Before submitting a merge request I have a question about the desired final behaviour. Consider this workflow: 1. Draw something 2. Select Objects-> Other -> Python scripts 3. Don't select any input arguments 4. Modify the python script 5. Press back 6. Select objects as inputs 7. Press next I would assume that the modified python script should still be present and the only change would be the function definition. Is that assumption correct or should the python script be restored to the template code provided by ScriptType::templateCode (ie. any user modification will be lost)? Thanks.
A possibly relevant merge request was started @ https://invent.kde.org/education/kig/-/merge_requests/6
Git commit 2d60444fdbd91fc039254e7890423d042cf4a625 by Yuri Chornoivan, on behalf of Antonello Palazzi. Committed on 05/07/2021 at 13:16. Pushed by narvaez into branch 'master'. Fix updating function signature for python scripts to reflect object selection M +44 -18 scripting/script-common.cc M +8 -0 scripting/script-common.h M +10 -4 scripting/script_mode.cc https://invent.kde.org/education/kig/commit/2d60444fdbd91fc039254e7890423d042cf4a625