Skip to content

Project cache error for notebooks in manuscript project #12380

@cderv

Description

@cderv

I cannot reproduce your issue using 1.6.42 or 1.7.* but I get another error using latest development version (2546027):

Image
❯ quarto render
[1/2] notebooks/notebook.qmd
ℹ R version 4.4.3 (2025-02-28)
! Config '~/.Rprofile' was loaded!


processing file: notebook.qmd
1/3                  
2/3 [unnamed-chunk-1]
3/3                  
output file: notebook.knit.md

Error adding css vars block TypeError: Cannot read private member #rid from an object whose class did not declare it
    at Kv.get (ext:deno_kv/01_db.ts:57:59)
    at ProjectCacheImpl.get (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/cache/cache.ts:137:39)
    at ProjectCacheImpl._getAs (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/cache/cache.ts:149:31)
    at ProjectCacheImpl.getString (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/cache/cache.ts:192:17)
    at file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/cache/cache.ts:208:33
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async handleVarsBlock (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/sass.ts:384:22)
    at async file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/sass.ts:415:17
    at async SassCache.setFromHash (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/sass/cache.ts:85:7)
    at async compileSass (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/sass.ts:161:18)
The resulting CSS file will not have SCSS color variables exported as CSS.
This is likely a Quarto bug.
Please consider reporting it at https://github.com/quarto-dev/quarto-cli,
along with the _quarto_internal_scss_error.scss file that can be found in the current working directory.
ℹ R version 4.4.3 (2025-02-28)
! Config '~/.Rprofile' was loaded!


processing file: notebook.qmd
1/3                  
2/3 [unnamed-chunk-1]
3/3                  
output file: notebook.knit.md

[2/2] index.qmd

Creating MECA Bundle
  3 article files
  5 source files
  1 notebook
  1 other file

Output created: _manuscript/index.html

Originally posted by @mcanouil in #12360

This happens rendenring manuscript project with a simple notebooks/notebooks.qmd

---
title: "Notebook"
---

## A test

```{r}
x <- 1:4
y <- 1:4
plot(x,y)
```

I am surprised our test does not catch that. 🤔

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmanuscriptIssues related to manuscript outputthemesRelated to HTML theming or any other style related issue (like highlight-style)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions