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

files displayed as empty in Rproject with Encoding #11153

Closed
4 tasks done
brry opened this issue May 7, 2022 · 3 comments
Closed
4 tasks done

files displayed as empty in Rproject with Encoding #11153

brry opened this issue May 7, 2022 · 3 comments

Comments

@brry
Copy link

brry commented May 7, 2022

System details

RStudio 2022.02.2+485 "Prairie Trillium" Release (8acbd38, 2022-04-19) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

Steps to reproduce the problem

Create this .Rproj file:

Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: ISO8859-1

RnwWeave: knitr
LaTeX: pdfLaTeX

Describe the problem in detail

Open any R, Rnw or .md file (and probably others) and it is displayed as being empty.
My particular .Rprofile file does get displayed with content.

Potentially related to (or even solving?) #2231
I am not sure if this is a separate bug (or one at all).

Solution

I changed the line

Encoding: UTF-8

and everything works as expected.

I don't know where the encoding came from, but the project is in a dropbox folder and I may have opened it on my MacBook. Dropbox has no versions tracked for this .Rproj file (for whatever reason) and it is in .gitignore to keep the repo page short, so I can't check.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@ronblum
Copy link
Contributor

ronblum commented May 12, 2022

@brry Thank you for raising this! I haven't been able to reproduce this yet, but I'll try a couple more things. Regarding Encoding: ISO8859-1, this could be if the file was first created on MacOS.

@ronblum
Copy link
Contributor

ronblum commented May 12, 2022

Triage: Could this be related to #1623? This might be a regression.

@mikebessuille
Copy link
Contributor

Duplicate of #11206 which is being fixed in Spotted Wakerobin (2022.06) and will be backported to Prairie Trillium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants