kevinohara80 / dmc

The file-system-like, cross-platform, cli developer tool for Salesforce
MIT License
69 stars 17 forks source link

Show an error message's detail #20

Closed jairzh closed 8 years ago

jairzh commented 8 years ago

The console log always display unknown error occurred when compiling error.

[dmc] searching for local metadata
[dmc] deploying 1 metadata files
[dmc] deploy mode: dynamic
[dmc] deploy api: tooling
[dmc] loading related metadata ids
[dmc] loaded 1 ids
[dmc] creating stub files
[dmc] created 0 stub files
[dmc] creating static resources
[dmc] deployed 0 static resources
[dmc] creating container
[dmc] [create] metadata container: 1dc900000005SyRAAU
[dmc] [create] container member: ApexClass::test
[dmc] Deploying...
[dmc] * deploy status: Failed
[err] unknown error occurred
[dmc] [delete] metadata container: 1dc900000005SyRAAU

So can the tool display an error message's detail that will be better for debugging.

kevinohara80 commented 8 years ago

Yeah I've been working on a solution for this. The tooling API doesn't always return compiler error messages.

For now, you can use the --meta flag to force the deploy to use the metadata API which has much better log results. This can also be set as a default in the config.

kevinohara80 commented 8 years ago

@jairzh Tracked down the issue. It's in the nforce-tooling plugin. I just sent them a pull request and will update dmc as soon as it gets resolved.

kevinohara80 commented 8 years ago

Resolved and released in the latest beta. Thanks @jairzh!

jairzh commented 8 years ago

You are great @kevinohara80