Skip to content
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

Cannot compile when generated command line is too long #61

Open
ramon-rocha opened this issue Jan 12, 2014 · 1 comment
Open

Cannot compile when generated command line is too long #61

ramon-rocha opened this issue Jan 12, 2014 · 1 comment
Labels
Milestone

Comments

@ramon-rocha
Copy link
Owner

For large projects with many files or a deeply nested structure, the add-in can not compile the project because the generated command line is too long.

This problem exists when trying to compile using either MSBuild or the native MonoDevelop language binding method.

While not directly preventable, we can be smarter about using relative paths whenever possible to mitigate this issue. Alternatively, we can create a temporary file to hold the list of of .cobra file names and pass that to the compiler instead using the -files: compiler parameter.

@ghost ghost assigned ramon-rocha Jan 12, 2014
@ramon-rocha ramon-rocha removed this from the 0.6 milestone May 10, 2014
@ramon-rocha ramon-rocha modified the milestone: 0.6.1 Sep 18, 2014
@ramon-rocha
Copy link
Owner Author

When building using MSBuild, I've had some success using the Identity MetaData instead of FullPath thoughout http://cobra-language.com/trac/cobra/browser/cobra/trunk/Source/Cobra.MSBuild/CobraCompiler.cobra#L95. I didn't test it very extensively though.

See here for the difference between these two: http://msdn.microsoft.com/en-us/library/ms164313.aspx

The actual project that triggered this has since been restructured we'll need a dummy project in the add-in test data that can be used to reproduce and fix this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant