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

dub is hang on if view folder have nodejs init-ed project inside it #1690

Closed
bubnenkoff opened this issue Feb 21, 2017 · 2 comments
Closed

Comments

@bubnenkoff
Copy link

I develop web app. It's view-part is nodejs based. So I have in views folder nodejs project.

But when I trying to build project dub is hang on. I tried to remove content of views folder and only after it I was able to build project. It's seems that dub is trying to analyze this folder.

Just try to build it. https://ufile.io/0a9e9

@s-ludwig
Copy link
Member

The reason turned out to be that the views directory simply contains a lot of files and DUB had cubic runtime when collecting those files. The reason why it was collecting files in the "view" folder is that this folder is considered a string import folder by default. To avoid that, put stringImportPaths without arguments in dub.sdl.

I've propose a fix for DUB: dlang/dub#1079

@s-ludwig
Copy link
Member

Fixed for DUB master.

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

No branches or pull requests

2 participants