Kampfkarren / selene

A blazing-fast modern Lua linter written in Rust
https://kampfkarren.github.io/selene/
Mozilla Public License 2.0
614 stars 78 forks source link

Enum is benig registered as an undefined global #210

Closed jakebball closed 3 years ago

jakebball commented 3 years ago

I am using selene and the code below causes selene to underline Enum and states "Undefined Global".

local productInfo = MarketplaceService:GetProductInfo(DevProductInfo.ProductIds[v.Name], Enum.InfoType.Product)
                v.Purchase.TextButton.Text = "Buy For "..productInfo.PriceInRobux.." Robux" 

                v.Purchase.TextButton.MouseButton1Click:Connect(function()
                    MarketplaceService:PromptProductPurchase(Player, DevProductInfo.ProductIds[v.Name], false, Enum.CurrencyType.Robux)
                end)
Kampfkarren commented 3 years ago

Did you correctly set std = "roblox"?

jakebball commented 3 years ago

yup, in the selene.toml.

Kampfkarren commented 3 years ago

It's in your root and everything? game etc work fine? I can't see how this would happen.

Kampfkarren commented 3 years ago

This doesn't have enough information to act on, this is most likely a user error. If you are building from source, make sure you are building with all features.