question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Combine rterm/rpath settings for different operating systems?

See original GitHub issue

We have separate settings for R paths on different platforms:

  • r.rpath.windows, r.rpath.mac, r.rpath.linux
  • r.rterm.windows, r.rterm.mac, r.term.linux

But as far as I can tell we don’t handle these differently in the code. We check the user’s OS, then choose the setting for that OS. So I think we could just have r.rpath and r.rterm. This would simplify things for the user (fewer settings) and for our code.

The downside to this change would be that a lot of users would already have those settings set. I think settings can be automatically migrated - I believe this was done recently when the vscode-jupyter extension was split out from the vscode-python extension. I could look into how they did it and see whether it seems practical. If the user has multiple of those settings set, we could show a message to ask them to choose which one to retain.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
renkun-kencommented, Mar 28, 2021

@andycraig You may also send PR to vscode-r-lsp and VSCode-R-Debugger since they share the same rterm and rpath settings.

0reactions
andycraigcommented, Mar 28, 2021

@renkun-ken Thank you for pointing out the use of the different settings to shared settings across multiple operating systems. I hadn’t thought of that so good to hear that there is/was a use case for them.

@ManuelHentschel Thank you for suggesting that approach. It sounds good to me too. Marking the OS-specific settings as deprecated for a while before removing them would give us a good fallback option, as you mention.

Sounds like we are happy with @ManuelHentschel’s method. I will have a go at implementing it. (If someone else wants to implement it instead, please feel very free to volunteer.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Combine rterm/rpath settings for different operating systems?
We have separate settings for R paths on different platforms: r.rpath.windows, r.rpath.mac, r.rpath.linux r.rterm.windows, r.rterm.mac, ...
Read more >
Supporting multiple operating system versions
This page describes how to make a driver package support different functionality on multiple operating system versions.
Read more >
Using Multiple Operating Systems on the Same Network
It can be challenging, but it is possible to combine Windows, Mac OS X, and Linux on the same network if that is...
Read more >
Building Go Applications for Different Operating Systems ...
In this tutorial, you will put together a sample application that joins strings together into a filepath, create and selectively include ...
Read more >
Transferring AutoCAD settings between different operating ...
Solution: Transferring settings will work correctly between different Windows systems. Any combination of 32- and 64-bit can be used.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found