-
Notifications
You must be signed in to change notification settings - Fork 276
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
bug in develop\sample.m #29
Comments
The sample file is there to allow the user to see how a colour scheme looks. It is intended to show all syntax highlighting options in a single succinct file. This line is intentionally not terminated in order to demonstrate what an unterminated string looks like, hence why the text for the sting is the word "unterminated". So it's not a bug, it is a feature. This is not a file that you need to run in order to use any of the functionality of the package, and so you should not be attempting to compile it. But why are trying to compile the code with mcc in the first place? Is this something MATLAB is doing automatically on your behalf, or is there some motivation for you to manually compile the package? |
I can actually support @sandeepganji's use case here: At my work, and in my contracting gigs, I often "compile" Matlab code to deployable programs or libraries using the Matlab Compiler (mcc), so they can be run by users that don't have Matlab licenses, run in the Matlab Production Server or Matlab Parallel Server, included in custom applications in C# or other languages, distributed in an obfuscated, no-Matlab-license-required manner, and so on. For larger Matlab applications, using Regardless of how you do it, any syntax error in any The straightforward fix to this is to not have the |
In develop\sample.m
fprintf(fid, '%d unterminated\n, i);
is not properly terminated. this can accuse issues in mcc (code compilation)The text was updated successfully, but these errors were encountered: