carboneio / carbone

Fast and simple report generator, from JSON to pdf, xslx, docx, odt...
https://carbone.io
Other
1.3k stars 190 forks source link

[Bug Report]: Error in resolving aliases #105

Open mjunkin opened 3 years ago

mjunkin commented 3 years ago

Environment Carbone Studio 2.x.x

Expected Behaviour I've defined a small document with two aliases: one named "a" and the other "ao":

template.docx

with this report data file:

report-data.txt

I expect that the result will be "Result: Building 10 - 7201 Vedder Road"

Actual Behaviour

The result is instead just "Result:"

Steps to reproduce Steps to reproduce the bug:

  1. Go to https://studio.carbone.io/#/studio
  2. Upload the data document into the left pane
  3. Upload the template into the right pane, and see the problem
  4. If you remove the definition of "a" (starting {#a...) and re-render, the output shows up correctly.

It seems that Carbone is being confused by the use of #a. If I rename "a" to "ab", the template works. So maybe your alias lookup code is broken?

steevepay commented 3 years ago

Hello @mjunkin, thank you for reaching us. It is a known issue and we are working on it. Until the fix, aliases should start with different letters.

steevepay commented 3 years ago

Hello @mjunkin, we found the issue and the fix is coming.