Code Monkey home page Code Monkey logo

Comments (2)

scottclowe avatar scottclowe commented on September 7, 2024

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?

from matlab-schemer.

apjanke avatar apjanke commented on September 7, 2024

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 depfun and Matlab Compiler's automatic dependency resolution to pick up the source files to go in to the mcc program is not adequate: it misses any dynamic dependencies used by eval, feval, or other dynamic dispatch mechanisms, and it doesn't pick up resource files. The easiest way to deal with this is to must use the -a option to sweep up your entire codebase, including any third-party libraries you're using, which is probably where Sandeep's pulling in Matlab Schemer. Multiple Matlab Compiler libraries cannot be composed together, so you need to compile the whole shebang, including all your dependencies, at once.

Regardless of how you do it, any syntax error in any .m file that's included in an mcc build will break the entire build, regardless of whether that file actually gets called anywhere.

The straightforward fix to this is to not have the develop/ directory on your Matlab path when you're running mcc. Is that feasible, @sandeepganji ?

from matlab-schemer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.