RStudio 不显示任何窗格
RStudio does not show any pane
上次更新后(我使用的是 Manjaro GNU/Linux 发行版)我在打开 RStudio 时看不到任何窗格。仅显示工具栏和带有用于打开新文件或现有文件、打开文件夹和保存文件的图标的按钮。
如果我转到“查看”->“窗格”并更改那里的选项,似乎什么也没有发生,或者打开了一个很小的 window,其中只有应用和确定按钮可见。如果选择了其他选项,例如。 File -> New File,出现一小段文字然后消失,之后什么也没有显示。同样,在打开应用程序时会立即出现一条消息,指示 RStudio window.program_mode = "desktop"。
如果从命令行终端打开RStudio,会出现以下错误信息:
Qt WebEngine resources not found at /share/qt/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt. Trying application directory...
Qt WebEngine resources not found at /usr/lib/qt/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/user/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /share/qt/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/lib/qt/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/user/.QtWebEngineProcess'
[0101/102738.515189:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available.
[0101/102738.515234:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available.
[0101/102738.515240:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available.
[0101/102738.515965:WARNING:resource_bundle_qt.cpp(117)] locale_file_path.empty() for locale
Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
"Invalid splitter position detected: 304/0"
到目前为止,我已经尝试重新安装 RStudio 和 qt,并删除 .rstudio-desktop/
,但没有成功,我无法弄清楚发生了什么。有什么想法吗?
我在 Arch 上遇到了同样的问题,并在错误报告中找到了这个解决方案:https://bugs.archlinux.org/task/64973
通过添加这个 /usr/lib/qt/libexec/qt.conf
解决了
[Paths]
Prefix = /usr/lib/qt
Data = /usr/share/qt
Translations = /usr/share/qt/translations
希望对其他人有所帮助。
上次更新后(我使用的是 Manjaro GNU/Linux 发行版)我在打开 RStudio 时看不到任何窗格。仅显示工具栏和带有用于打开新文件或现有文件、打开文件夹和保存文件的图标的按钮。
如果我转到“查看”->“窗格”并更改那里的选项,似乎什么也没有发生,或者打开了一个很小的 window,其中只有应用和确定按钮可见。如果选择了其他选项,例如。 File -> New File,出现一小段文字然后消失,之后什么也没有显示。同样,在打开应用程序时会立即出现一条消息,指示 RStudio window.program_mode = "desktop"。
如果从命令行终端打开RStudio,会出现以下错误信息:
Qt WebEngine resources not found at /share/qt/resources. Trying parent directory...
Qt WebEngine resources not found at /share/qt. Trying application directory...
Qt WebEngine resources not found at /usr/lib/qt/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/user/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /share/qt/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/lib/qt/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/user/.QtWebEngineProcess' [0101/102738.515189:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources.pak
Some features may not be available. [0101/102738.515234:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources_100p.pak
Some features may not be available. [0101/102738.515240:ERROR:resource_bundle.cc(887)] Failed to load /home/user/.QtWebEngineProcess/qtwebengine_resources_200p.pak
Some features may not be available. [0101/102738.515965:WARNING:resource_bundle_qt.cpp(117)] locale_file_path.empty() for locale
Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
"Invalid splitter position detected: 304/0"
到目前为止,我已经尝试重新安装 RStudio 和 qt,并删除 .rstudio-desktop/
,但没有成功,我无法弄清楚发生了什么。有什么想法吗?
我在 Arch 上遇到了同样的问题,并在错误报告中找到了这个解决方案:https://bugs.archlinux.org/task/64973
通过添加这个 /usr/lib/qt/libexec/qt.conf
解决了[Paths]
Prefix = /usr/lib/qt
Data = /usr/share/qt
Translations = /usr/share/qt/translations
希望对其他人有所帮助。