Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Echo dub describe exception error when importing paths #42

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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.

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?

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

Successfully merging this pull request may close these issues.

1 participant