Skip to content

„Quarto“: Edit button in Viewer pane returns error #14325

Closed

Description

@GegznaV

System details

RStudio Edition : Desktop [Open Source]
RStudio Version : 2023.12.1.402
OS Version      : Windows 10 x64 (build 19045)
R Version       : R version 4.3.2 (2023-10-31 ucrt)

Steps to reproduce the problem

In Viewer pane there is a button "Edit"
image

  1. Make rendered quarto HTML documents open in Viewer pane.
  2. Renter a document.
  3. Go to Viewer and press "Edit"

Describe the problem in detail

Window with error appears:
image

Describe the behavior you expected

The source document should be opened and brought to focus in the Editor pane.

Activity

  1. added
    new
    on Feb 25, 2024
  2. ronblum commented on Feb 26, 2024

    @ronblum
    Contributor

    @GegznaV Just to make sure—are there any special characters or space in the file path?

  3. added
    info needed
    and removed
    new
    on Feb 26, 2024
  4. ronblum commented on Feb 26, 2024

    @ronblum
    Contributor

    NEver mind—I can reproduce this out of the box with RStudio Desktop 2023.09.1+494, as well. It occurs both when the file is open and if it's closed after the rendering occurs. This isn't an issue on MacOS 14.3.

  5. added and removed
    info needed
    on Feb 26, 2024
  6. GegznaV commented on Feb 27, 2024

    @GegznaV
    Author

    Just ASCII symbols:
    image
    The user name (in expanded ~) also uses only ASCII.

  7. kevinushey commented on Feb 27, 2024

    @kevinushey
    Collaborator

    This sounds similar to #14174. Are you able to check whether the issue is resolved with the Quarto 1.5 prerelease?

  8. GegznaV commented on Feb 28, 2024

    @GegznaV
    Author

    I installed Quarto 1.5.22, restarted RStudio, Created a Quarto document, rendered it, and still have the same issue present.

  9. added this to the Chocolate Cosmos milestone on Mar 4, 2024
  10. ronblum commented on Mar 4, 2024

    @ronblum
    Contributor

    @kevinushey to investigate this as part of #14174.

  11. kevinushey commented on Mar 5, 2024

    @kevinushey
    Collaborator

    This is a Quarto bug:

    Request ID: -1887797653
    
    == REQUEST ======
    {
      "method": "open_document",
      "params": [
        "~/scratch/sql-copilot/<%- inputFile %>",
        "text",
        "UTF-8"
      ],
      "clientId": "5307b9bb-19a4-40fe-a323-ad6765311ce5",
      "clientVersion": "caf4e324c0587a24e55c6795212490f0a0a8662c"
    }
    
    == RESPONSE ======
    {
      "error": {
        "code": 100,
        "message": "Error occurred while executing method",
        "error": {
          "code": 2,
          "category": "system",
          "message": "No such file or directory",
          "location": "Error rstudio::session::modules::source::(anonymous namespace)::openDocument(const json::JsonRpcRequest &, json::JsonRpcResponse *) src/cpp/session/modules/SessionSource.cpp:317"
        }
      }
    }
    

    I'll see if we can work around it.

  12. olivroy commented on Mar 7, 2024

    @olivroy
    Contributor

    It seems to work in the latest daily! (2024.04.0+544) I wonder if the edit button could take us to the current position in the document? Like if I am seeing Section 3 in the viewer, could it take me to section 3 in the source document?

  13. kevinushey commented on Mar 7, 2024

    @kevinushey
    Collaborator

    @olivroy can you please file a separate feature request for that? Thanks!

  14. self-assigned this
    on Mar 8, 2024
  15. ronblum commented on Mar 11, 2024

    @ronblum
    Contributor

    Verified in

    • RStudio Desktop 2024.04.0-daily+558 on MacOS 14.4
    • RStudio Desktop 2024.04.0-daily+555.pro3 on Windows 11
    • Posit Workbench 2024.04.0-daily+555.pro3 on Ubuntu 22.04 via Chrome on MacOS 14.4

    Checked

    • Both Quarto document and Quarto presentation (revealjs)
    • Clicking on Edit shows the corresponding file in the Editor Pane
    • For presentations, the cursor lands at the start of the current slide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions