[SERVER-7565] Automatically generate error_codes.h and error_codes.cpp from a list of codes Created: 06/Nov/12 Updated: 11/Jul/16 Resolved: 07/Nov/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 2.3.0 |
| Fix Version/s: | 2.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Tad Marshall | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
scons and Visual Studio builds |
||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
The source files mongo/base/error_codes.h and mongo/base/error_codes.cpp need to be kept in sync as new error codes are added. This would be easier to do correctly if the files were automatically generated by the build system from a single list of error codes. Both of the scons and Visual Studio builds should do this, producing identical output files. |
| Comments |
| Comment by Andy Schwerin [ 06/Jan/14 ] |
|
acochenour, because this ticket was closed, please file a new ticket, and include the steps you took to reproduce them. |
| Comment by A Cochenour [ 05/Jan/14 ] |
|
As of 2.5.4 this does not appear to be resolved to VS (2008/2010/2012), the following files are missing and require manual intervention for builds to succeed: src/mongo/base/error_codes.h It doesn't reasonable to require python/scons and manual intervention for Windows builds. |
| Comment by auto [ 07/Nov/12 ] |
|
Author: {u'date': u'2012-11-07T13:03:55Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: This commit makes the Visual Studio builds require Python to be installed. Add Pre-Build Events to Visual Studio projects to run the same Python |
| Comment by auto [ 06/Nov/12 ] |
|
Author: {u'date': u'2012-11-06T11:39:34Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}Message: |
| Comment by auto [ 06/Nov/12 ] |
|
Author: {u'date': u'2012-11-06T11:33:55Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}Message: |
| Comment by Tad Marshall [ 06/Nov/12 ] |
|
Commit by Andy Schwerin (schwerin@10gen.com): Add an isOK method to Status, and methods to get an ErrorCodes::Error from a string or an int. Branch: master |
| Comment by Tad Marshall [ 06/Nov/12 ] |
|
Commit by Andy Schwerin (schwerin@10gen.com): Auto-generate error_codes. {h,cpp}. Branch: master |