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

Rendering of file shall first reset attribute cache and then render #402

Closed
de-jcup opened this issue Apr 30, 2022 · 0 comments · Fixed by #408
Closed

Rendering of file shall first reset attribute cache and then render #402

de-jcup opened this issue Apr 30, 2022 · 0 comments · Fixed by #408
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@de-jcup
Copy link
Owner

de-jcup commented Apr 30, 2022

Situation

When the attribute cache is filled (attributes resolved), changes for variables/attributes inside asciidoc files do not work until user does a manuel reset of project cache (which does a lot more).

Wanted

Changes of attributes inside configuration files (.asciidoctorconfig.adoc) or other files shall be automatically available on next refresh/build of an asciidoctor file. This means also when adding a new ..asciidoctorconfig.adoc file this change will automatically applied on next refresh or editor save.

Solution

Attribute provider cache shall be cleared when a file is new rendered

@de-jcup de-jcup added the enhancement New feature or request label Apr 30, 2022
@de-jcup de-jcup added this to the 2.5.0 milestone Apr 30, 2022
@de-jcup de-jcup self-assigned this Apr 30, 2022
de-jcup added a commit that referenced this issue May 1, 2022
- Attribute cache is cleared before rendering #402
- base_dir attribute from configuration files now used #403
- Added plantuml native asciidoc script folder with
  test suite to check if the plantuml include problems are
  only at editor side or also at native asciidoctor call.
- By setting the base_dir attribute to the new test folder, it became
  clear that asciidoc editor can than render the plantuml files
  correctly when .adoc file and hidden editor. But it did not work
  with the puml editor where no hidden file was created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant