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
Certain file types (.pdf and .docx) files will not open in the IDE on macOS Big Sur. #8506
Comments
|
I have the same issue (Mac os 11.0.1). It also affects html files. They will open in the editor but not in the browser. |
|
Same issue for me! I have no info to add, just want to make it known and receive notifications about this... |
|
Moving this issue into 1.4, seems like this is effecting lots of users. Also, comment from @jjallaire - If this also prevents PDF preview for R Markdown / Sweave from working then it definitely meets the bar (for 1.4). |
|
The problem is limited to files with spaces in the name. |
|
Note: This also includes .html, .xls, and .xlsx files with spaces in the name. So, probably anything that involves opening an external application, if there are spaces in the name. (Checked on MacOS Big Sur 11.1 Beta 20C5048k.) |
|
I experience with files with no spaces in the name, e.g., hw_forcats_lubridate.html
From: Ron Blum <notifications@github.com>
Reply-To: rstudio/rstudio <reply@reply.github.com>
Date: Wednesday, December 2, 2020 at 3:37 PM
To: rstudio/rstudio <rstudio@noreply.github.com>
Cc: Richard Ressler <rressler@american.edu>, Comment <comment@noreply.github.com>
Subject: Re: [rstudio/rstudio] Certain file types (.pdf and .docx) files will not open in the IDE on macOS Big Sur. (#8506)
External Email: Use caution with links and attachments.
Note: This also includes .html, .xls, and .xlsx files with spaces in the name. So, probably anything that involves opening an external application, if there are spaces in the name. (Checked on MacOS Big Sur 11.1 Beta 20C5048k.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/rstudio/rstudio/issues/8506*issuecomment-737481047__;Iw!!IaT_gp1N!ke9xHfuHfgp_05zixvZuuqIIXbEbtaRr41oNwjBJ7kghXiuWgvBsFtd2n99AHL3qKQ$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AOCMN3OTTU6PNTDMJPPR5ILSS2QPVANCNFSM4UJ7O67Q__;!!IaT_gp1N!ke9xHfuHfgp_05zixvZuuqIIXbEbtaRr41oNwjBJ7kghXiuWgvBsFtd2n98T_vrUZw$>.
|
|
@rressler: what is the full path to the file? Does that path contain any spaces (e.g. in your user name, project name, or elsewhere)? |
|
Kevin,
Yes there are spaces in the OneDrive connection. When I put an HTML file with no spaces in the name in the Users/rressler directory above that it works fine. If I then add a space in the filename, it does not work.
So as RonBlum pointed out, the spaces are an issue, and that is if they occur anywhere in the complete path/filename.
/Users/rressler/OneDrive - american.edu/Courses/STAT-412-612/Lectures_All/12_forcats-lubridate/a_factors.html
Thanks!
Richard
From: Kevin Ushey <notifications@github.com>
Reply-To: rstudio/rstudio <reply@reply.github.com>
Date: Wednesday, December 2, 2020 at 4:52 PM
To: rstudio/rstudio <rstudio@noreply.github.com>
Cc: Richard Ressler <rressler@american.edu>, Mention <mention@noreply.github.com>
Subject: Re: [rstudio/rstudio] Certain file types (.pdf and .docx) files will not open in the IDE on macOS Big Sur. (#8506)
External Email: Use caution with links and attachments.
@rressler<https://urldefense.com/v3/__https:/github.com/rressler__;!!IaT_gp1N!hRqa2Tt_IZEeEigZGyKMtHm4GS7URMbU7hHJlmksYXj43eFHGOe2E4Zrs1R7ZkuPyQ$>: what is the full path to the file? Does that path contain any spaces (e.g. in your user name, project name, or elsewhere)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/rstudio/rstudio/issues/8506*issuecomment-737518073__;Iw!!IaT_gp1N!hRqa2Tt_IZEeEigZGyKMtHm4GS7URMbU7hHJlmksYXj43eFHGOe2E4Zrs1TiAMsQtw$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AOCMN3O6AFFZYCSCU6THME3SS2ZJJANCNFSM4UJ7O67Q__;!!IaT_gp1N!hRqa2Tt_IZEeEigZGyKMtHm4GS7URMbU7hHJlmksYXj43eFHGOe2E4Zrs1R7cjO3LA$>.
|
|
Investigation in progress, some notes:
In this case that actual file is The code that loads files in this situation is here: rstudio/src/cpp/desktop/DesktopGwtCallback.cpp Lines 209 to 234 in 3ce9c7e
I tried a few obvious escaping strategies with no success (surround the path with quotes, put backslash in front of spaces). |
- Fixes #8506 - For reasons I couldn't quite figure out, the Mac-specific logic for opening external files (e.g. Word docs, PDFs) was failing when those paths contained spaces and no amount of escaping or otherwise helped. - The fix was to have Mac use the same code as other platforms for opening files; namely, QDesktopServices::openUrl() - This changes how PDFs are opening; instead of forcing them to always use Preview, they will now use whatever is registered in the system (e.g. Acrobat); there was a comment about problems with Acrobat 10, but Acrobat 10 is from 2010 and current version of Acrobat works fine
|
Confirmed in RStudio Desktop 1.4.1093 by open a file with .html, .docx, .xlsx, and .pdf files with spaces in the name, and .xlsx with a space in the parent directory's name. In addition, for .xlsx, also confirmed that Import Dataset is successful. |
System details
Steps to reproduce the problem
Describe the problem in detail
These 2 doc types (.docx + .pdf) appear inert in the IDE as selecting them from the files pane has no effect.
Describe the behavior you expected
Selecting either a .docx or .pdf file in the files pane opens it outside of the IDE.
Notes
The text was updated successfully, but these errors were encountered: