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

"File to read not found or unreadable" using node-sass when saving on VSCode #20491

Closed
pocesar opened this issue Feb 12, 2017 · 4 comments
Closed

Comments

@pocesar
Copy link

pocesar commented Feb 12, 2017

Cross posting with sass/node-sass/issues/1894

  • VSCode Version: 1.10.0-insider
  • OS Version: Windows 10 x64

Steps to Reproduce:

  1. Create a folder called styles and place a styles.scss inside that folder
  2. Create a node-sass 4.5.0 watch command as such: node-sass styles/styles.scss --output-style compressed --watch --linefeed lf --source-map true --output styles
  3. There's a random chance that after editing and saving the styles.scss file, the node-sass task will fail with (fails around 30% of the time, sometimes 4-5 times in a row)
=> changed: G:\www\styles\styles.scss
{
  "status": 3,
  "message": "File to read not found or unreadable: G:/www/styles/styles.scss",
  "formatted": "Internal Error: File to read not found or unreadable: G:/www/styles/styles.scss\n"
}
=> changed: G:\www\styles\styles.scss
Rendering Complete, saving .css file...
Wrote CSS to G:\www\styles\styles.css
Wrote Source Map to G:\www\styles\styles.css.map

trying to see whose fault is it

@joaomoreno
Copy link
Member

Very likely an issue with node-sass.

@umkasanki
Copy link

In Sublime text helps "atomic_save": true

@umkasanki
Copy link

for vs code try https://www.npmjs.com/package/gulp-wait

@xuzeshen
Copy link

For VS Code you can set settings files.autoSave to afterDelay and files.autoSaveDelay to a samller value like "500". And then, when you change your files, you press ctrl + s (save) , although there still be err log, it does compile the newest files to .css and works.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants