• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Beginner ,
Dec 11, 2019 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

TOPICS
SDK

Views

651

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 guidelines

correct answers 1 Correct answer

LEGEND , Dec 11, 2019 Dec 11, 2019

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?

Votes

Translate

Translate
Community Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

Same error with 

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

Votes

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 guidelines
LEGEND ,
Dec 11, 2019 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?

Votes

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 guidelines
Community Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

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

Votes

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 guidelines
LEGEND ,
Dec 12, 2019 Dec 12, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

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 guidelines