posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.82k stars 90 forks source link

Plot UI broken when ploting a DiagrammeR graph #5440

Open dfalbel opened 11 hours ago

dfalbel commented 11 hours ago

System details:

Positron and OS details:

Positron Version: 2024.12.0 (Universal) build 51 Code - OSS Version: 1.93.0 Commit: 59b5b0c3c0a3de2068753811d7b19843d39437cf Date: 2024-11-21T02:46:07.218Z Electron: 30.4.0 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.1.0

Interpreter details:

> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 15.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Sao_Paulo
tzcode source: internal

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

other attached packages:
[1] ggplot2_3.5.1     DiagrammeR_1.0.11

loaded via a namespace (and not attached):
 [1] gtable_0.3.6       jsonlite_1.8.8     dplyr_1.1.4        compiler_4.4.1     tidyselect_1.2.1   stringr_1.5.1     
 [7] scales_1.3.0       yaml_2.3.10        uuid_1.2-1         fastmap_1.2.0      R6_2.5.1           labeling_0.4.3    
[13] generics_0.1.3     htmlwidgets_1.6.4  visNetwork_2.1.2   forcats_1.0.0      tibble_3.2.1       munsell_0.5.1     
[19] pillar_1.9.0       RColorBrewer_1.1-3 rlang_1.1.4        utf8_1.2.4         stringi_1.8.4      cli_3.6.3         
[25] withr_3.0.1        magrittr_2.0.3     digest_0.6.37      grid_4.4.1         rstudioapi_0.17.0  haven_2.5.4       
[31] hms_1.1.3          lifecycle_1.0.4    vctrs_0.6.5        glue_1.8.0         data.table_1.16.2  farver_2.1.2      
[37] fansi_1.0.6        colorspace_2.1-1   purrr_1.0.2        tools_4.4.1        pkgconfig_2.0.3    htmltools_0.5.8.1

Describe the issue:

After creating a plot with DiagrammeR the plot UI becomes broken: Image

Steps to reproduce the issue:

https://github.com/user-attachments/assets/16fefad6-b3ce-4fff-862c-82ac2ff4cd16

Expected or desired behavior:

UI should work as expected

Were there any error messages in the UI, Output panel, or Developer Tools console?

Probably related:

workbench.desktop.main.js:62539 [Extension Host] [HPM] Error occurred while proxying request 127.0.0.1:58961/doc/html/prism.css to http://127.0.0.1:57511/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors) (at Object.error (/Applications/Positron.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:64212:26))