Quick Look plugin

HI, It’s a question in relation to this sample build for quick look plugin. 

https://github.com/coronalabs/plugins-sample-quickLook

I wanted to experiment with this sample code before I start to implement it to my app. But there are two problems. 

-1) The build will not run on Corona Simulator 

See  “Simulator.png” for the error message. 

-2) It will not create a build

“PdfSampleBuild.png” is the screenshot from this point. The Terminal returns following error message;


A device build error occurred on the server. 

BuildID: 52cee88532eef 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.native.popup.quickLook


I have not touched anything in either main.lua or built.settings.lua

Please advise how I can make this work. I have not used plugins before, I am probably missing something VERY obvious… 

Thank you!

Leo

Hi Leo,

Did you follow through the tutorial on this?

http://www.coronalabs.com/blog/2013/12/24/tutorial-introducing-the-quicklook-plugin-ios/

Brent

Hi Leo,

I realized the issue: the QuickLook plugin is for Pro/Enterprise subscribers only. Sorry I didn’t catch that earlier.

Brent

Hi Brent, 

Thanks for looking into this. I’ve upgraded to Pro very recently. I had a problem where Simulator still thinks I’m starter. But I’ve solved that now. 

I had also gone through that tutorial and tried typing exactly as they are but didn’t work for me. So I thought I’d try a sample package and see what I’m doing wrong. 

Is the sample code meant to work right away without making any changes to settings? 

Thanks,

Leo 

OK, I have a hypothesis. Maybe Quick Look plugin needs to be "require’-ed in the .main.lua file in the way that widgets need to be “require”-ed.

In the case of “ads” plug in for example, we need to “require” the pug in first by starting a line such as; 

local ads = require “ads”

(Taken from “ads” example here; http://docs.coronalabs.com/api/library/ads/index.html

Going through both of the two samples below, I don’t see anywhere this is done explicitly. 

http://coronalabs.com/blog/2013/12/24/tutorial-introducing-the-quicklook-plugin-ios/

https://github.com/coronalabs/plugins-sample-quickLook

I receive identical error message from both samples.  

Error 1) (On booting Corona Simulator)

Runtime error: ?:0: attempt to index global ‘context’ (a nil value) 

stack feedback: 

?: in function ‘findPluginToDownloadFromServerCatalog’

?: in function ‘handleManifestDownload’

?: in function <:474>

Error 2) (In attempting to create a build) 


A device build error occurred on the server. 

BuildID: 52d002b986dac 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.native.popup.quickLook


Hi Leo,

Which version (build #) of Corona SDK are you currently testing with?

Brent

Hello Brent, I’ve just checked my Corona Simulator. 

It tells me the version is this; 

Version 2013.1202 (2013.8.28)

Thanks, Leo 

Have you tried this on the latest public release Leo? (v2100) I suspect if you do it will work fine :wink:

Ah it works now! Thank you very much. I will have fun with the new functionality. Sorry, such a school boy error. Next time I hope i can ask more interesting questions. 

Hi Leo,

Did you follow through the tutorial on this?

http://www.coronalabs.com/blog/2013/12/24/tutorial-introducing-the-quicklook-plugin-ios/

Brent

Hi Leo,

I realized the issue: the QuickLook plugin is for Pro/Enterprise subscribers only. Sorry I didn’t catch that earlier.

Brent

Hi Brent, 

Thanks for looking into this. I’ve upgraded to Pro very recently. I had a problem where Simulator still thinks I’m starter. But I’ve solved that now. 

I had also gone through that tutorial and tried typing exactly as they are but didn’t work for me. So I thought I’d try a sample package and see what I’m doing wrong. 

Is the sample code meant to work right away without making any changes to settings? 

Thanks,

Leo 

OK, I have a hypothesis. Maybe Quick Look plugin needs to be "require’-ed in the .main.lua file in the way that widgets need to be “require”-ed.

In the case of “ads” plug in for example, we need to “require” the pug in first by starting a line such as; 

local ads = require “ads”

(Taken from “ads” example here; http://docs.coronalabs.com/api/library/ads/index.html

Going through both of the two samples below, I don’t see anywhere this is done explicitly. 

http://coronalabs.com/blog/2013/12/24/tutorial-introducing-the-quicklook-plugin-ios/

https://github.com/coronalabs/plugins-sample-quickLook

I receive identical error message from both samples.  

Error 1) (On booting Corona Simulator)

Runtime error: ?:0: attempt to index global ‘context’ (a nil value) 

stack feedback: 

?: in function ‘findPluginToDownloadFromServerCatalog’

?: in function ‘handleManifestDownload’

?: in function <:474>

Error 2) (In attempting to create a build) 


A device build error occurred on the server. 

BuildID: 52d002b986dac 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.native.popup.quickLook


Hi Leo,

Which version (build #) of Corona SDK are you currently testing with?

Brent

Hello Brent, I’ve just checked my Corona Simulator. 

It tells me the version is this; 

Version 2013.1202 (2013.8.28)

Thanks, Leo 

Have you tried this on the latest public release Leo? (v2100) I suspect if you do it will work fine :wink:

Ah it works now! Thank you very much. I will have fun with the new functionality. Sorry, such a school boy error. Next time I hope i can ask more interesting questions.