labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
52 stars 10 forks source link

Getting Magic Header working #181

Open EnerB opened 1 year ago

EnerB commented 1 year ago

Hi, I customized a magic header to run a script when the project was saved. It looked like this:

name : List logical functions in console

script-type : Python

description : List logical functions in console

onResourceChange : workspace://In-Flight Entertainment System/In-Flight Entertainment System.capella

I was messing around with my project and changed the onResourceChange so it would be running the script repeatedly while I was messing with the project. When I went to test my automatic script, it doesn't run anymore. My scripting location is still the same, I haven't changed the .capella location, I am really unsure what has changed to cause it to stop working. I still see the scripts that have pop-up instead of onResourceChange so it's only onResourceChange and onSave that are not working.

ylussaud commented 2 weeks ago

Some times the order of declarations in the magic header prevent EASE from using it. I hope you already figured it out since that was a while ago. Feel free to close this issue if everything is OK on your side.