Skip to content

alternate mechanism for R_ResetConsole on Windows - #10510

Merged
kevinushey merged 3 commits into
mainfrom
feature/windows-reset-console-v2
Feb 8, 2022
Merged

kevinushey merged 3 commits into
mainfrom
feature/windows-reset-console-v2

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Intent

R Core is currently exploring an alternate mechanism for introducing the R_ResetConsole hook on Windows; in particular, a change that would be binary-compatible with previous releases of R.

This PR supports the use of the ptr_R_ResetConsole hook when available on Windows.

It also bundles some changes to speed up incremental compilation of RStudio in development builds on Windows. In particular, linking to crashpad required compile time code generation, which precludes the use of incremental linking.

Approach

Because we can't rely on this hook being available with older versions of R, we instead dynamically load and set the symbol when initializing R.

Automated Tests

N/A

QA Notes

N/A

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@kevinushey
kevinushey merged commit 6c0225b into main Feb 8, 2022
@kevinushey
kevinushey deleted the feature/windows-reset-console-v2 branch February 8, 2022 21:51
matheustavaresdev added a commit that referenced this pull request Feb 9, 2022
…on-test

* 'main' of github.com:rstudio/rstudio:
  Fix duplicate menu separators (#10533)
  use RSTUDIO_CLI_HYPERLIKNS env var
  Mention issue number in NEWS.
  stamp version into Electron app (macOS)
  fix NEWS
  fix NEWS year
  produce separate UTF-8 rsession binary for ucrt builds (#10524)
  Check if load from base is masked before calling load workspace
  alternate mechanism for R_ResetConsole on Windows (#10510)
  rotate news files (#10528)
  Move old NEWS versions in version/news subdirectory
  Change name back to NEWS.md
  Add RSW section
  Add version numbering to NEWS file to avoid further conflicts/overwrites
  Remove GO NEWS files
  NEWS for Spotted Wakerobin only
  Support ansi hyperlinks (#10416)
  Update to Quarto v0.3.114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant