Controller script loader always uses local copy

Bug #1520047 reported by Sean M. Pappalardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
High
Owen Williams

Bug Description

As I update controller scrips, I'm editing the file in /res/controllers and running Mixxx with --resourcePath res/

I repeatedly tell it to reload the preset (choosing the second of the same name in the list because I know the first is my local copy) and the XML is updated correctly, but if a copy of the JS file is in my ~/.mixxx directory, it uses that regardless. I have to manually delete that copy in order for it to try using the copy in res/.

This is serious because it will cause all kinds of problems when users try to load updated presets after upgrading.

Revision history for this message
Owen Williams (ywwg) wrote :

if we already do the right thing with respect to XML, then we should definitely fix this for js.

Revision history for this message
Owen Williams (ywwg) wrote :

which preset? There is code that is supposed to do the right thing in dlgprefcontroller.cpp:380.

Revision history for this message
Owen Williams (ywwg) wrote :

reproduced, working on this now

Changed in mixxx:
status: New → In Progress
assignee: nobody → Owen Williams (ywwg)
Revision history for this message
Owen Williams (ywwg) wrote :

So the problem is that when the user picks an item from the preset menu, the listitem contains the full path of the preset to import -- either the user's preset, or the system preset. But the scripts are loaded dynamically, and it looks first in the user's dir, and if it finds the script, it's done.

To fix this, we have to know which preset they are loading and load the script from the same path.

Should we put up a warning box when presets are loaded, indicating that users might lose customization?

Revision history for this message
Owen Williams (ywwg) wrote :

oh, hah, we increment the filename, no need to warn the user

Revision history for this message
Owen Williams (ywwg) wrote :
Changed in mixxx:
status: In Progress → Fix Committed
Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

Sweet, thanks for the quick fix!

RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/8339

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.