Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R code outline not working in shiny moduleServer #6107

Open
dleopold opened this issue Jan 23, 2025 · 1 comment
Open

R code outline not working in shiny moduleServer #6107

dleopold opened this issue Jan 23, 2025 · 1 comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: r support

Comments

@dleopold
Copy link

System details:

Ubuntu 22.04

Positron and OS details:

Positron Version: 2025.02.0 build 79
Code - OSS Version: 1.96.0
Commit: a268bc8
Date: 2025-01-21T02:33:47.538Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux x64 6.9.3-76060903-generic

Interpreter details:

R 4.4.2

Describe the issue:

Code sections do not show up in the outline for section headers within a shiny module.

Steps to reproduce the issue:

A minimal server function for a shiny module:

shiny_module_server <- function(id, rv) {
  # A header ----

  moduleServer(id, function(input, output, session) {

    # An internal header ----

  })
}

Code section headers work, but only outside moduleServer():

Image

Expected or desired behavior:

Headers inside the moduleServer() function should be included in the outline

@juliasilge
Copy link
Contributor

Here is another example:

foo <- function(a) {
  # A header ----

  lapply(a, function(x, y, z) {

    # Another header ----

  })
}

@juliasilge juliasilge added lang: r area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working support labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: r support
Projects
None yet
Development

No branches or pull requests

2 participants