How to get started with CLion (and issue "Failed to update files permissions inside [...]")

已回答

I've been trying to get CLion running for a few hours now and now I'm really stuck wondering what exactly the problem is. I wanted to run the IDE with cygwin as cygwin is also what we use at my workplace, however I've been running into a few issues...

First of all, did I import everything correctly? CLion wasn't able to find anything automatically so I had to add everything manually... Make is now cmake.exe, c compiler is gcc.exe, c++ compiler is g++.exe. I'm pretty sure at least one of those is completely wrong but the number of packages available when looking for, f.e. "gcc" was utterly overwhelming at first. Debugger shows "Use cygwin GDB".

 

Secondly, when I want to reload the CMake project, I get the following error message...

"Failed to update files permissions inside [...]

Cygwin requires correct permissions for the CMake files, otherwise CMake will fail to generate the project.
IDE tried to work this around, but failed; you can do this workaround manually:
1) copy D:\Program Files\JetBrains\CLion 2017.3\bin\cmake_cygwin to C:\Users\Jan Grünenwald\.CLion2017.3\system\cygwin_cmake
2) in Cygwin console execute 'chmod -R u+rwx C:\Users\Jan Grünenwald\.CLion2017.3\system\cygwin_cmake'"

I tried to do exactly that, but so far that doesn't seem to have worked. The folder that I copy over to my user directory disappears almost instantly, probably when CMake tries to reload the project? cygwin accepts the command but nothing changes after that. What am I doing wrong? I'm running CLion on Windows 10, if that's relevant.

0

Hi! 

The packages that CLion needs are:

  • gcc-g++
  • make
  • GDB

Please take a look at our quick tutorial on configuring CLion on Windows, it contains information about Cygwin.

As for the issue, please see this thicket in our tracker and try the suggested workarounds.

0
Avatar
Permanently deleted user

Hello Anna,

it's been a while since I last checked in. I just noticed your answer to my question. The thing is, I had trouble making out which one was the correct package in the tons of available packages during cygwin setup. When I get home on Friday I will try the suggested workaround in the ticket you linked me. I will post again in ~3 days, hopefully your suggestion will fix my issue!

0

请先登录再写评论。