# Kaju ZipShell.Completed Doesn't Fire

**URL:** <https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050>\
**Category:** Extras\
**Created:** [February 8, 2021, 7:18pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050 "2021-02-08T19:18:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 7:18pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/1 "2021-02-08T19:18:21Z")

</div>

Kaju downloads my update OK and calls the shell command for unzipping, but ZipShell.Completed never fires and the system never goes past the “Processing” stage. Here’s the shell command:

`/usr/bin/ditto -x -k /var/folders/ps/mpybq_x88xjcv900r6b323yr0000gp/T/com.company.appname\-temp1062648810/My\ App\ Name.app.zip /var/folders/ps/mpybq_x88xjcv900r6b323yr0000gp/T/com.company.appname\-temp1062648810/decompressed`

Are the spaces in my app’s name an issue? If I paste the command into Terminal it seems to execute without errors.

Nothing happens with Kaju after the shell command is executed, but my app continues working. If I halt execution, the zipper’s properties are

![image](https://forum.xojo.com/uploads/default/original/2X/5/50bf04618d3bb7deb074a322008d8c6fef5578ab.png)

Both FolderItems look correct and Exist.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:28pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/2 "2021-02-08T19:28:56Z")

</div>

What OS and hardware? Is the M1 processor?

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:32pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/3 "2021-02-08T19:32:54Z")

</div>

Oh wait, the Mode = 0, but should be 1 (or 2, I don’t recall).

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 7:34pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/4 "2021-02-08T19:34:12Z")

</div>

Mojave and Intel MacBook. Just tested it remotely under 64-bit Windows 10 and seems to be doing the same thing, although downloading took a lot longer than here on the MacBook.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:38pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/5 "2021-02-08T19:38:48Z")

</div>

Mode should be 1 (Asynchronous). I think something happened when the Kaju classes were imported into your project.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 7:40pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/6 "2021-02-08T19:40:37Z")

</div>

I just dragged them from the demo app to my app in Xojo 2020r2.1. The demo app _does_ work.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:44pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/7 "2021-02-08T19:44:46Z")

</div>

To be clear, from the open project, not the files in the directory?

Try deleting the Kaju folder from your ~~folder~~ project, then copy and paste from the Sample app.

Either way, that Shell mode should be set to Asynchronous.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 7:48pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/8 "2021-02-08T19:48:33Z")

</div>

Yes, the entire “Kaju Classes” folder was dragged from one Xojo IDE window to another, not from the Finder.

Deleted the Kaju Classes folder and then did copy-paste; same result.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:49pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/9 "2021-02-08T19:49:41Z")

</div>

OK, change the shell mode manually via the Inspector and it should work.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 7:53pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/10 "2021-02-08T19:53:24Z")

</div>

Yup, I can reproduce this, and it’s a Xojo bug. I’ll file the Feedback.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 7:59pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/11 "2021-02-08T19:59:28Z")

</div>

> [@Kem\_Tekinay](#):
>
> OK, change the shell mode manually via the Inspector and it should work.

So I want to change the zipShell’s property before Decompress is called, yes? It has two “mode” properties: ExecuteMode and Mode. I’m changing Mode?

Neither is editable in the debugger, I’ll have to insert code.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 8:08pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/12 "2021-02-08T20:08:45Z")

</div>

This in hsSocket.FileReceived works

```
Shell(shZipper).mode = 1 // ### added per Kem 2/8/21
shZipper.Decompress( file, targetFolder )
```

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [February 8, 2021, 8:17pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/13 "2021-02-08T20:17:03Z")

</div>

Shell.Mode is API 1.0 which is why it doesn’t appear in the inspector. If ExecuteMode isn’t showing in the inspector, that will need a ticket as well.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 8:18pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/14 "2021-02-08T20:18:20Z")

</div>

> [@Tim\_Parnell](#):
>
> Shell.Mode is API 1.0 which is why it doesn’t appear in the inspector.

It appears in the inspector (see screenshot above) but is not editable.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [February 8, 2021, 8:18pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/15 "2021-02-08T20:18:41Z")

</div>

The screenshot above is not the inspector, it’s the debugger.

[https://documentation.xojo.com/getting\_started/using\_the\_ide/inspector.html](https://documentation.xojo.com/getting_started/using_the_ide/inspector.html)

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 8:22pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/16 "2021-02-08T20:22:44Z")

</div>

You are correct, it’s the “Watch Pane” of the debugger (although Xojo doesn’t actually offer a true Watch List where one can specify which variables one wants to watch, which would be nice 🙂)

None of the properties of a subclass of Shell are exposed in The Inspector.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [February 8, 2021, 8:26pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/17 "2021-02-08T20:26:31Z")

</div>

> [@Julia\_Truchsess](#):
>
> None of the properties of a subclass of Shell are exposed in The Inspector.

I mean, I can’t confirm that…

 ![Screen Shot 2021-02-08 at 15.25.50](https://forum.xojo.com/uploads/default/original/2X/0/032fe77cc1b56f407be091ed7ce02ac35362ff5b.png)

@Kem_Tekinay I guess it’ll be your responsibility to figure out what, if anything, needs tickets regarding this. Sorry I tried to help.

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [February 8, 2021, 8:28pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/18 "2021-02-08T20:28:48Z")

</div>

I’m seeing the same thing you are, @Tim_Parnell. The Inspector lets me change the Execute Mode, and changing it to Asynchronous should be all that’s needed.

The ticket is that it doesn’t preserve that mode after copying from the other project. I’ll post that report here when done.

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 8, 2021, 8:29pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/19 "2021-02-08T20:29:14Z")

</div>

![image](https://forum.xojo.com/uploads/default/original/2X/1/1b6ba51a7761b3f93940b9c60f8bc9f71800a2cf.png)

Weird. But thank you for chiming in, your input is always welcome.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [February 8, 2021, 8:31pm UTC](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050/20 "2021-02-08T20:31:06Z")

</div>

That is very weird! You should file a ticket and attach the project as it is right now. There may be something hidden in the conversion between projects that caused the bad behavior.

[Next page](https://forum.xojo.com/t/kaju-zipshell-completed-doesnt-fire/61050.md?page=2)
