Love looking in weird places for files

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
skyHights
Citizen
Posts: 78
Joined: Mon Aug 25, 2014 12:14 pm

Love looking in weird places for files

Post by skyHights »

When a love file can't find a required file it looks in all sorts of weird places.
Example code:

Code: Select all

function love.load()
	require "noSuchFile"
end
Output:
Screen Shot 2016-08-19 at 6.25.12 AM.png
Screen Shot 2016-08-19 at 6.25.12 AM.png (75.83 KiB) Viewed 1672 times
I do not have a user account called Alex on my computer.
(I'm on a mac, I don't know if that helps)
Learning to Löve.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Love looking in weird places for files

Post by Positive07 »

This looks like an error in the compilation of Lua and the package.path and probably package.cpath library.

Alex is the name of one of the developers of LÖVE, bettern known as Slime so that may be the reason, you can go and report this at the issue tracker
slime wrote:Just trying to send a notification, ignore this
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
skyHights
Citizen
Posts: 78
Joined: Mon Aug 25, 2014 12:14 pm

Re: Love looking in weird places for files

Post by skyHights »

Positive07 wrote:This looks like an error in the compilation of Lua and the package.path and probably package.cpath library.
It appears to have been reported, here:
https://bitbucket.org/rude/love/issues/ ... path-again
Learning to Löve.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], DTmg and 4 guests