# Nothing happens when running plug-in on Windows

**URL:** <https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642>\
**Category:** UXP Plugin API\
**Created:** [February 14, 2019, 7:16pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642 "2019-02-14T19:16:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 14, 2019, 7:16pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/1 "2019-02-14T19:16:19Z")

</div>

I have a plug-in that logs a message. The command shows up in the plug-ins menu but when I click on it on Windows 10, nothing happens and nothing is logged to the developer console. Please advise:

```auto
async function insertImage(selection) {
    // Go to Plugins > Development > Developer Console to see this log output
    console.log("Inserting image");
}

module.exports = {
    commands: {
        insertImage: insertImage
    }
};

```

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [February 14, 2019, 8:13pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/2 "2019-02-14T20:13:11Z")

</div>

Are you using typographer quotes in your string? Try using “” instead of “”.  
Strange that your console doesn’t display an error.

---

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 14, 2019, 8:36pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/3 "2019-02-14T20:36:00Z")

</div>

> [@PaoloBiagini](#):
>
> “”

I am using regular double-quotes in both the JSON and the .JS

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [February 14, 2019, 8:57pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/4 "2019-02-14T20:57:07Z")

</div>

Could you please also share the contents of your `manifest.json` file? The JS looks ggod, so maybe something there could be at fault… Thank you very much in advance 👍

---

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 14, 2019, 9:08pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/5 "2019-02-14T21:08:35Z")

</div>

```auto
{
  "name" : "Image 2",
  "host" : {
    "app" : "XD",
    "minVersion" : "13.0.0"
  },
  "description" : "Image 2",
  "id" : "e5a6e291",
  "icons" : [ {
    "path" : "images/icon.png",
    "width" : 96,
    "height" : 96
  } ],
  "uiEntryPoints" : [ { 
    "label" : "Insert image",
    "type": "menu",
    "commandId": "InsertImage"
  } 
],
  "version" : "1.0.0"
}

```

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [February 14, 2019, 9:13pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/6 "2019-02-14T21:13:40Z")

</div>

The problem is that your `commandId` in the `manifest.json` begins with a capital letter `InsertImage`, while your exported function doesn’t (`insertImage`) – if you fix that, everything should be working as expected 😉

Hope this helps.

Edit: By the way, your code gets a lot more readable here in the forums if you wrap it in three backticks (`) at the beginning and the end (markdown syntax) 😉

---

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 14, 2019, 9:15pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/7 "2019-02-14T21:15:44Z")

</div>

That isn’t it - I retyped it in the comment to anonymize the scenario.

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [February 14, 2019, 9:15pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/8 "2019-02-14T21:15:58Z")

</div>

Sorry, Safari displays curly quotes if not marked as code.

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [February 14, 2019, 9:27pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/9 "2019-02-14T21:27:35Z")

</div>

Ok. The problem is that your code looks good so far (I don’t see anything that’s wrong).

> [@mscherotter](#):
>
> That isn’t it - I retyped it in the comment to anonymize the scenario.

I can understand that. However, the code (with the typo being fixed) seems fine (and should work as expected). Therefore, I fear that at this point, we won’t be able to help you much further (since based on the info provided, the code should work just fine). There are a few things that might be able to shed a light here, but other than that, that’s basically it…

1. Does the console show any errors (and if so: what) when reloading the plugins with `Ctrl+Shift+R` (on Windows) or `Cmd+Shift+R` (on macOS)
2. What parts are different between the code you’ve shared here and your own parts (I’m not asking what your code does, but simply which parts are “changed”)
3. Could you please try to replicate the issue with the code you’ve provided here (without the typo, of course)? Does this code, by itself, work for you?

---

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 14, 2019, 9:52pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/10 "2019-02-14T21:52:02Z")

</div>

Something else is going wrong - I’ve cloned the sample git repro, added the quick-start sample to the develop folder, reloaded plugins, and selected “Create Rectangle” and nothing happens, nothing shows up it the Developer Console. I can help debug this with you if necessary.  
Michael Scherotter ([mischero@microsoft.com](mailto:mischero@microsoft.com))

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [February 14, 2019, 11:21pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/11 "2019-02-14T23:21:05Z")

</div>

I’m testing the same ‘quick-start’ sample from the github repo. On Mac it works.

 ![08](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/9c39af01e7fd8152dec09d892fde19e6a764379d.png)

[quick-start.zip](https://forums.creativeclouddeveloper.com/uploads/short-url/bwIwwEdwXHE5NNfTVEEgwDrAQD2.zip) (2.7 KB)

---

<div class="post-metadata">

**Author:** ![Erin\_Finnegan](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/erin_finnegan/32/100_2.png) [@Erin\_Finnegan](https://forums.creativeclouddeveloper.com/u/Erin_Finnegan)\
**Post date:** [February 15, 2019, 11:08pm UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/12 "2019-02-15T23:08:37Z")

</div>

@stevekwak Is asking around, but we haven’t been able to reproduce the problem yet.

---

<div class="post-metadata">

**Author:** ![mscherotter](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mscherotter/32/283_2.png) [@mscherotter](https://forums.creativeclouddeveloper.com/u/mscherotter)\
**Post date:** [February 16, 2019, 4:25am UTC](https://forums.creativeclouddeveloper.com/t/nothing-happens-when-running-plug-in-on-windows/642/13 "2019-02-16T04:25:27Z")

</div>

The issue disappeared today and now the plugins work. Very strange - I shared the XD log with the support team.  
Michael
