File format problems using Visual Studio to edit Scala code

Published by on
Tags:

Noticed a weird thing when I tried to use Visual Studio 2008 to edit some scala. First of I created a solution containing a C# class library. Yeh I know this won't compile but I am just using Visual Studio to edit the files and manage the files. So I have my solution like so:

 

So I went to add a file, so I right clicked on the project and select Add New Item and selected Text File:

So I wrote some simple code and tried to compile it (using the command prompt) and got this error:

So I tried again but this time going through the file menu to create the file, and again select Text File:

I entered the same code and ran it again and this time it worked:

So I thought there must be something weird going on with the encoding,  but when I checked both were UTF-8. So I check the file size, and strangly there is a 3 byte difference, the first file was 129 bytes and the second file is 126 bytes.

I do not know enough about file formats to shed any light on what is causing this, so for now I will just be using the file menu method to add files to my project. Maybe someone who knows more about these things could shed some light on this.

 

 

Visual Studio Hangs - Auto-Recover problem

Published by on
Tags:

Recently on my machine at work every few minutes VS seems to hang and not respond to clicks or keyboard commands. This turns out to be because of the Auto-Recover settings within VS. Whenever it hangs there is the little disk icon in the status bar at the bottom of the screen. It's qutie reassureing to know that the auto-recover is there but it is really annoying when it hangs the computer every 5 minutes. Anyway if you are having the same problems you can simple change how often auto-recover happens or turn it off completely. To alter these settings click on Tools -> Options -> AutoRecover. You will then see a load of settings for you to play with. I wouldn't recommend turning it off completely but make a recover every five minutes seems a little too much for me. I have set mine to an hour. If I don't save my files at least once every hour I am dong something very wrong.

 

All blogs tagged with 'visual studio'

Projects

Have you read?

Sitecore 6 XHTML Validation and the Embed HTML Element



Blogs by date