gargl3blaster

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • gargl3blaster
    Participant

    Hi,

    I enabled the diag console, cleared contents, tryed to save the SMAkeLists.txt and got the following diag output:

     

     

    Uploading 1 file(s) with SCP...
    failed to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt: LIBSSH2_ERROR_SCP_PROTOCOL while trying to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt
    ------------------ je2 ------------------
    je2: LIBSSH2_ERROR_SCP_PROTOCOL while trying to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt
       at dq1.g2(String d, Int64 c, DateTime a, Nullable`1 b)
       at vl2.u(String c, List`1 e, vo a, a d, nr1 b)
    Uploading 1 file(s) with SCP...
    failed to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt: LIBSSH2_ERROR_SCP_PROTOCOL while trying to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt
    ------------------ je2 ------------------
    je2: LIBSSH2_ERROR_SCP_PROTOCOL while trying to upload /mnt/hgfs/vmshare/codebase/coreapps/myEXE/CMakeLists.txt
       at dq1.g2(String d, Int64 c, DateTime a, Nullable`1 b)
       at vl2.u(String c, List`1 e, vo a, a d, nr1 b)
    
    • This reply was modified 4 years, 5 months ago by gargl3blaster.
    gargl3blaster
    Participant

    So, as far as I understand, the file permissions are there, except if i am using the VS built-in editor to edit the file (this is not limited to one file but all source files EXCEPT the CMakeLists.txt files).

    Unfortunately, I have to revise my own previous statement. For the first time, i am also unable to edit a CMakeLists.txt file right now.

    To add insult to injury, i cannot launch a new SSH console because it says “No active SSH session”.

    The SSH connection to the VM works when I test the conenction via the SSH conenction manger though. From there, I can also launch a console, which defaults to smarTTY. With both nano and the bult-in editor I can edit the CMakeLists.txt in question.

    At least that makes the issue somewhat more consistent, because it was inexplicable to me why there are no issues with CMake files but only source files..

    Attachments:
    You must be logged in to view attached files.
    gargl3blaster
    Participant

    Hello again,

    after working on another project, i am revisiting my pertaining issue with write permissions.

    As requested, I tried to edit a source file natively in VS, which was not possible. I then tried the following options:

    1. Editing the exact file with an SSH console and nano -> works.
    2. Opening a new smarTTY Session in a separate window:
      1. editing the exact file with nano -> works.
      2. editing the exact file with the smarTTY built-in editor -> works, but asked me if I want to convert CRLF into LF [yes].

    So, as far as I understand, the file permissions are there, except if i am using the VS built-in editor to edit the file (this is not limited to one file but all source files EXCEPT the CMakeLists.txt files).
    Please let me know what else I could do to help you debug this.

    Cheers,
    Alex

    gargl3blaster
    Participant

    Sorry for misunderstanding; I failed to edit another file and immediately tested that specific file and do have write permissions via SSH, see attachments.
    The same goes if I natively test inside a terminal in my VM.

    I have experimented in the beginning with the option “Source on windows, upload changed files during build to Linux” but have quickly abandoned it due to problems with inaccurate timestamps, which led to all my codebase being transferred to the linux VM on every build. The direct SSH access and placing the code on a VM shared folder so its accessible from both sides seemed like the best option for my use case.

     

    Attachments:
    You must be logged in to view attached files.
    gargl3blaster
    Participant

    Hi and thanks for the fast response.

    I ran the test on the VM shared folder where my project resides in and the user I use for logging in (the only configured user in my VM, a sudoer) does have write permissions. Intermittently / just after setting it up I was able to edit source files in said project in the past, that is why I was surprised that I seem to have lost that privilege somehow. Also, the CMakeLists.txt files which reside in the same folder are editable.. is there some thing I could have done to mixup / damage the file access permissions? I do not want to run into this phenomenon over and over, if I set up a clean project again.

    I also migrated the project to my home folder and created a new visaulGDB project (import), where I was able to edit and save a source file. However, I do not want my codebase inside the debian VM but rather on my windows host, because I parallely develop the code for windows and want to do that natively.

    Btw. the copy of my project in my home folder has the same issue no. 2 as well (I cannot reload the cmake project). Any thoughts?

    Cheers,
    Alex

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)