Skip to content
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

VariablesReplaceItemConfig isn't serializable #11

Open
tmeltser opened this issue Nov 10, 2020 · 0 comments
Open

VariablesReplaceItemConfig isn't serializable #11

tmeltser opened this issue Nov 10, 2020 · 0 comments

Comments

@tmeltser
Copy link

Hi,
I've started using your plugin and it looks very promissing!
I have come across a problem that I think (and hope) would be easy to fix:
I'm using the plugin in a dynamic way, which means I build dynamically the configs attribute:
contentReplace(
configs: [
variablesReplaceConfig(
configs: variablesReplacersList,
This means I'm creating a list of objects of type VariablesReplaceItemConfig which are NOT serializable, and here is the problem:
Because it isn't serializable, I'm forced to apply the plugin inside a function that is annotated with "@NonCPS", but such functions are NOT supposed to utilize pipeline steps...

Would it be possible to make the VariablesReplaceItemConfig class serializable?

B.T.W - there is a mistake in the plugin page in the buttom:
variableReplace(
configs: [
variablesReplaceConfig(...

variableReplace should be contentReplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant