-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug fix request] Files that use Apache Velocity for name generation create empty files instead of mapping to file templates #20
Comments
Hello, whether all file templates are unavailable or this one alone ? The statement
reported an error when I reproduced the problem, but I tried fix it in v1.6.7. |
Hello, Thank you for your response. It happens to all the files that use Apache Velocity on the name definition. |
I apologize, but this nested ApacheVelocity statement has been consistently causing errors and preventing file creation on my end. Non-nested structures seem to work fine. Please consider using an alternative approach, such as employing a new placeholder. 🙇♂️ |
Hello @dengzii, Thank you for the suggestion. The problem is that placeholders cannot use apache velocity, do they? This used to work fine before the fix for this issue, so I think the problem is the mapping between the file name using apache velocity between the I think the mapping is happening between the result of the apache velocity function on the file names under To give you an example: Imagine that we have a the module template definition that I posted in the issue:
This same file name definition is used in the file name under the folder I think in the code, when trying to find which file template you need to use, the program is using the processed value of the file ( If you are busy, I can try to fix it on my side when I have a bit of time. Would you accept an external pull request? |
Hello! Yes, I’ve been quite busy lately. I’ve already considered the points you mentioned. The crucial issue is that the results of running ApacheVelocity statements in unit tests differ from run compile plugin in the IDEA. This is the code for simulating the parsing of a node tree in unit tests: If you could help fix with this, I would greatly appreciate it. 😊 |
First of all, I would like to thank you for your reactivity and for implementing the feature requested in our previous issue.
After updating to the latest version of the plugin
1.6.6
, we noticed that the splitting of the folders based on the folder name generation through apache velocity works fine now (which is the request feature, thank you for that🙏) but the files that use apache velocity create now empty files.Steps to reproduce
Given the following file template:
Given the following module template:
When I create a module using the file and module templates and the configuration shown below
I want to see the
Hello, World!
shown in the template but it's empty instead:Please find attached here the file and module templates to reproduce the issue:
module_templates_files.zip
Thank you very much in advance and please don't hesitate to ask if you need further clarifications 🙏
The text was updated successfully, but these errors were encountered: