Conversation
…-write the content, this wouldnt be removed
…ATCH (the heather) and not the other lines
…s being overwritten in first and subsequent runs
|
Thank you very much for the pull request. In addition, Open Composer generates lines that do not start with |
Hi, thank you for your quick reply! I believe this is fixable. At MCW we only insert #SBATCH lines as part of the heather. So, it was my mistake that I didn't think about all other cases! Oops! But I'll think about other cases and update my pull request, unless I see that you publish an update before with that issue resolved. If it helps, that should require an edit in the helper function that I added. If you're interested, you could let me know all the possible cases in which a line is part of the heather (which are the lines that should be replaced on every update). For example: starts with #SBATCH, starts with #!. And I can edit the helper function. Unless you guys know already how to do the fix or have a more efficient way to do it. I'll give it some thought! |
|
Hi, thank you very much for your reply and for your willingness to improve the implementation - we really appreciate your help. Could you clarify what you mean by “heather”? Do you mean the script header? I just want to make sure I understand it correctly. After receiving your PR, I also spent some time thinking about the implementation on my side, but unfortunately I couldn’t come up with a clean or clearly better solution either. So your input and ideas are very helpful. At the very least, all of the samples shown in the following documentation need to work correctly with the final implementation: https://riken-rccs.github.io/OpenComposer/docs/application.html#sample If you think updating the helper function you added is the right direction, I’m happy to discuss the possible cases together. Thanks again for your cooperation, and I look forward to your thoughts or an updated PR. |
added a test function to replace the current rebuildWithSbatchHeader with a much simpler function that does the same.
continue working on the test function
Edit temporary function to print in the console what the final text to print in the script area would be
Trim only the ends on finalText so that the empty line between the top section and the body is not removed.
|
Hi, those issues should be resolved now. I tested that it works on a SLURM scheduler. It should work for others, but i couldnt test because we only have SLURM. |
|
Thank you very much for the PR. For example, with the following configuration in As shown in the following screenshot, even if multiple items are selected, they are not reflected in the text area on the right. The expected behavior is that the selected values are correctly expanded and shown in the Script Content. In addition, the behavior of If a directory is selected, and after that a different directory is selected again, the updated path is not reflected in the text area. I apologize for not providing test files, but before creating a PR, please make sure that all examples described in the following manual work correctly: Thank you for your understanding. |




Sorry, i deleted the branch by mistake. This is the same pull request as previously.
The app was re-writing any command that the user might type under the SBATCH (or other) heather. I fixed it so that when the script area is re-written, it only re-writes the heather (SBATCH lines) and not any additional commands.