Running code line-by-line (Cntrl + Enter) feels extremely laggy in Positron (Slurm Posit WB)

未关闭
#984 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
r

调研方向

Start by reproducing the Ctrl+Enter behavior in Positron with an RMarkdown or Quarto document, comparing line-by-line execution with whole-chunk execution and observing the temporary .vdoc files. The issue names no repository files or tests, so trace the document execution entry point first. Done means identifying the source of the lag and confirming responsive line-by-line execution without unintended temporary files.

由索引模型根据 Issue 内容生成。

描述

bug
I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

Hi, we are using Posit WB on AWS-deployed Slurm cluster.

Running R code line-by-line using Cntrl + Enter in Positron works normally in .R scripts, but when we try to run the code from RMarkdown / Quatro documents, it starts to lag heavily. It also produces bunch of temporary local .vdoc files.

At the same time, in RStudio, everything works normally.

Here is an example when run line-by-line.

> tictoc::tic()
> 1+1
[1] 2
> tictoc::toc()
4.84 sec elapsed

When we select the whole chunk, it works instantly.

> tictoc::tic()
+ 1+1
+ tictoc::toc()
[1] 2
0.002 sec elapsed

Any ideas on what we might try here?

Thanks

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Quarto check output
Quarto 1.9.37
[✓] Checking environment information...
      Quarto cache location: /pfs/home/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.8.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.4.5: OK
      Typst version 0.14.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.9.37
      Path: /usr/lib/rstudio-server/bin/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.07.03
      Chromium: (not installed)
      Chrome Headless Shell: (not installed)
      VeraPDF: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /pfs/home/.TinyTeX/bin/x86_64-linux
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking R installation...........OK
      Version: 4.4.1
      Path: /opt/R/4.4.1/lib/R
      LibPaths:
        - /pfs/home/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/22bdb599
      knitr: 1.51
      rmarkdown: 2.31

[✓] Checking Knitr engine render......OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking Julia installation...
主要语言
TypeScript
星标
665
派生
69
平均合并
2 天 4 小时
30 天内合并 PR
14

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto 的其他 Issue

查看 quarto-dev/quarto 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。