Visual Studio not working correctly inside vault folder

Hi community!

First of all, thank you all so much for such a great software! I was looking for something like this for months and finally found it!

However, I have very bad problem, which if unable to solve, I’d be forced to try to look somewhere else or stop using mounting encrypting software at all.

As a developer, I’m using third party software for work, including Visual Studio from Microsoft. My idea to setup Cryptomator was having a folder, which would be encrypted for cloud providers, but on the other hand also synced. In it, I would store my sources and work on them, so I won’t be worried from having them lost after power outage or disk failure after allnighter coding. Experienced that multiple times… not funny :smiley:

My problem is simple. When I create Project/Solution inside my (decrypted) vault folder, I’m unable to compile/link/run from within it, when using Visual Studio. I can use compiler manually, however, even though, syntax highlighting is not working as it should. All in all, I can’t use my workflow as usually, so I’m forced to work outside of vault, so I’m sadly getting no benefit from using Cryptomator. :cry:

First run error:

Build started...
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1>ConsoleApplication1.cpp
1>C:\Users\MYUSER\Documents\Decrypted_Vault\ConsoleApplication1\ConsoleApplication1.cpp(21,1): fatal  error C1001: Internal compiler error.
1>(compiler file 'msc1.cpp', line 1592)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>If possible please provide a repro here: https://developercommunity.visualstudio.com
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>INTERNAL COMPILER ERROR in 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe'
1>    Please choose the Technical Support command on the Visual C++
1>    Help menu, or open the Technical Support help file for more information
1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 00:03,770 ==========

Second+ run error:

Build started...
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1>ConsoleApplication1.cpp
1>C:\Users\MYUSER\Documents\Decrypted_Vault\ConsoleApplication1\ConsoleApplication1.cpp : fatal  error C1033: cannot open program database 'C:\Users\MYUSER\Documents\Decrypted_Vault\ConsoleApplication1\x64\Debug\vc143.idb'
1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 00:00,749 ==========

Should you need any additional info to be able to help or fix, I’m ready to provide :wink: I’d really love to see it working!

Thanks.

Hi Alfonzi,

which Volume type do you use? Under Windows, I got the best results with Dokany. If you use Fuse or WebDAV, give Dokany a chance.

Could it be, that Visual Studio needs admin authority in some cases (e.g. compiling)? Try to start Cryptomator as Administrator and see, whether your problems remain.

Bfn
Michael

Hi Michael,

Thank you so much for your input!

First I tried running Cryptomator with admin privileges, however without any success. Then, I downloaded Dokany, latest version 1.*, as I found out, that versions from 2.* have some problems with Cryptomator.

There is slight improvement, because when I use Visual Studio Code (lightweight version of Visual Studio), syntax highlighting now works correctly (seems like, its able now to find path to included libraries). When I was using FUSE even this wasnt working.
However, syntax highlightning in Visual Studio and compiling is still not working, even with this Dokany filesystem. :frowning_face:

Any other tips much appreciated.

Thanks!

Hi Alfonzi,

sorry, but my Visual Studio knowledge is nearly zero and I can’t give you any sound advice. VS as a Microsoft IDE will be highly integrated with Windows, .NET and so on. Maybe, your problems are based on the compatibility limits between Dokany / FUSE and NTFS. But that are really only assumptions.

Good luck for your further investigation :blush::raised_hand_with_fingers_splayed:

Bfn
Michael