Qt Creator with sshfs
-
Hello everyone, I'm new to qt and this is my first post here, so I apologize in advance if I sound clueless.
I'm trying to set up a system where I have a qt project on a desktop running Ubuntu 20.04.4, and am able to edit it from my Mac laptop using sshfs. So far I am really close to making this work. I'm able to mount the project with sshfs and open the .pro file in qt creator for macOS, but I am not able to save changes to the code. I get this error:
Error while saving file: Cannot write file /Users/.../main.cpp: Function not implemented
I can edit the files and save them successfully using VS Code, textEdit, and every other text editor I've tried, except for qt creator.
I read somewhere that this problem has to do with qt creator using extended attributes, which are not supported by ssh. I can't find where I read this, and I can't confirm if it's true, but it seems like a place to start. Is there some way to reconfigure qt creator to not use extended attributes? Is there maybe an easier way to do what I'm trying to do here?
Thanks!
-
Hi and welcome to devnet,
I currently don't remember that part related extended attributes for Qt Creator however the recommended way to work with a code base on several different different OSs is to use a VCS like git and have a checkout on each machine. That way you avoid getting incompatible settings loaded by your editors. It will also handle for you line ending conversions (i.e. Windows VS Unix likes).
You do not need any services if you don't want to use GitLab, GitHub or the likes. Git allows you to create repositories locally.
-
In terms of speed, local usually outperforms remote :-)