posit-dev / positron

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

Console not very responsive / slow on execution of R code #4008

Open strengejacke opened 4 months ago

strengejacke commented 4 months ago

Setup

Positron Version: 2024.07.0 (system setup) build 2024.07.0-41 Code - OSS Version: 1.90.0 Commit: 9f24124be55ef409fb6b6c75ee80232f298cd56b Date: 2024-07-12T03:18:15.685Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

Issue

Console is slow / not very responsive to executed code lines from editor. See in particular the last command, plot_slopes(). After running the code (using ctrl+enter in the editor), it takes a lot of time before it's printed to the console (see red square indicating action). Then, after showing up in the console, it furthermore takes a lot of time until the code is executed.

Example

Here's the code:

library(marginaleffects)
library(brms)

mod_miss <- insight::download_model("brms_miss_1")

plot_slopes(mod_miss, 
   variables = "woman", 
   condition = "age")

Positron

This is how it runs inside Positron for me:

https://github.com/user-attachments/assets/3aa946ee-1ca3-49d0-8f91-270d086e05c1

RStudio

This is RStudio:

https://github.com/user-attachments/assets/c7eaf5db-a102-497b-ab4c-6e2e73acf7e9

lionel- commented 4 months ago

Does this happen with any packages or just these ones? Does it happen with base packages?

We are going to need logs from 3 different sources. Please quit Positron and restart it (so the logs aren't too large), reproduce the example above, and provide us the logs for:

Here is how to get those via the command palette (the first command is called Developer: Show Developer tools and the second is Interpreter: Show interpreter output):

https://github.com/user-attachments/assets/b3ee1e0e-e5cb-41e8-a978-0cf2d8836a36

strengejacke commented 4 months ago

I must say it was a lot faster today. Maybe, because I just updated positron, or it's the better computer I'm using here. I'll try and post logs from my other machine later.

Is the third log from "R console 4.4.1"? That is - despite the new restart - very very long. I can post it here, for now I posted devtools and language server logs.

Setup

Positron Version: 2024.07.0 (system setup) build 2024.07.0-49 Code - OSS Version: 1.90.0 Commit: 677a0d0f0a4f5f9389507c079c8b9a67699d52fd Date: 2024-07-15T03:19:37.352Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

Developer tools Log

workbench.js:1887 ------------------------------------------------------------------------
workbench.js:1889 Changing where the react-dom client.js file is loaded from.
workbench.js:1890 Original path: vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/../node_modules.asar/react-dom/umd/react-dom.production.min.js/client.js
workbench.js:1891 Adjusted path: vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/react-dom/client.js
workbench.js:1896 ------------------------------------------------------------------------
workbench.desktop.main.js:127457 DEBUG Using cached extensions scan result vscode-userdata:/c%3A/Users/mail/.positron/extensions/extensions.json
workbench.desktop.main.js:127457 DEBUG ComputeTargetPlatform: win32-x64
workbench.desktop.main.js:127457 DEBUG Using cached extensions scan result file:///c%3A/Program%20Files/Positron/resources/app/extensions
workbench.desktop.main.js:127477  WARN Skipping extension /c:/Users/mail/.positron/extensions/quarto.quarto-1.113.0-universal in favour of the builtin extension /c:/Program Files/Positron/resources/app/extensions/quarto.quarto.
workbench.desktop.main.js:127477  WARN [ms-python.python]: Cannot register 'python.venvPath'. This property is already registered.
workbench.desktop.main.js:127477  WARN [vscode.positron-r]: Cannot register 'positron.r.extraArguments'. This property is already registered.
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Extension ms-python.python has been registered for language runtime for language ID 'python'
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Extension vscode.positron-r has been registered for language runtime for language ID 'r'
workbench.desktop.main.js:127467  INFO Started local extension host with pid 5928.
workbench.desktop.main.js:127457 DEBUG No new project configuration found in storage
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/notebook.rendering.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/editSessions.log
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/exthost/vscode.positron-r/Positron%20R%20Extension.log
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/ptyhost.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/exthost/vscode.git/Git.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/exthost/vscode.github/GitHub.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/exthost/vscode.github-authentication/GitHub%20Authentication.log
3workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'starting'
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension vscode.positron-r for language ID r
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127467  INFO Language runtime 912077798d99e95f382c96e6337fbb96 (language: R name: R 4.4.1 version: 4.4.1) automatically starting. Source: Affiliated r runtime for workspace
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension ms-python.python for language ID python
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension vscode.positron-r for language ID r
workbench.desktop.main.js:127457 DEBUG [Ext host 0] Runtime manager for 'R 4.4.1': true
workbench.desktop.main.js:127457 DEBUG [Runtime startup] All extensions contributing language runtimes have been activated.
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'discovering'
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/mail/AppData/Roaming/Positron/logs/20240715T170417/window1/exthost/waderyan.gitblame/Git%20Blame.log
workbench.desktop.main.js:127467  INFO [perf] Render performance baseline is 46ms
workbench.desktop.main.js:127457 DEBUG [Ext host 0] Runtime manager for 'R 4.4.1': true
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'complete'
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127467  INFO Creating positron.variables client 'positron-variables-r-0-7172e9e7'...
workbench.desktop.main.js:127467  INFO Creating positron.ui client 'positron-ui-r-1-aeaff49e'...
workbench.desktop.main.js:127467  INFO Creating positron.help client 'positron-help-r-2-93435ba7'...
workbench.desktop.main.js:61148 [Extension Host] rejected promise not handled within 1 second: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R') (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:61148 [Extension Host] stack trace: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R')
    at $dvb.$tryOpenDocument (vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/vs/workbench/workbench.desktop.main.js:562463:23) (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:127487   ERR cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R'): CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R')
    at $dvb.$tryOpenDocument (vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/vs/workbench/workbench.desktop.main.js:562463:23)
workbench.desktop.main.js:61148 [Extension Host] rejected promise not handled within 1 second: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R') (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:61148 [Extension Host] stack trace: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R')
    at $dvb.$tryOpenDocument (vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/vs/workbench/workbench.desktop.main.js:562463:23) (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:61148 [Extension Host] rejected promise not handled within 1 second: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R') (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:61148 [Extension Host] stack trace: CodeExpectedError: cannot open file:///c%3A/Users/mail/Documents/R/easystats/performance/tests/testthat/test-logLik.R. Detail: Unable to read file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R' (Error: Unable to resolve nonexistent file 'c:\Users\mail\Documents\R\easystats\performance\tests\testthat\test-logLik.R')
    at $dvb.$tryOpenDocument (vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/vs/workbench/workbench.desktop.main.js:562463:23) (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
log @ workbench.desktop.main.js:61148
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 Python konnte nicht gefunden werden. F�hren Sie die Verkn�pfung ohne Argumente aus, um sie �ber den Microsoft Store zu installieren, oder deaktivieren Sie diese Verkn�pfung unter [*** LOG ERROR #0001 ***] [2024-07-15 17:04:49] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0002 ***] [2024-07-15 17:04:51] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0003 ***] [2024-07-15 17:04:53] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0004 ***] [2024-07-15 17:04:54] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0005 ***] [2024-07-15 17:04:56] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0006 ***] [2024-07-15 17:04:58] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0007 ***] [2024-07-15 17:05:00] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0008 ***] [2024-07-15 17:05:01] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0009 ***] [2024-07-15 17:05:03] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 [*** LOG ERROR #0010 ***] [2024-07-15 17:05:05] [Console: R 4.4.1] rotating_file_sink: failed renaming c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.log to c:\Users\mail\AppData\Roaming\Positron\logs\20240715T170417\window1\exthost\vscode.jupyter-adapter\Console R 4.4.1.1.log: permission denied
3workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:63924 [Violation] 'setInterval' handler took 74ms
[Violation] 'setTimeout' handler took 71ms
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
[Violation] 'setTimeout' handler took 70ms
workbench.desktop.main.js:62795 [Violation] 'setInterval' handler took 72ms

Language Server log

Creating Positron R 4.4.1 language client (port 44671)
[Info  - 5:04:23 PM] Initialize(
    InitializeParams {
        process_id: Some(
            5928,
        ),
        root_path: Some(
            "c:\\Users\\mail\\Documents\\R\\easystats\\performance",
        ),
        root_uri: Some(
            Url {
                scheme: "file",
                cannot_be_a_base: false,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "/c%3A/Users/mail/Documents/R/easystats/performance",
                query: None,
                fragment: None,
            },
        ),
        initialization_options: None,
        capabilities: ClientCapabilities {
            workspace: Some(
                WorkspaceClientCapabilities {
                    apply_edit: Some(
                        true,
                    ),
                    workspace_edit: Some(
                        WorkspaceEditClientCapabilities {
                            document_changes: Some(
                                true,
                            ),
                            resource_operations: Some(
                                [
                                    Create,
                                    Rename,
                                    Delete,
                                ],
                            ),
                            failure_handling: Some(
                                TextOnlyTransactional,
                            ),
                            normalizes_line_endings: Some(
                                true,
                            ),
                            change_annotation_support: Some(
                                ChangeAnnotationWorkspaceEditClientCapabilities {
                                    groups_on_label: Some(
                                        true,
                                    ),
                                },
                            ),
                        },
                    ),
                    did_change_configuration: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    did_change_watched_files: Some(
                        DidChangeWatchedFilesClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            relative_pattern_support: Some(
                                true,
                            ),
                        },
                    ),
                    symbol: Some(
                        WorkspaceSymbolClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            symbol_kind: Some(
                                SymbolKindCapability {
                                    value_set: Some(
                                        [
                                            File,
                                            Module,
                                            Namespace,
                                            Package,
                                            Class,
                                            Method,
                                            Property,
                                            Field,
                                            Constructor,
                                            Enum,
                                            Interface,
                                            Function,
                                            Variable,
                                            Constant,
                                            String,
                                            Number,
                                            Boolean,
                                            Array,
                                            Object,
                                            Key,
                                            Null,
                                            EnumMember,
                                            Struct,
                                            Event,
                                            Operator,
                                            TypeParameter,
                                        ],
                                    ),
                                },
                            ),
                            tag_support: Some(
                                TagSupport {
                                    value_set: [
                                        Deprecated,
                                    ],
                                },
                            ),
                            resolve_support: Some(
                                WorkspaceSymbolResolveSupportCapability {
                                    properties: [
                                        "location.range",
                                    ],
                                },
                            ),
                        },
                    ),
                    execute_command: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    workspace_folders: Some(
                        true,
                    ),
                    configuration: Some(
                        true,
                    ),
                    semantic_tokens: Some(
                        SemanticTokensWorkspaceClientCapabilities {
                            refresh_support: Some(
                                true,
                            ),
                        },
                    ),
                    code_lens: Some(
                        CodeLensWorkspaceClientCapabilities {
                            refresh_support: Some(
                                true,
                            ),
                        },
                    ),
                    file_operations: Some(
                        WorkspaceFileOperationsClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            did_create: Some(
                                true,
                            ),
                            will_create: Some(
                                true,
                            ),
                            did_rename: Some(
                                true,
                            ),
                            will_rename: Some(
                                true,
                            ),
                            did_delete: Some(
                                true,
                            ),
                            will_delete: Some(
                                true,
                            ),
                        },
                    ),
                    inline_value: Some(
                        InlineValueWorkspaceClientCapabilities {
                            refresh_support: Some(
                                true,
                            ),
                        },
                    ),
                    inlay_hint: Some(
                        InlayHintWorkspaceClientCapabilities {
                            refresh_support: Some(
                                true,
                            ),
                        },
                    ),
                },
            ),
            text_document: Some(
                TextDocumentClientCapabilities {
                    synchronization: Some(
                        TextDocumentSyncClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            will_save: Some(
                                true,
                            ),
                            will_save_wait_until: Some(
                                true,
                            ),
                            did_save: Some(
                                true,
                            ),
                        },
                    ),
                    completion: Some(
                        CompletionClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            completion_item: Some(
                                CompletionItemCapability {
                                    snippet_support: Some(
                                        true,
                                    ),
                                    commit_characters_support: Some(
                                        true,
                                    ),
                                    documentation_format: Some(
                                        [
                                            Markdown,
                                            PlainText,
                                        ],
                                    ),
                                    deprecated_support: Some(
                                        true,
                                    ),
                                    preselect_support: Some(
                                        true,
                                    ),
                                    tag_support: Some(
                                        TagSupport {
                                            value_set: [
                                                Deprecated,
                                            ],
                                        },
                                    ),
                                    insert_replace_support: Some(
                                        true,
                                    ),
                                    resolve_support: Some(
                                        CompletionItemCapabilityResolveSupport {
                                            properties: [
                                                "documentation",
                                                "detail",
                                                "additionalTextEdits",
                                            ],
                                        },
                                    ),
                                    insert_text_mode_support: Some(
                                        InsertTextModeSupport {
                                            value_set: [
                                                AsIs,
                                                AdjustIndentation,
                                            ],
                                        },
                                    ),
                                    label_details_support: Some(
                                        true,
                                    ),
                                },
                            ),
                            completion_item_kind: Some(
                                CompletionItemKindCapability {
                                    value_set: Some(
                                        [
                                            Text,
                                            Method,
                                            Function,
                                            Constructor,
                                            Field,
                                            Variable,
                                            Class,
                                            Interface,
                                            Module,
                                            Property,
                                            Unit,
                                            Value,
                                            Enum,
                                            Keyword,
                                            Snippet,
                                            Color,
                                            File,
                                            Reference,
                                            Folder,
                                            EnumMember,
                                            Constant,
                                            Struct,
                                            Event,
                                            Operator,
                                            TypeParameter,
                                        ],
                                    ),
                                },
                            ),
                            context_support: Some(
                                true,
                            ),
                            insert_text_mode: Some(
                                AdjustIndentation,
                            ),
                            completion_list: Some(
                                CompletionListCapability {
                                    item_defaults: Some(
                                        [
                                            "commitCharacters",
                                            "editRange",
                                            "insertTextFormat",
                                            "insertTextMode",
                                            "data",
                                        ],
                                    ),
                                },
                            ),
                        },
                    ),
                    hover: Some(
                        HoverClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            content_format: Some(
                                [
                                    Markdown,
                                    PlainText,
                                ],
                            ),
                        },
                    ),
                    signature_help: Some(
                        SignatureHelpClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            signature_information: Some(
                                SignatureInformationSettings {
                                    documentation_format: Some(
                                        [
                                            Markdown,
                                            PlainText,
                                        ],
                                    ),
                                    parameter_information: Some(
                                        ParameterInformationSettings {
                                            label_offset_support: Some(
                                                true,
                                            ),
                                        },
                                    ),
                                    active_parameter_support: Some(
                                        true,
                                    ),
                                },
                            ),
                            context_support: Some(
                                true,
                            ),
                        },
                    ),
                    references: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    document_highlight: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    document_symbol: Some(
                        DocumentSymbolClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            symbol_kind: Some(
                                SymbolKindCapability {
                                    value_set: Some(
                                        [
                                            File,
                                            Module,
                                            Namespace,
                                            Package,
                                            Class,
                                            Method,
                                            Property,
                                            Field,
                                            Constructor,
                                            Enum,
                                            Interface,
                                            Function,
                                            Variable,
                                            Constant,
                                            String,
                                            Number,
                                            Boolean,
                                            Array,
                                            Object,
                                            Key,
                                            Null,
                                            EnumMember,
                                            Struct,
                                            Event,
                                            Operator,
                                            TypeParameter,
                                        ],
                                    ),
                                },
                            ),
                            hierarchical_document_symbol_support: Some(
                                true,
                            ),
                            tag_support: Some(
                                TagSupport {
                                    value_set: [
                                        Deprecated,
                                    ],
                                },
                            ),
                        },
                    ),
                    formatting: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    range_formatting: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    on_type_formatting: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    declaration: Some(
                        GotoCapability {
                            dynamic_registration: Some(
                                true,
                            ),
                            link_support: Some(
                                true,
                            ),
                        },
                    ),
                    definition: Some(
                        GotoCapability {
                            dynamic_registration: Some(
                                true,
                            ),
                            link_support: Some(
                                true,
                            ),
                        },
                    ),
                    type_definition: Some(
                        GotoCapability {
                            dynamic_registration: Some(
                                true,
                            ),
                            link_support: Some(
                                true,
                            ),
                        },
                    ),
                    implementation: Some(
                        GotoCapability {
                            dynamic_registration: Some(
                                true,
                            ),
                            link_support: Some(
                                true,
                            ),
                        },
                    ),
                    code_action: Some(
                        CodeActionClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            code_action_literal_support: Some(
                                CodeActionLiteralSupport {
                                    code_action_kind: CodeActionKindLiteralSupport {
                                        value_set: [
                                            "",
                                            "quickfix",
                                            "refactor",
                                            "refactor.extract",
                                            "refactor.inline",
                                            "refactor.rewrite",
                                            "source",
                                            "source.organizeImports",
                                        ],
                                    },
                                },
                            ),
                            is_preferred_support: Some(
                                true,
                            ),
                            disabled_support: Some(
                                true,
                            ),
                            data_support: Some(
                                true,
                            ),
                            resolve_support: Some(
                                CodeActionCapabilityResolveSupport {
                                    properties: [
                                        "edit",
                                    ],
                                },
                            ),
                            honors_change_annotations: Some(
                                true,
                            ),
                        },
                    ),
                    code_lens: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    document_link: Some(
                        DocumentLinkClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            tooltip_support: Some(
                                true,
                            ),
                        },
                    ),
                    color_provider: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    rename: Some(
                        RenameClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            prepare_support: Some(
                                true,
                            ),
                            prepare_support_default_behavior: Some(
                                Identifier,
                            ),
                            honors_change_annotations: Some(
                                true,
                            ),
                        },
                    ),
                    publish_diagnostics: Some(
                        PublishDiagnosticsClientCapabilities {
                            related_information: Some(
                                true,
                            ),
                            tag_support: Some(
                                TagSupport {
                                    value_set: [
                                        Unnecessary,
                                        Deprecated,
                                    ],
                                },
                            ),
                            version_support: Some(
                                false,
                            ),
                            code_description_support: Some(
                                true,
                            ),
                            data_support: Some(
                                true,
                            ),
                        },
                    ),
                    folding_range: Some(
                        FoldingRangeClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            range_limit: Some(
                                5000,
                            ),
                            line_folding_only: Some(
                                true,
                            ),
                            folding_range_kind: Some(
                                FoldingRangeKindCapability {
                                    value_set: Some(
                                        [
                                            Comment,
                                            Imports,
                                            Region,
                                        ],
                                    ),
                                },
                            ),
                            folding_range: Some(
                                FoldingRangeCapability {
                                    collapsed_text: Some(
                                        false,
                                    ),
                                },
                            ),
                        },
                    ),
                    selection_range: Some(
                        SelectionRangeClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    linked_editing_range: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    call_hierarchy: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    semantic_tokens: Some(
                        SemanticTokensClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            requests: SemanticTokensClientCapabilitiesRequests {
                                range: Some(
                                    true,
                                ),
                                full: Some(
                                    Delta {
                                        delta: Some(
                                            true,
                                        ),
                                    },
                                ),
                            },
                            token_types: [
                                SemanticTokenType(
                                    "namespace",
                                ),
                                SemanticTokenType(
                                    "type",
                                ),
                                SemanticTokenType(
                                    "class",
                                ),
                                SemanticTokenType(
                                    "enum",
                                ),
                                SemanticTokenType(
                                    "interface",
                                ),
                                SemanticTokenType(
                                    "struct",
                                ),
                                SemanticTokenType(
                                    "typeParameter",
                                ),
                                SemanticTokenType(
                                    "parameter",
                                ),
                                SemanticTokenType(
                                    "variable",
                                ),
                                SemanticTokenType(
                                    "property",
                                ),
                                SemanticTokenType(
                                    "enumMember",
                                ),
                                SemanticTokenType(
                                    "event",
                                ),
                                SemanticTokenType(
                                    "function",
                                ),
                                SemanticTokenType(
                                    "method",
                                ),
                                SemanticTokenType(
                                    "macro",
                                ),
                                SemanticTokenType(
                                    "keyword",
                                ),
                                SemanticTokenType(
                                    "modifier",
                                ),
                                SemanticTokenType(
                                    "comment",
                                ),
                                SemanticTokenType(
                                    "string",
                                ),
                                SemanticTokenType(
                                    "number",
                                ),
                                SemanticTokenType(
                                    "regexp",
                                ),
                                SemanticTokenType(
                                    "operator",
                                ),
                                SemanticTokenType(
                                    "decorator",
                                ),
                            ],
                            token_modifiers: [
                                SemanticTokenModifier(
                                    "declaration",
                                ),
                                SemanticTokenModifier(
                                    "definition",
                                ),
                                SemanticTokenModifier(
                                    "readonly",
                                ),
                                SemanticTokenModifier(
                                    "static",
                                ),
                                SemanticTokenModifier(
                                    "deprecated",
                                ),
                                SemanticTokenModifier(
                                    "abstract",
                                ),
                                SemanticTokenModifier(
                                    "async",
                                ),
                                SemanticTokenModifier(
                                    "modification",
                                ),
                                SemanticTokenModifier(
                                    "documentation",
                                ),
                                SemanticTokenModifier(
                                    "defaultLibrary",
                                ),
                            ],
                            formats: [
                                TokenFormat(
                                    "relative",
                                ),
                            ],
                            overlapping_token_support: Some(
                                false,
                            ),
                            multiline_token_support: Some(
                                false,
                            ),
                            server_cancel_support: Some(
                                true,
                            ),
                            augments_syntax_tokens: Some(
                                true,
                            ),
                        },
                    ),
                    moniker: None,
                    type_hierarchy: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    inline_value: Some(
                        DynamicRegistrationClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                        },
                    ),
                    inlay_hint: Some(
                        InlayHintClientCapabilities {
                            dynamic_registration: Some(
                                true,
                            ),
                            resolve_support: Some(
                                InlayHintResolveClientCapabilities {
                                    properties: [
                                        "tooltip",
                                        "textEdits",
                                        "label.tooltip",
                                        "label.location",
                                        "label.command",
                                    ],
                                },
                            ),
                        },
                    ),
                },
            ),
            window: Some(
                WindowClientCapabilities {
                    work_done_progress: Some(
                        true,
                    ),
                    show_message: Some(
                        ShowMessageRequestClientCapabilities {
                            message_action_item: Some(
                                MessageActionItemCapabilities {
                                    additional_properties_support: Some(
                                        true,
                                    ),
                                },
                            ),
                        },
                    ),
                    show_document: Some(
                        ShowDocumentClientCapabilities {
                            support: true,
                        },
                    ),
                },
            ),
            general: Some(
                GeneralClientCapabilities {
                    regular_expressions: Some(
                        RegularExpressionsClientCapabilities {
                            engine: "ECMAScript",
                            version: Some(
                                "ES2020",
                            ),
                        },
                    ),
                    markdown: Some(
                        MarkdownClientCapabilities {
                            parser: "marked",
                            version: Some(
                                "1.1.0",
                            ),
                            allowed_tags: None,
                        },
                    ),
                    stale_request_support: Some(
                        StaleRequestSupportClientCapabilities {
                            cancel: true,
                            retry_on_content_modified: [
                                "textDocument/semanticTokens/full",
                                "textDocument/semanticTokens/range",
                                "textDocument/semanticTokens/full/delta",
                            ],
                        },
                    ),
                    position_encodings: Some(
                        [
                            PositionEncodingKind(
                                "utf-16",
                            ),
                        ],
                    ),
                },
            ),
            experimental: None,
        },
        trace: Some(
            Off,
        ),
        workspace_folders: Some(
            [
                WorkspaceFolder {
                    uri: Url {
                        scheme: "file",
                        cannot_be_a_base: false,
                        username: "",
                        password: None,
                        host: None,
                        port: None,
                        path: "/c%3A/Users/mail/Documents/R/easystats/performance",
                        query: None,
                        fragment: None,
                    },
                    name: "performance",
                },
            ],
        ),
        client_info: Some(
            ClientInfo {
                name: "Positron",
                version: Some(
                    "1.90.0",
                ),
            },
        ),
        locale: Some(
            "en",
        ),
    },
)
[Info  - 5:04:23 PM] Initial indexing started
[Info  - 5:04:23 PM] Initialized(
    InitializedParams,
)
[Info  - 5:04:23 PM] DidOpenTextDocument(
    DidOpenTextDocumentParams {
        text_document: TextDocumentItem {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            language_id: "r",
            version: 1,
            text: "library(marginaleffects)\r\nlibrary(brms)\r\n\r\nmod_miss <- insight::download_model(\"brms_miss_1\")\r\n\r\nplot_slopes(mod_miss, \r\n   variables = \"woman\", \r\n   condition = \"age\")",
        },
    },
)
[Info  - 5:04:23 PM] DidChangeConfiguration(
    DidChangeConfigurationParams {
        settings: Object {
            "editor": Object {
                "insertSpaces": Bool(true),
            },
        },
    },
)
[Info  - 5:04:23 PM] DidChangeConfiguration(
    DidChangeConfigurationParams {
        settings: Object {
            "editor": Object {
                "indentSize": String("tabSize"),
            },
        },
    },
)
[Info  - 5:04:23 PM] DidChangeConfiguration(
    DidChangeConfigurationParams {
        settings: Object {
            "editor": Object {
                "tabSize": Number(4),
            },
        },
    },
)
[Info  - 5:04:23 PM] DidChangeConfiguration(
    DidChangeConfigurationParams {
        settings: Object {},
    },
)
[Info  - 5:04:23 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:04:23 PM] Initial indexing finished after 205ms
[Info  - 5:04:23 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:04:24 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:04:30 PM] DidOpenTextDocument(
    DidOpenTextDocumentParams {
        text_document: TextDocumentItem {
            uri: Url {
                scheme: "inmemory",
                cannot_be_a_base: false,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "/repl-r-8642a009-4cef-4f08-8259-025384acd2d0",
                query: None,
                fragment: None,
            },
            language_id: "r",
            version: 1,
            text: "",
        },
    },
)
[Info  - 5:04:32 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 0,
            character: 0,
        },
    },
)
[Info  - 5:04:32 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 1,
            character: 0,
        },
    },
)
[Info  - 5:04:33 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 1,
            character: 0,
        },
    },
)
[Info  - 5:04:33 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 2,
            character: 0,
        },
    },
)
[Info  - 5:04:37 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 3,
            character: 0,
        },
    },
)
[Info  - 5:04:37 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 4,
            character: 0,
        },
    },
)
[Info  - 5:04:40 PM] StatementRange(
    StatementRangeParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 1,
        },
        position: Position {
            line: 5,
            character: 0,
        },
    },
)
[Info  - 5:04:40 PM] DidChangeTextDocument(
    DidChangeTextDocumentParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 2,
        },
        content_changes: [
            TextDocumentContentChangeEvent {
                range: Some(
                    Range {
                        start: Position {
                            line: 7,
                            character: 21,
                        },
                        end: Position {
                            line: 7,
                            character: 21,
                        },
                    },
                ),
                range_length: Some(
                    0,
                ),
                text: "\r\n",
            },
        ],
    },
)
[Info  - 5:04:41 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:04:41 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:07:47 PM] GotoDefinition(
    GotoDefinitionParams {
        text_document_position_params: TextDocumentPositionParams {
            text_document: TextDocumentIdentifier {
                uri: Url {
                    scheme: "untitled",
                    cannot_be_a_base: true,
                    username: "",
                    password: None,
                    host: None,
                    port: None,
                    path: "Untitled-1",
                    query: None,
                    fragment: None,
                },
            },
            position: Position {
                line: 0,
                character: 17,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:07:47 PM] Completion(
    CompletionParams {
        text_document_position: TextDocumentPositionParams {
            text_document: TextDocumentIdentifier {
                uri: Url {
                    scheme: "untitled",
                    cannot_be_a_base: true,
                    username: "",
                    password: None,
                    host: None,
                    port: None,
                    path: "Untitled-1",
                    query: None,
                    fragment: None,
                },
            },
            position: Position {
                line: 8,
                character: 0,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
        context: Some(
            CompletionContext {
                trigger_kind: Invoked,
                trigger_character: None,
            },
        ),
    },
)
[Info  - 5:07:47 PM] Completion context: DocumentContext {
    document: Document {
        contents: [
            "library(marginaleffects)\r\nlibrary(brms)\r\n\r\nmod_miss <- insight::download_model(\"brms_miss_1\")\r\n\r\nplot_slopes(mod_miss, \r\n   variables = \"woman\", \r\n   condition = \"age\")\r\n",
        ],
        ast: {Tree {Node program (0, 0) - (8, 0)}},
    },
    node: {Node ) (7, 20) - (7, 21)},
    point: Point {
        row: 8,
        column: 0,
    },
    trigger: None,
}
[Info  - 5:07:48 PM] DidChangeTextDocument(
    DidChangeTextDocumentParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 3,
        },
        content_changes: [
            TextDocumentContentChangeEvent {
                range: Some(
                    Range {
                        start: Position {
                            line: 8,
                            character: 0,
                        },
                        end: Position {
                            line: 8,
                            character: 0,
                        },
                    },
                ),
                range_length: Some(
                    0,
                ),
                text: "P",
            },
        ],
    },
)
[Info  - 5:07:48 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:07:48 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:07:49 PM] DidChangeTextDocument(
    DidChangeTextDocumentParams {
        text_document: VersionedTextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
            version: 4,
        },
        content_changes: [
            TextDocumentContentChangeEvent {
                range: Some(
                    Range {
                        start: Position {
                            line: 8,
                            character: 0,
                        },
                        end: Position {
                            line: 8,
                            character: 1,
                        },
                    },
                ),
                range_length: Some(
                    1,
                ),
                text: "",
            },
        ],
    },
)
[Info  - 5:07:49 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
[Info  - 5:07:49 PM] DocumentSymbol(
    DocumentSymbolParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "untitled",
                cannot_be_a_base: true,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "Untitled-1",
                query: None,
                fragment: None,
            },
        },
        work_done_progress_params: WorkDoneProgressParams {
            work_done_token: None,
        },
        partial_result_params: PartialResultParams {
            partial_result_token: None,
        },
    },
)
juliasilge commented 4 months ago

(As an aside, if you'd like to in the future, it is possible to save logs as, say, example.log and then attach it to an issue.)

strengejacke commented 4 months ago

That's probably a good idea... Console R 4.4.1.log

strengejacke commented 4 months ago

Here's from the other computer. Again, it seems to be a bit faster after updating Positron, or maybe it's just because it's a fresh restart:

Setup

Positron Version: 2024.07.0 (system setup) build 2024.07.0-49 Code - OSS Version: 1.90.0 Commit: 677a0d0f0a4f5f9389507c079c8b9a67699d52fd Date: 2024-07-15T03:19:37.352Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Windows_NT x64 10.0.22631

Devtools log

workbench.js:1887 ------------------------------------------------------------------------
workbench.js:1889 Changing where the react-dom client.js file is loaded from.
workbench.js:1890 Original path: vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/../node_modules.asar/react-dom/umd/react-dom.production.min.js/client.js
workbench.js:1891 Adjusted path: vscode-file://vscode-app/c:/Program%20Files/Positron/resources/app/out/react-dom/client.js
workbench.js:1896 ------------------------------------------------------------------------
workbench.desktop.main.js:127467  INFO Started local extension host with pid 13584.
workbench.desktop.main.js:127457 DEBUG No new project configuration found in storage
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/terminal.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/notebook.rendering.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/remoteTunnelService.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/editSessions.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/sharedprocess.log
2workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG ComputeTargetPlatform: win32-x64
workbench.desktop.main.js:127477  WARN Skipping extension /c:/Users/Daniel/.positron/extensions/quarto.quarto-1.113.0-universal in favour of the builtin extension /c:/Program Files/Positron/resources/app/extensions/quarto.quarto.
workbench.desktop.main.js:127477  WARN [ms-python.python]: Cannot register 'python.venvPath'. This property is already registered.
workbench.desktop.main.js:127477  WARN [vscode.positron-r]: Cannot register 'positron.r.extraArguments'. This property is already registered.
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Extension ms-python.python has been registered for language runtime for language ID 'python'
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Extension vscode.positron-r has been registered for language runtime for language ID 'r'
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127467  INFO [perf] Render performance baseline is 102ms
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.positron-r/Positron%20R%20Extension.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/ptyhost.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/ms-python.python/Python.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.git/Git.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.github/GitHub.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.github-authentication/GitHub%20Authentication.log
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.positron-notebook-controllers/Positron%20Notebook%20Controllers.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/GitHub.vscode-pull-request-github/GitHub%20Pull%20Request.log
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/waderyan.gitblame/Git%20Blame.log
workbench.desktop.main.js:61148 [Extension Host] Error setting zotero library config: {"code":-32601,"message":"Unhandled method zotero_set_library_config"} (at console.<anonymous> (c:\Program Files\Positron\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:62217:26))
4workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'starting'
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension vscode.positron-r for language ID r
workbench.desktop.main.js:127467  INFO Language runtime 912077798d99e95f382c96e6337fbb96 (language: R name: R 4.4.1 version: 4.4.1) automatically starting. Source: Affiliated r runtime for workspace
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension ms-python.python for language ID python
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Activating extension vscode.positron-r for language ID r
workbench.desktop.main.js:127457 DEBUG [Ext host 0] Runtime manager for 'R 4.4.1': true
workbench.desktop.main.js:127457 DEBUG [Runtime startup] All extensions contributing language runtimes have been activated.
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'discovering'
workbench.desktop.main.js:127457 DEBUG [Ext host 0] Runtime manager for 'R 4.4.1': true
workbench.desktop.main.js:127457 DEBUG [Runtime startup] Phase changed to 'complete'
workbench.desktop.main.js:127457 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///c%3A/Users/Daniel/AppData/Roaming/Positron/logs/20240715T190209/window1/exthost/vscode.jupyter-adapter/Console%20R%204.4.1.log
workbench.desktop.main.js:127467  INFO Creating positron.variables client 'positron-variables-r-0-c5ccb62c'...
workbench.desktop.main.js:127467  INFO Creating positron.ui client 'positron-ui-r-1-27c6826a'...
workbench.desktop.main.js:127467  INFO Creating positron.help client 'positron-help-r-2-e4ddf63b'...
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:245251 Error refreshing variables: RPC timed out after 5 seconds: {"jsonrpc":"2.0","method":"list"}  Error (-32603)
c @ workbench.desktop.main.js:245251
workbench.desktop.main.js:350791 Dropping event 'ListReply' on comm positron-variables-r-0-c5ccb62c: undefined (No listeners for event 'ListReply'
(anonymous) @ workbench.desktop.main.js:350791
workbench.desktop.main.js:127457 DEBUG User data changed
2workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127487   ERR Error: Aborted onWillSaveTextDocument-event after 1750ms
    at workbench.desktop.main.js:443321:41
workbench.desktop.main.js:127467  INFO Extension host (LocalProcess pid: 13584) is unresponsive.
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 Debugger attached.
workbench.desktop.main.js:127467  INFO UNRESPONSIVE extension host: starting to profile NOW
workbench.desktop.main.js:127467  INFO Extension host (LocalProcess pid: 13584) is responsive.
workbench.desktop.main.js:127467  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
workerMain.js:262 The factory function of "vs/base/browser/window" has thrown an exception
defaultOnError @ workerMain.js:262
workerMain.js:263 ReferenceError: window is not defined
    at eval (profileAnalysisWorker.js:32:19)
    at Module._safeInvokeFunction (workerMain.js:1126:30)
    at Module._invokeFactory (workerMain.js:1145:17)
    at Module.complete (workerMain.js:1158:21)
    at ModuleManager._onModuleComplete (workerMain.js:1815:11)
    at ModuleManager._resolve (workerMain.js:1773:10)
    at ModuleManager.defineModule (workerMain.js:1382:9)
    at DefineFunc (workerMain.js:1864:18)
    at eval (profileAnalysisWorker.js:17:1)
    at anonymous (profileAnalysisWorker.js:5192:4)
defaultOnError @ workerMain.js:263
workerMain.js:264 Here are the modules that depend on it:
defaultOnError @ workerMain.js:264
workerMain.js:265 Array(0)
defaultOnError @ workerMain.js:265
workbench.desktop.main.js:127467  INFO Extension host (LocalProcess pid: 13584) is unresponsive.
workbench.desktop.main.js:365282 Extension Host
workbench.desktop.main.js:365283 Debugger attached.
workbench.desktop.main.js:127467  INFO UNRESPONSIVE extension host: starting to profile NOW
workbench.desktop.main.js:127467  INFO Extension host (LocalProcess pid: 13584) is responsive.
workbench.desktop.main.js:127467  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
workerMain.js:262 The factory function of "vs/base/browser/window" has thrown an exception
defaultOnError @ workerMain.js:262
workerMain.js:263 ReferenceError: window is not defined
    at eval (profileAnalysisWorker.js:32:19)
    at Module._safeInvokeFunction (workerMain.js:1126:30)
    at Module._invokeFactory (workerMain.js:1145:17)
    at Module.complete (workerMain.js:1158:21)
    at ModuleManager._onModuleComplete (workerMain.js:1815:11)
    at ModuleManager._resolve (workerMain.js:1773:10)
    at ModuleManager.defineModule (workerMain.js:1382:9)
    at DefineFunc (workerMain.js:1864:18)
    at eval (profileAnalysisWorker.js:17:1)
    at anonymous (profileAnalysisWorker.js:5192:4)
defaultOnError @ workerMain.js:263
workerMain.js:264 Here are the modules that depend on it:
defaultOnError @ workerMain.js:264
workerMain.js:265 Array(0)
defaultOnError @ workerMain.js:265
workbench.desktop.main.js:127457 DEBUG suggest.durations.json Object
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:127457 DEBUG User data changed
workbench.desktop.main.js:127457 DEBUG Comments: URIs of continue on comments to add to storage .

5-Positron Language Server R 4.4.1 (console).log

Console R 4.4.1.log