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

Windows: Can't overwrite file while compilation error dialog open #604

Closed
philip-healy opened this issue Sep 5, 2017 · 4 comments
Closed

Comments

@philip-healy
Copy link

I'm using lein-figwheel v0.5.13 running on Windows Subsystem for Linux on Windows 10.

I'm editing my source files using IntelliJ/Cursive running as a Windows app.

Figwheel works as normal if I save a source file with no compilation errors. If I save a file with compilation error, the "Compilation Error" dialog appears in my browser. While this dialog is open I can't save the file again in IntelliJ - I need to close the dialog first.

Is Figwheel holding a lock on the source file while the "Compilation Error" dialog is open?

@bhauman
Copy link
Owner

bhauman commented Sep 6, 2017

Figwheel does a slurp to read the source of the file and slurp uses with-open which simply reads the file. No lock required. I think your env might be the suspicious outlier in this case. The compiler writes to files but not Figwheel.

@bhauman
Copy link
Owner

bhauman commented Sep 6, 2017

There is another windows 10 filesystem related issue in here somewhere ...

@philip-healy
Copy link
Author

Thanks for responding so quickly Bruce. I'll try the same workflow with the Windows version of Leiningen and see if the issue still crops up.

@philip-healy
Copy link
Author

It seems to be working fine with Leiningen running natively under Windows. So, this appears to be a WSL compatability issue. I think we can close this as WSL is in beta. A supported version of WSL will be shipping with the upcoming Fall Creators Update. I'll check again once I have updated to the supported version.

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