This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
My IDE seems to be compiling into the .js every couple seconds after a modification to the file, not that I'm not actually saving the files. Working with a 300+ line .coffee (converted using js2coffee.com) becomes extremely frustrating since every couple seconds the IDE is frozen for about 5 seconds. Is the embedded code for coffee-script doing timely checks instead of the --watch option? |
|
|
Forgot the obligatory props for the great work! |
|
|
We only compile when you save the file. The delays as you type arise from the syntax highlighting, and of course we can't wait until save time to update the syntax highlighting. We have to parse the file as you type. However, if you're seeing that level of performance degradation, we'll obviously need to see if we can either run the CoffeeScript parser in a background thread or write our own parser in a higher-performance language (or find some other option to make the JavaScript-based parser run faster). Thanks for the feedback -- we will definitely investigate how we can improve this. |
|
|
Thank you for the quick response Ivan. Just for a perspective, here are the system settings: Intel Q8400 @ 2.66Ghz 8GB PC3 8500 RAM 64bit Windows Server 2008 R2 Also, this is a very large sharepoint project, and my greatest challenge was to ignore the .coffee and .scss files in the solution packages generated, What I am doing is marking the .coffee/.scss file as an Embedded Resource, Excluding -> Including the file from the project, and it will only include the generated (.js/.css) in the WSP file. The only other Add-In I use is Resharper. |
|
|
[quote user="ivan"]However, if you're seeing that level of performance degradation, we'll obviously need to see if we can either run the CoffeeScript parser in a background thread or write our own parser in a higher-performance language (or find some other option to make the JavaScript-based parser run faster). Thanks for the feedback -- we will definitely investigate how we can improve this.[/quote] I don't experience any performance issues myself at this moment but I believe google's V8 will dramatically improve the parsing. |
|
|
Hello, just dropping by to say thanks for the great software, but I do also get the same problems. I had to break my code into smaller files, and after about 200-300 hundred lines it gets a bit frustrating - I actually have to type my code and wait for some seconds for it to appear every time. Any update on this issue? My pc specs are not a bottleneck, I run on an Intel p8700 with 4Gb ram, VS2010 with resharper (tried disabling) Maybe if highlighting was done on a set interval and again on save? Actually only on save would be fine too.
Oh and actually compilation is NOT done only on save! Having both the .coffee and the .js files open, and switching between, I can see the translated code just fine! |
|