diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-04-18 21:08:23 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-04-18 21:08:23 +0200 |
| commit | 3e77e8f1572cad3ea28cd1e4b17bc12d7e99fcfb (patch) | |
| tree | 86c1c3705e48d9560be89a66212219f0d4b00d1d /patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch | |
| parent | d4f09d444c1f4206eeb9f26859666be29e808511 (diff) | |
patches: Update rstudio-server-multi-version patches.
Replace the patches with newer versions suitable for version
2023.06.1+524 of rstudio-server.
* patches/rstudio-server-multi-version/0001-handleClientInit-Store-R-versions-in-sessionInfo.patch,
patches/rstudio-server-multi-version/0002-sessionProcessConfig-Configure-R-version-from-active.patch,
patches/rstudio-server-multi-version/0003-NewProjectWizard-Unhide-version-selector-widget.patch,
patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch,
patches/rstudio-server-multi-version/0005-Add-version-switcher-widget-to-toolbar.patch,
patches/rstudio-server-multi-version/0006-Look-at-.local-share-rstudio-r-versions-for-custom-R.patch,
patches/rstudio-server-multi-version/0007-detectRLocationsUsingR-Restore-R_HOME-at-the-end.patch: Replace.
Diffstat (limited to 'patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch')
| -rw-r--r-- | patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch b/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch index 0cd1c7c..260fdd5 100644 --- a/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch +++ b/patches/rstudio-server-multi-version/0004-handleConnection-Switch-R-version-when-switching-pro.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 54e7fb9c835b3ec8afcb5db55b03a8ead3ff6088 Mon Sep 17 00:00:00 2001 | 1 | From 18e50173670e22fc14eb64d999745f87d544d047 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ricardo Wurmus <rekado@elephly.net> | 2 | From: Ricardo Wurmus <rekado@elephly.net> |
| 3 | Date: Sat, 19 Dec 2020 00:57:26 +0100 | 3 | Date: Sat, 19 Dec 2020 00:57:26 +0100 |
| 4 | Subject: [PATCH 4/7] handleConnection: Switch R version when switching | 4 | Subject: [PATCH 4/7] handleConnection: Switch R version when switching |
| @@ -13,18 +13,18 @@ project switch back to the default. | |||
| 13 | 2 files changed, 30 insertions(+), 5 deletions(-) | 13 | 2 files changed, 30 insertions(+), 5 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/src/cpp/session/SessionHttpMethods.cpp b/src/cpp/session/SessionHttpMethods.cpp | 15 | diff --git a/src/cpp/session/SessionHttpMethods.cpp b/src/cpp/session/SessionHttpMethods.cpp |
| 16 | index 2fd08c028b..3e66f13dd7 100644 | 16 | index a90648c23c..e5d1cabcc2 100644 |
| 17 | --- a/src/cpp/session/SessionHttpMethods.cpp | 17 | --- a/src/cpp/session/SessionHttpMethods.cpp |
| 18 | +++ b/src/cpp/session/SessionHttpMethods.cpp | 18 | +++ b/src/cpp/session/SessionHttpMethods.cpp |
| 19 | @@ -2,6 +2,7 @@ | 19 | @@ -2,6 +2,7 @@ |
| 20 | * SessionHttpMethods.hpp | 20 | * SessionHttpMethods.hpp |
| 21 | * | 21 | * |
| 22 | * Copyright (C) 2021 by RStudio, PBC | 22 | * Copyright (C) 2022 by Posit Software, PBC |
| 23 | + * Copyright (C) 2020 Ricardo Wurmus | 23 | + * Copyright (C) 2020-2025 Ricardo Wurmus |
| 24 | * | 24 | * |
| 25 | * Unless you have received this program directly from RStudio pursuant | 25 | * Unless you have received this program directly from Posit Software pursuant |
| 26 | * to the terms of a commercial license agreement with RStudio, then | 26 | * to the terms of a commercial license agreement with Posit Software, then |
| 27 | @@ -667,6 +668,33 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, | 27 | @@ -692,6 +693,33 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, |
| 28 | activeSession().setWorkingDir(projDir); | 28 | activeSession().setWorkingDir(projDir); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| @@ -58,7 +58,7 @@ index 2fd08c028b..3e66f13dd7 100644 | |||
| 58 | if (options().switchProjectsWithUrl()) | 58 | if (options().switchProjectsWithUrl()) |
| 59 | { | 59 | { |
| 60 | r_util::SessionScope scope; | 60 | r_util::SessionScope scope; |
| 61 | @@ -721,10 +749,6 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, | 61 | @@ -744,10 +772,6 @@ void handleConnection(boost::shared_ptr<HttpConnection> ptrConnection, |
| 62 | { | 62 | { |
| 63 | FilePath projFile = resolveAliasedPath(switchToProject); | 63 | FilePath projFile = resolveAliasedPath(switchToProject); |
| 64 | std::string projDir = createAliasedPath(projFile.getParent()); | 64 | std::string projDir = createAliasedPath(projFile.getParent()); |
| @@ -70,10 +70,10 @@ index 2fd08c028b..3e66f13dd7 100644 | |||
| 70 | module_context::sharedProjectScratchPath(), | 70 | module_context::sharedProjectScratchPath(), |
| 71 | version, | 71 | version, |
| 72 | diff --git a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 72 | diff --git a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 73 | index 71ce880487..63937c4806 100644 | 73 | index ec76b2cb55..f8a5b7f3b1 100644 |
| 74 | --- a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 74 | --- a/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 75 | +++ b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java | 75 | +++ b/src/gwt/src/org/rstudio/studio/client/projects/Projects.java |
| 76 | @@ -1127,7 +1127,8 @@ public class Projects implements OpenProjectFileEvent.Handler, | 76 | @@ -1136,7 +1136,8 @@ public class Projects implements OpenProjectFileEvent.Handler, |
| 77 | { | 77 | { |
| 78 | // perform quit | 78 | // perform quit |
| 79 | applicationQuit_.performQuit(null, saveChanges, | 79 | applicationQuit_.performQuit(null, saveChanges, |
| @@ -84,5 +84,5 @@ index 71ce880487..63937c4806 100644 | |||
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | -- | 86 | -- |
| 87 | 2.33.0 | 87 | 2.49.0 |
| 88 | 88 | ||
