question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unintentional clear output folder

See original GitHub issue

Autorest will clear output folder when I don’t specify --clear-output-folder in command line or anywhere. Even I try to use --clear-output-folder=false to force it not to clear the output folder, it won’t work.

To repro:

  1. run this command autorest --typescript --version=3.1.3 --use=@autorest/typescript@6.0.0-beta.9 --modelerfour.lenient-model-deduplication --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=../azure-sdk-for-js ../azure-rest-api-specs/specification/dns/resource-manager/readme.md
  2. run rush update && rush build, we should be able to see the review folder after it finishes.
  3. run this command again autorest --typescript --version=3.1.3 --use=@autorest/typescript@6.0.0-beta.9 --modelerfour.lenient-model-deduplication --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=../azure-sdk-for-js ../azure-rest-api-specs/specification/dns/resource-manager/readme.md You will see review or dist or dist-esm folder is gone.

I also tried to remove the --version=3.1.3 and run autorest --reset before I run those commands, still not working.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sarangan12commented, Aug 24, 2021

So, I am assuming your statement is:

  1. Clear the src folder
  2. Then generate the code (irrespective of clear-output-folder/generate-metadata option)

That looks like a reasonable thing to do. Let me send the PR soon for this. Let me know if my understanding is correct

0reactions
sarangan12commented, Aug 25, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

NEED TO RECOVER Accidental CMD deletion of folders and ...
This morning I happened to come across a file that I had saved to my desktop screen that was not deleting and so...
Read more >
How to Recover Accidentally Deleted Folder From My PC
Click on Start; Type History; Choose History Folder; Go to search bar, type the folder name; Select it and click on Restore icon....
Read more >
[2022] 4 Methods to Undo Deleted Files on Windows
Accidentally deleted files from computer hard disk, all lost files will go to the Recycle bin folder, for this case, you can use...
Read more >
How to prevent deleting files/directory accidentally in Unix ...
Prevent files from an accidental deletion in Linux​​ It means you can't delete, modify the file, even if you're the file owner and...
Read more >
Undo of folder deletion brings back empty folder · Issue #111022
I just deleted a folder accidentally and Ctrl+Z does not retrieve the files, instead only returns an emtpy folder. Please help @JacksonKearl @ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found