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

writeManifest lexical error - too long chunk #1114

Open
minemR opened this issue Oct 29, 2024 · 1 comment
Open

writeManifest lexical error - too long chunk #1114

minemR opened this issue Oct 29, 2024 · 1 comment

Comments

@minemR
Copy link

minemR commented Oct 29, 2024

When creating manifest:
writeManifest(appFiles = 'test1.qmd') we got error:

Error: lexical error: invalid character inside string.
          st_test\n### test_test_test_te st_test_test_test_test_test_t
                     (right here) ------^

trying to pinpoint the issue we came to line where quarto.exe inspect is called:

quarto, c("inspect", shQuote(file.path(appDir, appPrimaryDoc))),

Trying to split the chunk, resolves the issue.
Are there any character length limitation for single quarto chunk?
The dashboard works fine when chunks are large, so the problem only comes up when we need to create a manifest file for deployment to Posit Connect.

Example dashboard code:
test1.zip

@minemR
Copy link
Author

minemR commented Oct 29, 2024

Looking more in depth, it seems that json parsing is at blame:

jsonlite::fromJSON(json)

From my testing, it seems that this could fix the problem:

jsonlite::fromJSON(paste(json, collapse = ''))

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