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

Failed to compile css #54

Open
dillonlara115 opened this issue Mar 11, 2014 · 4 comments
Open

Failed to compile css #54

dillonlara115 opened this issue Mar 11, 2014 · 4 comments

Comments

@dillonlara115
Copy link

I'm getting the following issue:
10:50:32.592 AM: Failed to compile css.
[IOException]The process cannot access the file 'C:\Corp\EC\Dev\1401HEAD\Sites\www.midwayusa.com\EC.Sites.WWW.Web\Content\css\stylesmain-IE.css' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
at SassyStudio.Integration.LibSass.LibSassNetDocumentCompiler.Compile(FileInfo source, FileInfo output)
at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time, String path)

It happens every once in awhile when i save a scss file. I haven't found a solution yet. Sometimes restarting visual studio will fix it but not every time.

@darrenkopp
Copy link
Owner

Is that a live IIS is site to the public? Clearly something else is reading
the file when you are trying to save, and I'm guessing its iis, but its
hard to know exactly who
On Mar 11, 2014 9:55 AM, "Dillon" [email protected] wrote:

I'm getting the following issue:
10:50:32.592 AM: Failed to compile css.
[IOException]The process cannot access the file
'C:\Corp\EC\Dev\1401HEAD\Sites
www.midwayusa.com\EC.Sites.WWW.Web\Content\css\stylesmain-IE.csshttp://www.midwayusa.com%5CEC.Sites.WWW.Web%5CContent%5Ccss%5Cstylesmain-IE.css'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options, String
msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean
checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents,
Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding
encoding)
at
SassyStudio.Integration.LibSass.LibSassNetDocumentCompiler.Compile(FileInfo
source, FileInfo output)
at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time, String
path)

It happens every once in awhile when i save a scss file. I haven't found a
solution yet. Sometimes restarting visual studio will fix it but not every
time.

Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

@dillonlara115
Copy link
Author

I believe it's IIS. We are working on a local branch off of our production site. Than branch we are working on is not live for public viewing.

On Mar 11, 2014, at 10:59 AM, Darren Kopp [email protected] wrote:

Is that a live IIS is site to the public? Clearly something else is reading
the file when you are trying to save, and I'm guessing its iis, but its
hard to know exactly who
On Mar 11, 2014 9:55 AM, "Dillon" [email protected] wrote:

I'm getting the following issue:
10:50:32.592 AM: Failed to compile css.
[IOException]The process cannot access the file
'C:\Corp\EC\Dev\1401HEAD\Sites
www.midwayusa.com\EC.Sites.WWW.Web\Content\css\stylesmain-IE.csshttp://www.midwayusa.com%5CEC.Sites.WWW.Web%5CContent%5Ccss%5Cstylesmain-IE.css'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options, String
msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean
checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents,
Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding
encoding)
at
SassyStudio.Integration.LibSass.LibSassNetDocumentCompiler.Compile(FileInfo
source, FileInfo output)
at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time, String
path)

It happens every once in awhile when i save a scss file. I haven't found a
solution yet. Sometimes restarting visual studio will fix it but not every
time.

Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.


Reply to this email directly or view it on GitHub.

@darrenkopp
Copy link
Owner

I'll add some code to make it retry a couple of times, but not much I can
do if someone else locks file. It is very odd though, I wouldn't expect
that to happen if lots of people weren't hitting the site
On Mar 14, 2014 8:29 PM, "Dillon" [email protected] wrote:

I believe it's IIS. We are working on a local branch off of our production
site. Than branch we are working on is not live for public viewing.

On Mar 11, 2014, at 10:59 AM, Darren Kopp [email protected]
wrote:

Is that a live IIS is site to the public? Clearly something else is
reading
the file when you are trying to save, and I'm guessing its iis, but its
hard to know exactly who
On Mar 11, 2014 9:55 AM, "Dillon" [email protected] wrote:

I'm getting the following issue:
10:50:32.592 AM: Failed to compile css.
[IOException]The process cannot access the file
'C:\Corp\EC\Dev\1401HEAD\Sites
www.midwayusa.com\EC.Sites.WWW.Web\Content\css\stylesmain-IE.css<
http://www.midwayusa.com%5CEC.Sites.WWW.Web%5CContent%5Ccss%5Cstylesmain-IE.css>'

because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath,
Boolean
bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options, String
msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append,
Boolean
checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents,
Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding
encoding)
at

SassyStudio.Integration.LibSass.LibSassNetDocumentCompiler.Compile(FileInfo
source, FileInfo output)
at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time,
String
path)

It happens every once in awhile when i save a scss file. I haven't
found a
solution yet. Sometimes restarting visual studio will fix it but not
every
time.

Reply to this email directly or view it on GitHub<
https://github.com/darrenkopp/SassyStudio/issues/54>
.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-37714206
.

@dillonlara115
Copy link
Author

Well we are a team of three designers working out of the same branch right now. We used to use Workbench but it took so long to compile in comparison to your tool. We ran into a similar issue with workbench every once in awhile(we would get a read only error on the actual css it was supposed to be compiling to, restarting visual studio usually solved that issue). Thanks for the help. Let me know if there's any other information I can provide you with to help.

On Mar 14, 2014, at 9:33 PM, Darren Kopp [email protected] wrote:

I'll add some code to make it retry a couple of times, but not much I can
do if someone else locks file. It is very odd though, I wouldn't expect
that to happen if lots of people weren't hitting the site
On Mar 14, 2014 8:29 PM, "Dillon" [email protected] wrote:

I believe it's IIS. We are working on a local branch off of our production
site. Than branch we are working on is not live for public viewing.

On Mar 11, 2014, at 10:59 AM, Darren Kopp [email protected]
wrote:

Is that a live IIS is site to the public? Clearly something else is
reading
the file when you are trying to save, and I'm guessing its iis, but its
hard to know exactly who
On Mar 11, 2014 9:55 AM, "Dillon" [email protected] wrote:

I'm getting the following issue:
10:50:32.592 AM: Failed to compile css.
[IOException]The process cannot access the file
'C:\Corp\EC\Dev\1401HEAD\Sites
www.midwayusa.com\EC.Sites.WWW.Web\Content\css\stylesmain-IE.css<
http://www.midwayusa.com%5CEC.Sites.WWW.Web%5CContent%5Ccss%5Cstylesmain-IE.css>'

because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath,
Boolean
bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options, String
msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append,
Boolean
checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents,
Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding
encoding)
at

SassyStudio.Integration.LibSass.LibSassNetDocumentCompiler.Compile(FileInfo
source, FileInfo output)
at SassyStudio.Editor.GenerateCssOnSave.GenerateCss(DateTime time,
String
path)

It happens every once in awhile when i save a scss file. I haven't
found a
solution yet. Sometimes restarting visual studio will fix it but not
every
time.

Reply to this email directly or view it on GitHub<
https://github.com/darrenkopp/SassyStudio/issues/54>
.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-37714206
.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants