-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation - How to test the definition? #1
Comments
Thanks for the feedback 🙂 Looks like I've got some junk lying around in that pico8 repo. As for getting the definitions going, they have an undocumented limitation at the moment that you cannot edit directly in the Lastly no these are JUST completion definitions for EmmyLua. So you need that in order to use it. As mentioned the sumneko.lua extension provides that, as well as syntax highlighting and language features for Lua. It's my recommendation for editing Lua in vscode. Circling back to my first point, if you want to edit the TL;DR
|
Thank you for your feedback. I'm currently trying to break down my 500+ lines-of-code "game" into something more managable, thus I don't mind editing lua-files instead of a p8-file. I am willing to learn some C# if necessary. C# is supported with Mono on Linux and MacOS. It's just that I'm neither an expert on C#, lua, p8 or js so these are hurdles which slows my progress configuring a good editor and build system. |
I agree with the sentiment implied here - it's probably better practise to code your game in a series of files that are all "included" instead of just editing everything in the pico8 editor / .p8 file. It might not be quite in the spirit of PICO8 but I think it is worth the tradeoff of having a maintainable project!
I assume this is in reference to the C# extension. I may not have been clear in my earlier reply - the reliance in the C# extension was a complete oversight by myself. I didn't stop to realise that However, you should still have Lua and PICO8 autocomplete/intellisense options when editing a .lua file in that repo even if you don't have that C# extension installed. Let me know if you don't! |
I'm unsure what the definitions provide with a fresh installed vs-vode. So I'm unsure even it even does work or not.
I've tried the https://github.com/peabnuts123/pico8 example both with Ubuntu 18.04 and Windows 10 with the latest vs-code. I get the same result on both os: No syntax-highlighting and no pico8-specific code-completion.
The "sumneko.lua" extension was suggested running the first time (I've installed it of course). I have trouble using the "launch.json" because of the '"type": "coreclr"' which I can't pin down to any specific extension. I'm unsure if this related to the problem above.
The text was updated successfully, but these errors were encountered: