Invalid archive files
Hi when downloading from component search engine (e.g. a 741 amp ) I receive the following errors -
[INFO] Started watching "/Users/peckc/Downloads"
[INFO] Active formats:
[INFO] zip => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
[INFO] Detected "/Users/peckc/Downloads/LIB_UA741CDRG4.zip.download/LIB_UA741CDRG4.zip"
[ERROR] Zip(InvalidArchive("Could not find central directory end"))
[INFO] Detected "/Users/peckc/Downloads/LIB_UA741CDRG4.zip.download/LIB_UA741CDRG4.zip"
[ERROR] Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
[INFO] Detected "/Users/peckc/Downloads/LIB_UA741CDRG4.zip.download/LIB_UA741CDRG4.zip"
[ERROR] Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Running macosMonteray 12.1 x86_64
[Edited by olback - fixed formatting]
This is configured to watch for zip files which I would then like to import to KiCad
I have the sam issue as cvpeck, it seems that if recursive watching is disabled it can't even detect the .zip.
Also running Running macOS Monteray 12.1 on ARM
The path /Users/peckc/Downloads/LIB_UA741CDRG4.zip.download/LIB_UA741CDRG4.zip seems odd to me. What browser are you using?
LL watches a folder for file creations and waits some time for the file to be written, then proceeds. If the file is renamed before the download finishes, it'll not work.
I’m on macOS using safari x86. I think downloads get a .download extension until they are complete.
Sent from my iPhone
On 9 Feb 2022, at 9:45 pm, Edwin @.***> wrote:
The path /Users/peckc/Downloads/LIB_UA741CDRG4.zip.download/LIB_UA741CDRG4.zip seems odd to me. What browser are you using?
LL watches a folder for file creations and waits some time for the file to be written, then proceeds. If the file is renamed before the download finishes, it'll not work.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
I have implemented a fix but I have no way of testing it as I don't actually have a Mac.
git pull
git checkout safari-fix
./macos-compile.sh
I’ll test it and get back to you
Sent from my iPad
On 19 Feb 2022, at 9:10 am, Edwin @.***> wrote:
I have implemented a fix but I have no way of testing it as I don't actually have a Mac.
git pull git checkout safari-fix ./macos-compile.sh — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Ok, using the above build, it seems the zip files aren't detected at all
[INFO] Started watching "/Users/peckc/Downloads" [INFO] Active formats: [INFO] zip => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
Is there any detailed logging I can send you?
Adding a seperate entry to watch for KiCad files then extracting the zip and adding the *.epw file to the downloads folder also does not produce any output
[INFO] Started watching "/Users/peckc/Downloads"
[INFO] Active formats:
[INFO] zip => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
[INFO] kicad => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
Yeah, if you remove the --release flag in the script, there may be more output.
No change other than a few warnings on compilation -
Compiling library-loader-gui v0.3.1 (/Users/peckc/Documents/KiCad/library-loader/ll-gui) warning: unused variable:u--> ll-gui/src/main.rs:48:13 | 48 | let u = Ui::new(app, config, config_path.clone()); | ^ help: if this is intentional, prefix it with an underscore:_u| = note:#[warn(unused_variables)]` on by default
warning: variant is never constructed: UpdateAvailable
--> ll-gui/src/ui/event.rs:8:5
|
8 | UpdateAvailable,
| ^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: associated function is never used: check_logged_in
--> ll-gui/src/ui/mod.rs:274:12
|
274 | pub fn check_logged_in(&self) {
| ^^^^^^^^^^^^^^^
warning: associated function is never used: check_updates
--> ll-gui/src/ui/mod.rs:290:12
|
290 | pub fn check_updates(&self) {
| ^^^^^^^^^^^^^
warning: library-loader-gui (bin "library-loader-gui") generated 4 warnings
Finished dev [unoptimized + debuginfo] target(s) in 6.90s`
git reset --hard
git pull
cargo run --bin library-loader-gui
I added more debug logging, should show way more information now.
[INFO] Started watching "/Users/peckc/Downloads"
[INFO] Active formats:
[INFO] zip => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
[INFO] kicad => "/Users/peckc/Documents/KiCadLibraries/ComponentSearchEngine"
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Create(Folder), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Any)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Extended)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Create(File), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Extended)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Data(Content)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Create(File), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Name(From)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Extended)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Data(Content)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Name(From)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Create(Folder), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Remove(Folder), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Any)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Extended)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip.download"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
[TRACE] RAW EVENT: Ok(NotifyResult(Ok(Event { kind: Modify(Metadata(Extended)), paths: ["/Users/peckc/Downloads/schematic-symbol-and-pcb-footprint.zip"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None })))
On 22 Feb 2022, at 9:09 am, Edwin @.***> wrote:
git reset --hard git pull cargo run --bin library-loader-gui I added more debug logging, should show way more information now.
— Reply to this email directly, view it on GitHub https://github.com/olback/library-loader/issues/72#issuecomment-1047274711, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUE5RC4LLGIXNHAKRT3MZLU4K5I3ANCNFSM5MI3EVYA. You are receiving this because you authored the thread.
Hmm. Looks tricky.
There does not seem to be any Create or Rename events with proper file paths.