openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Misspelled info.toml file does not produce a 'missing info.toml file' error #402

Closed st-AR-gazer closed 8 months ago

st-AR-gazer commented 9 months ago

Misspelled info.toml file does not produce a 'missing info.toml file' error

Issue Description

I've encountered a peculiar issue with what I presume to be Openplanet, which seems to revolve around how it handles TOML files. The specific problem arises when a folder has a TOML file that is not named info.toml. In my case, the file was mistakenly named into.toml, and this led to some unexpected error handling.

Steps to Reproduce

  1. Create a TOML file in an Openplanet project and name it something other than info.toml (in my case, it was into.toml).
  2. Try to use features or functions that would normally require the info.toml file.

Expected Behavior

Openplanet should either specifically look for info.toml or provide a clear error message if it cannot find an info.toml file.

Actual Behavior

The system does not identify the absence of an info.toml and instead seems to proceed without properly checking it. This will then lead to a misleading error message, in my case: image (this should warn about a missing info.toml file, not a no matching symbol 'NadeoServices::Get)

Other Info

This issue is not just related to NadeoServices. I checked with VehicleState too, and got the same error (minus the NadeoServices part), so I'm pretty sure this is an issue with the info.toml file check. I'm assuming it only checks for the existence of a toml file and just assumes that the file is spelled correctly.

Environment Details