Qt Creator on Windows and symlinks



  • Has anyone else noticed that Qt creator doesn't seem to play nicely with windows symlinks (not junctions - symlinks created with the mklink command)? I can't get qt creator to save files (.cpp files) pointed to by symlinks. qmake seems to be a-ok - I can build files well enough. Qt creator can open the source files, but it can't save them - it complains that the disk is full (and it isn't). Notepad++ and other text editors seem to be able to open and save files pointed to by these symlinks, but not Qt creator?


  • Moderators

    Did you "file a bug report":https://bugreports.qt-project.org/ ?

    I am not aware of ever reading about this before, which could mean that this broke recently or that nobody ever uses symlinks on windows:-)



  • bq. Did you file a bug report [bugreports.qt-project.org] ?

    No - but I'll do that now.

    bq. I am not aware of ever reading about this before, which could mean that this broke recently or that nobody ever uses symlinks on windows:-)

    I think that's exactly the issue - Microsoft has never exposed a gui interface for creating and maintaining symlinks and junctions.



  • I've had a closer look at this, and I think the problem was actually my symlinks, not Qt Creator. I had specified my symlinks as pointing to

    \Users\ted\Documents\source\qml\somefile.qml

    rather than

    c:\Users\ted\Documents\source\qml\somefile.qml

    I can't quite explain why this worked in notepad++ but not qt creator. I think the problem is that if the process's current working directory is on the same drive (c:), it dereferences properly, but if it's on a different drive, it won't. I tried it again and I was able to get notepad++ to fail. I rewrote the symlinks with the drive letter in them, and Qt creator works just fine now.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.