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

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

Community Beginner ,
Dec 11, 2019 Dec 11, 2019

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
1.1K
Translate
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?

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

Same error with 

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

Translate
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

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?

Translate
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

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

Translate
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
LATEST

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

Translate
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