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

[4.4.1] Recent files in Windows Jump list cannot locate files correctly #6919

Closed
imonsei opened this issue Jan 5, 2020 · 25 comments
Closed
Labels
Status: Stale ⌛ This issue is over a year old. It might be obsolete or just needs a fresh set of eyes Type: Bug The code does not produce the intended behavior.

Comments

@imonsei
Copy link

imonsei commented Jan 5, 2020

Application version
4.4.1

Platform
Windows 10

Printer
Irrelevant

Reproduction steps

  1. Start cura
  2. Open a stl file
  3. Close cura
  4. Right click cura icon, either in start menu, or on taskbar
  5. Click one of the recent file entries

Screenshot(s)
Screenshot (40)

Actual results
Error message pops up asking user if file perhaps was moved

Expected results
Cura opens, loading file clicked in recent list.

Project file
Irrelevant

Log file
Did not find anything relevant in log file.

Additional information
I did make sure I hadn't changed the files or moved/deleted them.
In the cura application the "File->Open recent" entries function correctly.

@imonsei imonsei added the Type: Bug The code does not produce the intended behavior. label Jan 5, 2020
@rburema
Copy link
Member

rburema commented Jan 10, 2020

I can confirm this happens in 4.4, and that 4.3 works correctly.

This is going to be a difficult one, since this happens before Cura starts and the right file is clearly known to windows.Yet it's still probably somehow related to something we did, since 4.3 still works.

I've found where windows saves this information, but those file don't seem to do anything different between the versions at first glance at least.

@Ghostkeeper
Copy link
Collaborator

Maybe something to do with quotes and spaces in the file path?

@ninovanhooff
Copy link
Contributor

@goscicki
Copy link

I have been having this exact problem ever since I uninstalled all old versions of Cura prior to installing 4.5. I still have this problem with 4.6.1.

@rburema
Copy link
Member

rburema commented May 15, 2020

It's still on the bug backlog I'm afraid :-/

We'll pick it up at some point, though that might be a while (we've got a lot on our plates).

@goscicki
Copy link

Ok. I just thought it might be helpful to know that it stared when I removed old versions of Cura.

@rburema
Copy link
Member

rburema commented May 15, 2020

During the installation or afterwards?

@goscicki
Copy link

goscicki commented May 15, 2020

I uninstalled old versions (3.6 to 4.4) before installation. Then noticed the problem after installing the new version (4.5 at the time).

I believe I also checked the box to remove all configurations, because I had a corrupt configuration.

I even tried installing all old versions back to 4.2.1 and the problem persists on all versions 4.4 and newer.

@goscicki
Copy link

An interesting clue I just noticed by having all versions installed side by side...
2020-05-15
The file icons are missing on 4.4+, but also the program icon is missing on 4.4.

@evtrados
Copy link
Contributor

evtrados commented Oct 9, 2020

Hi @goscicki,

I think I've found the reason behind your issue. Since, indeed we had not changed anything in that part of the code, I did a little test of my own because the earliest version I had installed was Cura v4.3.0.
I first opened the file explorer and clicked on 'Quick Access', so that my recent files would be displayed at the bottom of the window. If you do that and select one of the .stl files it should either:

  • Open with Cura v4.3.0, or
  • Display the pop up window that asks you with which program you want to open this file with. There whatever Cura you choose it will still open it with 4.3.0.

That happens because in the registry the stl file opening is associated with all Cura versions you've installed, but it will open only with the earliest one (in your case 4.3.0). So, if you want to remove this registry associations completely you should open regedit as an administrator and then remove the following:

  • All the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltimakerCura.stl* folders. Multiple will exist, one for each version you had installed
  • All the HKEY_LOCAL_MACHINE\SOFTWARE\Classes.stl folders. Again there'll be one for each version you had installed on your system.

Now you'll need to right click on an .stl file and choose 'Open with' and then select the latest Cura you're using. After that's done, the recent files will be opening with the version you desire.
Let me know if that helps.

@rburema
Copy link
Member

rburema commented Oct 9, 2020

@evtrados Great! This one really stimied me. Can you add it to the change control board? I think we might need to discuss if we can solve problems like this in a version upgrade then.

@evtrados
Copy link
Contributor

evtrados commented Oct 9, 2020

Yes, I will add it to the board. As far as I investigated these entries are not deleted upon uninstall. The only one that gets deleted is the "actual" 'Open with..' association in HKEY_CLASSES_ROOT.stl\OpenWithProgids, so we might need to add the aforementioned ones as well.

@goscicki
Copy link

goscicki commented Oct 9, 2020

@evtrados Thank you! I haven't installed 4.7 yet because I'm almost done with a big important project. If I'm done tonight, I'll install 4.7 and delete those keys. I'll be sure to let you know how it goes. Thanks again!

@goscicki
Copy link

@evtrados Unfortunately the problem persists after following those steps. I should clarify. The problem doesn't seem to be with file associations, since Cura opens with clicking directly on a file. The problem is in the recent jump list on the windows task bar.

2020-10-10

@evtrados
Copy link
Contributor

Thanks for trying it out @goscicki and I'm sorry it still doesn't work for you.
Yes, I also focused on the recent jump list, but (in my case at least) I found out that these files were not found because they were associated with another (earlier) Cura version.
So just to check one thing, if you go to File Explorer --> Quick Access and double click on the TPI_v9.3mf file there, with which version of Cura does it open?

@goscicki
Copy link

That opens with 4.7 as expected.

@goscicki
Copy link

I should also note that I deleted the following keys and rebooted:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltimakerCura.stl* folders
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltimakerCura.3mf* folders
HKEY_LOCAL_MACHINE\SOFTWARE\Classes.stl folders
HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf folders
HKEY_CLASSES_ROOT.stl\OpenWithProgids
HKEY_CLASSES_ROOT.3mf\OpenWithProgids

@goscicki
Copy link

goscicki commented Oct 12, 2020

Got it! It took one last step. I deleted TPI_v9.3mf from the jump list, then reopened the file. That re-added it to the list correctly and it works now. @evtrados thank you so much for your help!

@evtrados
Copy link
Contributor

Glad that I could help @goscicki!!
And great that you got it working! :)

@goscicki
Copy link

goscicki commented Dec 19, 2020

Have the same problem after installing 4.8.

I noticed that HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf was still missing, so I added the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf]
@=".3mf.4.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf\OpenWithProgids]
".3mf.4.8"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf.4.8]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf.4.8\DefaultIcon]
@="C:\Program Files\Ultimaker Cura 4.8.0\Cura.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf.4.8\shell]
@="open"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf.4.8\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf.4.8\shell\open\command]
@=""C:\Program Files\Ultimaker Cura 4.8.0\Cura.exe" "%1""

I also found HKEY_CLASSES_ROOT\3mf_auto_file\shell\open\command was still set to "C:\Program Files\Ultimaker Cura 4.7\Cura.exe" "%1" and changed it to 4.8

Now files open with 4.8 however the jump list for 4.8 still does not work. But 4.7 still works fine. I am so confused. I even deleted the broken items from the jump list and rebooted like last time, but no success. I wish I knew where the jump lists are handled in the registry.

@goscicki
Copy link

Well, I found a solution for now by making this change:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes.3mf]
@="3mf_auto_file"

Now the jump list works on 4.8 but not on 4.7, which is ok for now. This is a somewhat confusing issue that I have never experienced with any other program.

@evtrados
Copy link
Contributor

Hmmm, it is a bit confusing indeed. I'll try to investigate why it happens. It's probably because there's something going wrong with assigning the latest version as default for all the file types.

@GregValiant GregValiant added Status: Needs Info Needs more information before action can be taken. Status: Stale ⌛ This issue is over a year old. It might be obsolete or just needs a fresh set of eyes labels Nov 22, 2024
@GregValiant
Copy link
Collaborator

I'm cleaning house.
Is this still an issue in current Cura versions (5.8.0 and up)? Can this be closed?

@imonsei
Copy link
Author

imonsei commented Nov 23, 2024

I'm cleaning house. Is this still an issue in current Cura versions (5.8.0 and up)? Can this be closed?

I do not know. I have stopped using Cura, so I am unable to assist with testing.

@github-actions github-actions bot removed the Status: Needs Info Needs more information before action can be taken. label Nov 23, 2024
@GregValiant
Copy link
Collaborator

I'll close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale ⌛ This issue is over a year old. It might be obsolete or just needs a fresh set of eyes Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

8 participants