Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`sess` package progress

已关闭
#1,712 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
r, vscode

调研方向

首先使用 .vscode/arf launcher 和提供的 VS Code settings,通过 sess::connect() 和报告的 rv add command 重现失败。比较正常和失败的项目环境,包括 sess commit 和 connection-info warning。完成的标准是 sess 能够从 R terminal 成功连接,并且报告的 warning 不再发生。

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

描述

bug

Describe the bug
Early adopter of sess here just adding to the data in case its useful! I have one or two projects for which sess installed from the VSCode popup prompt, and it worked perfectly, and others for which it didn't. Today, I tried to deliberately add sess using rv add (I use rv for project package management):

rv repositories active!
repositories: 
  CRAN: https://packagemanager.posit.co/cran/latest

rv libpaths active!
library paths: 
  /n/holylabs/cgolden_lab/Lab/frontier/works/prospectors/prospectorKiribatiBioMarkers/rv/library/4.5/x86_64/redhat8
  /n/home03/ttapera/software/spack/opt/spack/linux-icelake/r-4.5.1-7hho5emqpuvlwt7hhy7i5fval54zz7mx/rlib/R/library
Warning message:
In sess::connect(use_rstudioapi = as.logical(Sys.getenv("SESS_RSTUDIOAPI",  :
  [sess] Connection info not available. Cannot connect to VS Code.
# arf console v0.3.3
# Edit mode: emacs
# R 4.5.1 is ready.
# Type :cmds for meta commands list, Ctrl+D to exit.
R 4.5.1> sess::connect()
Warning message:
In sess::connect() :
  [sess] Connection info not available. Cannot connect to VS Code.
R 4.5.1> sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: x86_64-pc-linux-gnu
Running under: Rocky Linux 8.10 (Green Obsidian)

Matrix products: default
BLAS/LAPACK: /n/home03/ttapera/software/spack/opt/spack/linux-icelake/openblas-0.3.33-xlojbage3rtl5frqwshts2o3qlkej7t6/lib/libopenblas-r0.3.33.so;  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8      
 [8] LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.5.1 sess_3.0.0    
R 4.5.1> 

To Reproduce
Steps to reproduce the behavior:

rv add sess --git https://github.com/REditorSupport/vscode-R --directory sess --commit 20f32fe142145152c4cfa6a65f9a89 4f77adde9e

Can you fix this issue by yourself? (We appreciate the help)

Yes / No

(If yes,) can we assist you with anything?

(If applicable) Please attach setting.json

{
    "r.plot.useHttpgd": true,
    "r.rterm.linux": "${workspaceFolder}/.vscode/arf",
    "r.workspaceViewer.showObjectSize": true,
    "terminal.integrated.defaultProfile.linux": "bash",
    "terminal.integrated.profiles.linux": {
        "bash": {
        "path": "/bin/bash"
        }
    },
    "livePreview.defaultPreviewPath": "/docs/index.html",
    "r.bracketedPaste": true,
    "r.sessionWatcher": true,
    "r.alwaysUseActiveTerminal": true,
    "r.rpath.linux": "/n/holylabs/cgolden_lab/Lab/frontier/works/prospectors/prospectorKiribatiBioMarkers/.spack-env/view/bin/R",
    "python.terminal.activateEnvInCurrentTerminal": true,
    "r.libPaths": [
        "/n/holylabs/cgolden_lab/Lab/frontier/works/prospectors/prospectorKiribatiBioMarkers/rv/library/4.5/x86_64/redhat8",
        "/n/home03/ttapera/software/spack/opt/spack/linux-icelake/r-4.5.1-7hho5emqpuvlwt7hhy7i5fval54zz7mx/rlib/R/library"
    ]
}

# ./.vscode/arf
#!/usr/bin/env bash
set -euo pipefail

PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

SPACK_VIEW="$PROJECT_ROOT/.spack-env/view"

export PATH="$SPACK_VIEW/bin:$PATH"

export LD_LIBRARY_PATH="$SPACK_VIEW/lib:$SPACK_VIEW/lib64:${LD_LIBRARY_PATH:-}"

export PKG_CONFIG_PATH="$SPACK_VIEW/lib/pkgconfig:$SPACK_VIEW/lib64/pkgconfig:${PKG_CONFIG_PATH:-}"

exec  ~/.cargo/bin/arf "$@"

Expected behavior
sess connected or sess::connect() to be successful
Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode

Environment (please complete the following information):

  • OS: Linux (HPC Rocky cluster)
  • VSCode Version: 1.122.1 (Universal)
  • R Version: 4.5.1
  • vscode-R version: 3.0.0-rc.0

Additional context
Good luck! I'm quite optimistic that the sess package is the solution we've all been waiting for

主要语言
TypeScript
星标
1.2k
派生
139
平均合并
19 小时 46 分钟
30 天内合并 PR
26

环境准备

从这里开始

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

REditorSupport/vscode-R 的其他 Issue

查看 REditorSupport/vscode-R 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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