Skip to content

Conversation

@Timoses
Copy link

@Timoses Timoses commented Jun 25, 2018

This took me quite a while to track down.

The problem was that dub describe --annotate does not trigger downloads of not already downloaded dependencies which is why the command failed with "Non-optional dependency of not found in dependency tree!?. ".

This commit just prints the error the dub describe --annotate --verror gives and hints towards dub describe --annotate as the source of error.

Please see comment in commit regarding l:result concatenation.

\function('dutyl#core#runTool'),'dub',['describe','--annotate', '--verror'])
if !empty(dutyl#core#shellReturnCode())
throw 'Failed to execute `dub describe`'
throw 'Failed to execute `dub describe --annotate`: ' . l:result
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this concatenation be problematic? I'm no vim expert..
What if l:result has multiple lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant