EasyClangComplete: The requested operation cannot be performed on a file with a user-mapped section open.
Hello I have problem - and I’m always able to reproduce it. If you have single file that is bigger than hello world example (https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Developer/BlueprintProfiler/Private/BlueprintProfiler.cpp <- used this one to reproduce) make sure there are some error like missing symbols etc (i just setup single .cpp file) then try to save it relatively quickly then you get error I mentioned in the title.
I think it’s some timing issue between saving file and opening it by clang to compile.
Log: https://gist.github.com/RootKiller/0ab780079f1b85761c5c23fa56b5f60b
Version:
- Sublime Text version:
3.0, Build 3143 - which system are you on:
Windows 10 HP 64bit
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 16 (10 by maintainers)
Commits related to this issue
- Use unsaved file content when reparsing (#410) Fix #321 — committed to niosus/EasyClangComplete by niosus 6 years ago
@niosus Also, worth mentioning this is just not happening very rarely, it happens with all files containing errors, so i’d say this bug is critical as it makes the plugin basically unusable
I had the same issue and reverting back to clang 4.0.1 fixed it. (UPDATE: i actually got the error one more time after downgrade to 4.0.1, but it worked after that, maybe less of an issue with 4.0.1) Thanks for the post and looking into this, hopefully @niosus finds a fix with 5.0.
@niosus I’ve reverted back from clang5.0 to clang4.0.1 and the error dissapeared magically… Hopefully that can give you more clues about the current bug and how to solve it