openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Better warning(/compile error) for incorrect export file paths #450

Open st-AR-gazer opened 5 months ago

st-AR-gazer commented 5 months ago

Ran into a fun 'issue' that seems worth flagging for a fix. When you mess up the export file path in your toml file, the error you get makes it seem like it's a duplicate function problem (which I guess it technically is), but it isn't really clear that the issue isn't the duplicate function, but the file path in the info.toml file.

XertroV suggested we could do with a warning or a compile-time error when the system can't find an export file, and IMO that sounds like a solid idea :) .

Basically, if there's a way to get a nudge from the compiler saying, "Hey, I can't find this file you're talking about," that would be awesome. Since I spent a while (around an hour 😢) figuring out that Export.as != Exports.as. This would probably save some time for someone who makes the same mistake I did. image