-
Notifications
You must be signed in to change notification settings - Fork 14
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
report issues in scripts during build #179
Comments
I'm deep in the weeds on this one, but it's surprisingly straightforward to accomplish...until I dive into writing it... |
If you want to report during the build process then I don't think a build profile is the right place to put it. Build profiles are for determining run-time behavior. You want to check scripts at build time. I think the case could be made that you should never be able to build an app with code that doesn't compile. That being said if you have a large project with lots of scripts then it might take a while. But for the POC I would suggest just adding it to the build process and worrying about a setting later. If anything it would be a parameter passed to the function that builds applications. It doesn't belong in app.yml. Testing scripts is easy enough - just create a stack in memory that you can assign scripts to in order to test. The plugin that connects LiveCode to Sublime Text does this: It only has to account for script only stacks, but the idea can be abstracted into a function that accepts any script to test. This could be used for any handlers in the build process that adds script only stacks. A function that loops over all objects in a stack file and tests any scripts could then be used from any handler in the build process that adds stack files. |
Right, the SE compiler works similarly to the ST/LC server - but the ST/LC server has never worked reliably for me. It works...it doesn't. The rest of the trick is traversing the app tree to check some or all of the files in the tree. I don't think it's necessary to hit every stack and walk it the way the PB does, since what we're really concerned with are .livecodescript files, that were edited with an external editor, and therefore not already checked by the SE. I'm not opposed to using a parameter to levurePackageApplication, but since levurePackageApplication takes a build type, that gave me the idea to leverage the app.yml to save me time modifying a number of project settings (#181), since every release follows many test builds, and at least on mobile, test builds are very different from release builds.
levurePackageApplication "release" might
I don't remember what either of us were thinking about with #79, but at the end, there is certainly feedback to provide. |
I am able to write code that is invalid and build my app without complaint, but as soon as I open the UI stack in LC, I will get script errors.
Example:
In the above I am missing the keyword item before buttonName
The text was updated successfully, but these errors were encountered: