Skip to content
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

NewDevMod system (#5707) #5711

Merged
merged 6 commits into from
Oct 29, 2024
Merged

NewDevMod system (#5707) #5711

merged 6 commits into from
Oct 29, 2024

Conversation

RensDofferhoff
Copy link
Contributor

@RensDofferhoff RensDofferhoff commented Oct 18, 2024

This adds a new way to load a development module.
This will serve as a backup method in the future.

Allows developers to load a module directly from a libpath.
This means they can use Rstudio to build the module and its dependencies.

For example:
renv::activate() renv::restore() renv::install('.') .libPaths()
This will install a jasp module using renv and provide a libpath to give to jasp to load the module from. The libpath and name need to be specified in a new textboxes in the advanced settings menu.

Added ways to manually reload module using:
CTRL+SHIFT+D (reloads entire module)
CTRL+SHIFT+U (reloads only QML UI)
CTRL+SHIFT+R (reloads only R, reruns analysis but keeps current set options)
button in modules module to reload entire module

To get this to work on Mac we copy the libpath to tmp folder and do the otoolstuff patch magic that is now found in common/

@JorisGoosen JorisGoosen self-requested a review October 22, 2024 10:16
@JorisGoosen JorisGoosen force-pushed the newDevModSystem branch 3 times, most recently from 1e1944e to efc8be9 Compare October 24, 2024 09:47

std::string _system(std::string cmd)
{
const char *root, *relativePath;

if (!rbridge_requestTempFileName("log", &root, &relativePath))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that im saying you cant just use temp_directory_path, but im curious as to why.

Common/otoolstuff.cpp Outdated Show resolved Hide resolved
@JorisGoosen
Copy link
Contributor

The code looks good overall btw, ill test it some after the release and if we arent sinking into hotfixhell for the next month we'll probably merge it before @RensDofferhoff is back from vacation.

RensDofferhoff and others added 5 commits October 28, 2024 11:27
* New Devmod System (#5701)

* New dev module system (#5690)

* initial functional draft

* add ugly name thing for now

* fix some issues loading sepertly compiled modules on mac

* fix more mac specific issues

* add shortcuts for manual reload of devmodules , add safety copy to mac

---------

Co-authored-by: Rens <example>

* Update otoolstuff.cpp

* fix windows compile
Like the name and libpath of a direct libpath dev module
Copy link
Contributor

@JorisGoosen JorisGoosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ive made some changes to the GUI and some interactions, making things a bit prettier and userfriendly.

As far as Im concerned this is now all A-OK and can be merged.
Would be nice to have this in the release actually.

Maybe @boutinb wants to have a go though? (At reviewing that is)

@JorisGoosen JorisGoosen merged commit ddee9ba into development Oct 29, 2024
1 check passed
@JorisGoosen JorisGoosen deleted the newDevModSystem branch October 29, 2024 10:53
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.

2 participants