question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Session watcher and work space viewer not work

See original GitHub issue

To Reproduce Steps to reproduce the behavior:

  1. Go to Vscode server
  2. open a terminal
  3. conda activate R version environment

Do you want to fix by self? (I hope your help!) Yes/No

(If related)setting.json

{
    "git.ignoreLegacyWarning": true,
    "update.mode": "manual",
    "extensions.autoCheckUpdates": false,
    "extensions.autoUpdate": false,
    "update.showReleaseNotes": false,
    "r.rterm.option": [],
    "r.bracketedPaste": true,
    "files.autoSave": "off",
    "r.lsp.path": "/home/sgd/miniconda3/envs/R_403/bin/R",
    "r.alwaysUseActiveTerminal": true,
    "r.rpath.linux": "/home/sgd/miniconda3/envs/R_403/bin/R",
    "r.workspaceViewer.removeHiddenItems": true,
    "r.sessionWatcher": true,
    "r.rterm.linux": "/home/sgd/miniconda3/envs/R_403/bin/R",
    "workbench.colorTheme": "Visual Studio Dark"
}

Expected behavior when I excute code, the plot and variable will be appear. image

Environment (please complete the following information):

  • OS: [e.g. Windows, macOS, Linux]


R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Platform: x86_64-conda-linux-gnu (64-bit)

Sys.info()                                                                                                             
                             sysname                              release                              version 
                             "Linux"         "3.10.0-957.21.2.el7.x86_64" "#1 SMP Wed Jun 5 14:26:44 UTC 2019" 
                            nodename                              machine                                login 
             "localhost.localdomain"                             "x86_64"                                "sgd" 
                                user                       effective_user 
                               "sgd"                                "sgd" 
  • VSCode Version: VScode server 3.9.0
  • R Version: 4.0.3 (which is installed from conda)
  • vscode-R version: 1.6.4

Additional context

sgd@localhost ~
$ cat .Rprofile 
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")

options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/",
                    CRANextra = "http://www.stats.ox.ac.uk/pub/RWin"))

source(file.path(Sys.getenv(if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"), ".vscode-R", "init.R"))

r$> ls.str(.vsc)                                                                                                                                                  
attach : function ()  
capture_str : function (object)  
check_null_dev : function ()  
dataview_data_type : function (x)  
dataview_table : function (data)  
dir_extension :  chr "/home/sgd/.vscode-R"
dir_plot_history :  chr "/tmp/RtmpZPi2Tk/vscode-R/images"
dir_session :  chr "/tmp/RtmpZPi2Tk/vscode-R"
get_timestamp : function ()  
globalenv_file :  chr "/tmp/RtmpZPi2Tk/vscode-R/globalenv.json"
globalenv_lock_file :  chr "/tmp/RtmpZPi2Tk/vscode-R/globalenv.lock"
homedir :  chr "/home/sgd"
inspect_env : function (env)  
new_plot : function ()  
null_dev_id :  Named int 2
null_dev_size :  num [1:2] 10.1 10.1
path_to_uri : function (path)  
pid :  int 67018
plot_file :  chr "/tmp/RtmpZPi2Tk/vscode-R/plot.png"
plot_history_file :  chr "/tmp/RtmpZPi2Tk/vscode-R/images/20210305-102047.139642.png"
plot_lock_file :  chr "/tmp/RtmpZPi2Tk/vscode-R/plot.lock"
plot_updated :  logi FALSE
print.help_files_with_topic : function (h, ...)  
print.hsearch : function (x, ...)  
rebind : function (sym, value, ns)  
request : function (command, ...)  
request_browser : function (url, title, ..., viewer)  
request_file :  chr "/home/sgd/.vscode-R/request.log"
request_lock_file :  chr "/home/sgd/.vscode-R/request.lock"
rstudioapi_enabled : function ()  
scalar : function (x)  
show_browser : function (url, title = url, ..., viewer = getOption("vsc.browser", "Active"))  
show_dataview : function (x, title, viewer = getOption("vsc.view", "Two"))  
show_globalenv :  logi TRUE
show_page_viewer : function (url, title = NULL, ..., viewer = getOption("vsc.page_viewer", "Active"))  
show_plot :  logi TRUE
show_view :  logi TRUE
show_viewer : function (url, title = NULL, ..., viewer = getOption("vsc.viewer", "Two"))  
show_webview : function (url, title, ..., viewer)  
tempdir :  chr "/tmp/RtmpZPi2Tk"
update_globalenv : function (...)  
update_plot : function (...)  
wd :  chr "/data/sgd_data/project/202103/SC_m6ASeq_202103/result/03_test"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
renkun-kencommented, Mar 5, 2021

Your finding should be the cause in your case. The inconsistency may cause problems here.

1reaction
renkun-kencommented, Mar 5, 2021

What’s the workspace folder you open in VSCode?

It’s probably because the working directory of your R session (/data/sgd_data/project/202103/SC_m6ASeq_202103/result/03_test in your post) does not match your workspace folder in VSCode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help not shown when using session watcher #659 - GitHub
Plotting and running View() work fine with the session watcher too as they open in a webview, the problem is with the help...
Read more >
Troubleshoot WorkSpaces issues - AWS Documentation
The following information can help you troubleshoot issues with your WorkSpaces. Enabling advanced logging. To help troubleshoot issues that your users ...
Read more >
Session launch diagnostics - Citrix Product Documentation
Session launches involve multiple Citrix components. To diagnose session launch failures, use Citrix Monitor (that is, Citrix Director ...
Read more >
Monitoring Activity Within a Workspace
Monitor developer activity and changes within a workspace by accessing ... Use the Active Sessions report to view active sessions in the current...
Read more >
Troubleshoot issues with the Log Analytics agent for Windows
Connectivity issues · Enable the Azure Log Analytics Agent Health assessment in the workspace. · Run the following query to confirm the agent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found