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
New installation of Preview ignores indentation settings in existing project #4366
Comments
No, indentation in the project was set to 4 spaces, that’s what I meant by RStudio ignoring the project settings. I should add that when I saw it was 4 in the project settings, I erased the value, put it on 4 again and saved the project, but that did not fix the bug. Only changing it to a different number, saving it, and then changing it back to 4 fixed it. I do also have Auto-detect code indentation turned off, but my understanding is that it shouldn’t have mattered anyway, its tooltip said that this should only apply to files that are not part of any project. In any case, having it on or off did not change anything about this bug. |
Having the same issue: see my post here on Rstudio community |
I'm still not able to reproduce. The project-specific indentation setting appears to take effect as expected. One possibility: was this a project that was moved or relocated previously? Are there multiple |
Hi Kevin, For me, I never moved the projects from their old locations (and even if I did, that doesn't change the contents of the Rproj file). There is only one Rproj file in each folder, and it contains the right number of spaces:
|
Unfortunately, we don't have any other reports of this in the wild and cannot reproduce locally so we'll be unable to fix this for v1.2-patch. Moving to v1.3 unless we can get more information. |
That's fair. When I find the issue again I will send the file that's causing it to your team; if it's a rare issue then maybe it's something about my files and some unicode characters I use in them. |
I've also been experiencing this issue whenever working in a project for the last few months. I've seen it on two different Windows 7 machines and, as of today, on a Windows 10 machine with RStudio 1.2.1578. I used to get 2 spaces instead of my global setting of 5, and more recently I've gotten 7 spaces (maybe that's 2 + 5?). However, it looks like disabling the |
Closing this since the original issue was never reproduced. @aosmith16 If you have a reproducible example in which the Auto-detect feature doesn't work as it should, could you open it separately? A zipfile with a project that gets the wrong tab width detected (and applied over a specific tab width set in Project Options) would be very helpful. |
I'm having exactly this same problem now. |
This is happening to me as well and has been happening for quite some time. It happens in several projects, on both Windows and Fedora. |
System details
Describe the problem in detail
RStudio Preview does not load indentation settings from projects correctly.
Steps to reproduce the problem
iris %>% [RETURN] plot()
. It will only indent to 2 spaces.Describe the behavior you expected
Indentation should be loaded correctly from a project.
The text was updated successfully, but these errors were encountered: