Open gauraklein opened 4 years ago
Okay, large files could be a problem. I will look into this.
Awesome! The extension is working great other wise!
Don't have a lot of time right now. Was working in VS Code and got a popup saying "buffer too large, disabling XYZ"
I could start with this. If a file is >N Bytes, the typing detection can ignore the file. (Mind you, the CLI tool will still pick up existing flakes in those files once they are saved.)
This way you can open large files without having to disable the package.
Gaura, any chance I can get a file from you that reliably causes this problem?
Hey, it's a work file so I can't share it but Chris doesn't have that issue with the same file. Chris' guess was that it was probably something to do with the other extensions I'm using. I'll be back in the snowflake project next week so will experiment with my local set up and see what happens
FYI - I am seeing this error today on a CSS file that is less than 200 loc.
Thanks. I will add a type check as a patch.
@oakmac, can you also provide runtime context for the error?
@oakmac, can you also provide runtime context for the error?
I can't think of anything out of the ordinary. I had two buffers open: one was a CSS file and the other was application code that contained snowflake hashes (templates file).
These buffers had been open for a long time (think: greater than one week) and I had not used that instance of Atom in a while. Maybe that was related?
I get this error anytime I use an snowflake buddy suggestion, in one particular .scss file. As far as I can tell the only unique thing about the file that throws the error is that it is 2600 lines.
Atom: 1.49.0 x64 Electron: 5.0.13 OS: Mac OS X 10.14.1 Thrown From: snowflake-buddy package 1.0.1
Stack Trace
Uncaught TypeError: Cannot read property 'markBufferRange' of undefined
Commands
Non-Core Packages