[ZeroBrane Studio] Re: Using zerobrane with a custom lua setup

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Wed, 22 Oct 2014 23:11:07 -0700

Hi Milind,

> So it has totally changed. Now my local path is not there anymore.

What version of ZBS are you using? Can you try with the one from
github as there were several changes after 0.80 was released to
address this very issue
(https://github.com/pkulchenko/ZeroBraneStudio/issues/357).

> Second problem I see is that I have iuplua.dll in the same directory as this 
> lua52 and require("iuplua") fails even though it searches at .\iuplua.dll 
> (which is present in the overwritten package.cpath) so it seems the current 
> directory is not the same directory as what is opened in the project 
> directory tree since I have opened the same directory there where I have my 
> lua52 executable.

This should be easy to check; ZBS always shows in the output window
the exact command it's executing ("Program starting as...") and the
working directory ("Program ... started in..."), which should match
the project directory. iuplua requires some other DLLs, so those need
to be in the same location as lua52 or in a folder listed in PATH
environment variable.

Paul.

Other related posts: