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

All mappings are suddenly lost #457

Open
cutlasses opened this issue Apr 28, 2024 · 12 comments
Open

All mappings are suddenly lost #457

cutlasses opened this issue Apr 28, 2024 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@cutlasses
Copy link

cutlasses commented Apr 28, 2024

Describe the bug
After using the plug-in and entering in many LCSC values the mappings, the mappings I've entered have disappeared. If I click Mappings I can see the part mappings are there but they don't appear on the main menu, and when I generate the files the csvs are empty. I tried to import from a previously exported csv and it loaded the mappings correctly, but they still didn't appear in the main screen.

To Reproduce
The method to reproduce is not known to me, I just used the plug-in and the mappings were lost. It might be related to switching context. I find it's possible to accidentally open multiple copies of this plug-in, because it doesn't appear on task bar. MacBook M1 Pro Sonoma 14.4

image image

Expected behavior
Mappings to stay until I delete them.

KiCad Version

Application: KiCad PCB Editor arm64 on arm64

Version: 8.0.1, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.13.2
	HarfBuzz 8.3.0
	FontConfig 2.15.0
	libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0

Platform: macOS Sonoma Version 14.4 (Build 23E214), 64 bit, Little endian, wxMac

Build Info:
	Date: Mar 14 2024 13:30:33
	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.84.0
	OCC: 7.7.2
	Curl: 7.87.0
	ngspice: 42
	Compiler: Clang 14.0.3 with C++ ABI 1002

Build settings:
@zeitkunst
Copy link

I also am having this problem on an upgrade to the latest release version, using KiCAD 7.0.9. I downgraded to 2023.09 and the parts and mappings came back. I will remain on 2023.09 until this bug is fixed.

@cutlasses
Copy link
Author

I also am having this problem on an upgrade to the latest release version, using KiCAD 7.0.9. I downgraded to 2023.09 and the parts and mappings came back. I will remain on 2023.09 until this bug is fixed.

Presumably to go back a version you need to fetch through Git directly, rather than using KiCad's "Plugin and Content Manager"?

@zeitkunst
Copy link

zeitkunst commented Apr 29, 2024

I also am having this problem on an upgrade to the latest release version, using KiCAD 7.0.9. I downgraded to 2023.09 and the parts and mappings came back. I will remain on 2023.09 until this bug is fixed.

Presumably to go back a version you need to fetch through Git directly, rather than using KiCad's "Plugin and Content Manager"?

I first removed the new version, and then I downloaded the 2023.09 version from the Releases section here on Github, so yes, I didn't use KiCAD's Plugin and Content Manager.

@cutlasses
Copy link
Author

I also am having this problem on an upgrade to the latest release version, using KiCAD 7.0.9. I downgraded to 2023.09 and the parts and mappings came back. I will remain on 2023.09 until this bug is fixed.

Presumably to go back a version you need to fetch through Git directly, rather than using KiCad's "Plugin and Content Manager"?

I first removed the new version, and then I downloaded the 2023.09 version from the Releases section here on Github, so yes, I didn't use KiCAD's Plugin and Content Manager.

Thanks!

@cutlasses
Copy link
Author

Sadly that didn't work for me. I downloaded 2023.09 but the LCSC values didn't come back.

@cutlasses
Copy link
Author

cutlasses commented Apr 30, 2024

I typed all of the LCSCs in again and lost them again, so I'll wait for this bug to be fixed before using again. This time it happened when closing the PCB editor and re-opening (even though I'd clicked "Save Mappings"). EDIT this occurred with the latest code, when reverting to 2023.09 didn't fix anything for me I went back to latest.

@Bouni
Copy link
Owner

Bouni commented Jul 4, 2024

I have a rough idea whats the problem but I'm not sure what going on.

The 3 databases (parts, totations, mappings) are stored under the plugin forlder in jlcpcb:

.\jlcpcb\
├── mappings.db
├── parts-fts5.db
└── rotations.db

In order to update a plugin installed via PCM you need to remove it first, which deletes the entire folder and therefore the databases as well.

I don't know if theres a place to store data "persistent" so that it survices an update ...

@Bouni Bouni added the bug Something isn't working label Jul 4, 2024
@cutlasses
Copy link
Author

Is your hypothesis that the loss of mappings will only occur if you install/update a plug-in? I don't think that was the case for me.

@Bouni
Copy link
Owner

Bouni commented Jul 10, 2024

@cutlasses Then I don't have an explanation what happened ...

You can export your mapping an import them, just in case this happens again.
AS I have no idea what happend, this is the only solution I can offer for the moment

@cutlasses
Copy link
Author

@Bouni could the issue be pressing the launch icon whilst the app is already running? I do all my KiCad work on my laptop with limited screen real-estate. The JLC exporter doesn't appear under the Windows list in KiCad, so I'm often losing it, and I've sometimes just pressed the launch icon again to switch to it. Could that be launching 2 instances and causing issues?

I'm annotating another board. I'm regularly saving mappings, and exporting back to the schematic. No issues so far..

@cutlasses
Copy link
Author

I entered all my LCSC parts and generated the files but noticed there was no BOM file. I tried updating the plugin and lost my values (which could be the issue you mentioned before). I'm trying to import my saved ones. It loads them to the Import menu, but they don't appear in the main list. Am I doing something wrong?

image

@Bouni
Copy link
Owner

Bouni commented Jul 25, 2024

As far as I remember (I know this is embarrassing 😅) mappings are not loaded automatically from the mappings table!
You have to right click on a part and use the "Find LCSC from mappings" function:

grafik

You can do that for multiple parts by using the select alike function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants