Generator: watch-template is watching output folder

Created on 11 Sep 2020  路  13Comments  路  Source: asyncapi/generator

Describe the bug

Discussed here https://github.com/asyncapi/html-template/issues/61 - I remove unused files by hook and it coping files infinitely.

How to Reproduce

In https://github.com/asyncapi/html-template do
ag test/spec/asyncapi.yml ./ -o test/output --force-write --watch-template -p singleFile=true
than change some files.

image

Expected behavior

Not to generate files when output folder changes.

bug stale

All 13 comments

Welcome to AsyncAPI. Thanks a lot for reporting your first issue.

Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

https://github.com/asyncapi/generator/pull/337 should have fixed this issue 馃 @GordeevArt what generator version are you using?
@derberg any thoughts on the issue? (Edit: just read the discussion nwm 馃槃)

@jonaslagoni I use latest @asyncapi/[email protected] version

@jonaslagoni I forgot I fixed it some time ago 馃槅 I just checked quickly on local and for me my fix still works 馃槃

@GordeevArt are you a windows user? or?

@derberg Fedora Linux 5.7.15-100.fc31.x86_64

Try to change something in output folder (index.html).

it matters just for developing with parameter singleFile=true.

@GordeevArt I tried to do changes manually in output, also added a hook that you added without any parameters so it always runs, and no effect

I recorded this to show how I do it

@derberg ok, thanks for research. I do the same but have the bug. It is no critical.

@GordeevArt this is what we are using under the hood to watch for changes. Would be great if you could try out their CLI with --ignore flag, to see if this issue is caused by the chokidar library or we just do something wrong in the Generator

@derberg this still don't work for me

@GordeevArt you mean you tried https://github.com/kimmobrunfeldt/chokidar-cli indepedently from the generator and it was also detecting changes in ignored paths?

This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions :heart:

@GordeevArt hey man, is it still valid?

Yes, but I don't use it now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fmvilas picture fmvilas  路  9Comments

jonaslagoni picture jonaslagoni  路  5Comments

GodsBoss picture GodsBoss  路  4Comments

Ellocsys picture Ellocsys  路  9Comments

uraala picture uraala  路  10Comments