Highlighted

Error in precompiled lua script: info.lua bad chunk in precompiled chunk

Community Beginner ,
Dec 11, 2019

Copy link to clipboard

Copied

Hello,

 

I have precompiled my lua script of the Lightroom plugin with

luac -s -o out/file_name.lua  ./file_name.lua

Then moved altogether in a folder with the suffic lrplugin. Afterwards installed into Lightroom and then I got the error:

 info.lua: bad chunk in precompiled chunk

 

What does this mean and what do I need to do to solve this? I am using 

Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio

 

Thanks for your help

Thorsten

Most Valuable Participant
Correct answer by johnrellis | Most Valuable Participant

I use "luac" 5.1.4, and I don't use "-s".  Don't know if those might make a difference.

 

Also, I assume you've verified your plugin runs without compiling?

Topics

Mac, SDK

Views

176

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Error in precompiled lua script: info.lua bad chunk in precompiled chunk

Community Beginner ,
Dec 11, 2019

Copy link to clipboard

Copied

Hello,

 

I have precompiled my lua script of the Lightroom plugin with

luac -s -o out/file_name.lua  ./file_name.lua

Then moved altogether in a folder with the suffic lrplugin. Afterwards installed into Lightroom and then I got the error:

 info.lua: bad chunk in precompiled chunk

 

What does this mean and what do I need to do to solve this? I am using 

Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio

 

Thanks for your help

Thorsten

Most Valuable Participant
Correct answer by johnrellis | Most Valuable Participant

I use "luac" 5.1.4, and I don't use "-s".  Don't know if those might make a difference.

 

Also, I assume you've verified your plugin runs without compiling?

Topics

Mac, SDK

Views

177

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Beginner ,
Dec 11, 2019

Copy link to clipboard

Copied

Same error with 

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Dec 11, 2019

Copy link to clipboard

Copied

I use "luac" 5.1.4, and I don't use "-s".  Don't know if those might make a difference.

 

Also, I assume you've verified your plugin runs without compiling?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Dec 11, 2019

Copy link to clipboard

Copied

I have removed the -s argument and now it works. Thanks for the hint.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Dec 12, 2019

Copy link to clipboard

Copied

Glad you got it resolved. Don't know why "-s" would screw things up.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...