Skip to content

Record missing include src#156

Merged
Gisonrg merged 1 commit intoMarkBind:masterfrom
rachx:add-missing-src
Mar 10, 2018
Merged

Record missing include src#156
Gisonrg merged 1 commit intoMarkBind:masterfrom
rachx:add-missing-src

Conversation

@rachx
Copy link
Contributor

@rachx rachx commented Feb 24, 2018

File A includes File B which does not exist (e.g. due to a typo).
When File B is added, in the current markbind-cli, we will rebuild all files and this will update all files including A.
If we want to only rebuild file A when B is added, we should keep missing include file sources as well.

@nicholaschuayunzhi
Copy link
Contributor

https://github.com/rachx/markbind/blob/998b706dc0e928b6183ca6629017dded084a4339/lib/parser.js#L105-L115

Would we need to capture the file path here as well?

@rachx
Copy link
Contributor Author

rachx commented Feb 25, 2018

We need to capture the missing target and boilerplate file source in either the try-catch block or when checking the file exists (No need for both)

I placed it in the else block when checking for the file exists since the other sources are collected there

@acjh acjh added this to the v1.3.0 milestone Mar 9, 2018
@Gisonrg Gisonrg merged commit aa4c3fb into MarkBind:master Mar 10, 2018
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.

4 participants