Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "clion"
Anything with Jetbrains on the cover, IDEA, Android Studio, Clion. Can't imagine how I'd work if these IDEs weren't doing half the work for me.12
This is the day guys.
Finally decided to move entirely to Linux.
Just swaped my old dual-booted Ubuntu/Windows HDD with an SSD and installed the lastest version of Ubuntu and all the software I needed.
I fucking love this feeling 😄😄11
I found a new hobby: coding in many text editors (or IDEs) at the same time, because "I want to find out which one is better" (I don't know why I'm actually doing this, but I can't stop)
Wait, it's not a new hobby ... I already did this with C++ with using atom and Visual Studio at the same time, then I installed Clion too and VS and Clion were both running along with atom ...31
Just bought a subscription for JetBrains.
Trying CLion debugger...
THIS SH*T IS AMAZING
Me: I love you, I love you, I love you
Me: (Hugs computer)10
Ok, so teacher (which should be something like a professional dev or whatever) assigned us a homework for a Christmas (I dont care, I can complete his assignments in like 10 minutes max). We have to do some simple shit in C++, just some loops and input + output. Nothing hard. He challenged me to write it as short as possible, so I did. My classmates have codes around 60 to 70 lines long (after propper formating). I made it 20 lines long using some pointer magic and stuff like that. I tried my code, it ran fucking perfectly, so I sent that to him. He replied that the code does not work. I tried to recompile it and it ran perfectly. Again, it does not work. Afeter 13 fucking emails he fucking finally sent me the error message. Some fucntion was not found (missing some library but literally everywhere else it works without it...). Thats strange, because it run perfectly on my Fedora with CLion, so I switch to Windows and try to run same code in Visual Studio (which we are using in school btw). Works perfectly. So I start arguing with the teacher more and more. I tried around 10 online compilers. Works fuckng everywhere. Teacher is pissed, me too. So I rewrote my whole code, added comments and shit, reinvented wheel literally everywhere. Now I have C99 standardised code over 370 lines long that run even on a fucking arduino after changing input output methods so it can work with it. It (suprisingly runs) on his PC too.
After a bit more arguing, he said that he is using CodeBlocks from fucking 2015. Wow. Just fucking wow. Even our school has some old Visual Studio (2007 I guess) and it worked there.7
You know when you've been in CLion waay to long when you press CTRL+S and CTRL+F9 to compile a small HTML/CSS project.1
Fuck. I just want to fucking use OpenCV on CLion on Windows. Why the fuck do I need twenty fucking PhD's in quantum rocket science to set up a simple project with Cmake?
During the time I just wasted trying to get the correct library to link properly, I could have rewritten all of Tesla's fucking CV functionality from scratch, but instead here I am spending literal fucking hours googling why the fuck does 'recursive_mutex' not name a fucking type in namespace 'std' on mingw.
Fuck C++ I'm going back to C# where I can literally install OpenCV and all of its fucking dependencies from nuget with ***ONE*** fucking click.6
Now that I have your attention. My problem is with "IAR embedded workbench", not so much with windows but I'll get to that.
I've used that IDE for a few years.. 2 years ago. Since then I apparently forgot how to even create a project from scratch with adding all the necessary libraries and all that.
My initial deal with a client was to give them a solution using whatever tools I deem necessary. As I recently moved to linux and IAR is not available for that os.. and I also enjoyed working with CLion and PyCharm which Are available I decide to use CLion to write my C project.
A problem was that to compile code for microcontrollers I need tools unsupported by CLion.. oh well. I can do all the compilation and uploading of the code through terminal .. so I make a bash script that does it all. Super convenient. Development is going well and all.. until they ask me for the project.
I sent them the project so that they can see my progress. They can't do shit with what I gave them because they don't even have make on their machines let alone the compiler. All they have is IAR. But the guy that wants to see the code is not really a programmer.. he is a hardware specialist so I can't expect him to do anything more than use what he knows. He doesn't need or want to learn more right now.
So I go to windows and start porting my code to an IAR project and 2 days later I am still stuck with it. FUCK. Not only was the installation process horrible but the tools I wanted to install additionally did not work as promised either.
I know it took me about 2 days to setup all I needed on linux but I was enjoying it every step of the way. While this garbage is frustrating me so much. The fact that I used to do it before adds to the pain.
I am this close to telling them to just look at my code in notepad and I can setup a vm for them in which they can compile it if they really really need to.
If they just told me from the very start that they want me to work with IAR that would have been fine. I would have never seen the easier way and would have gladly figure it out then. Not now.1
I wish there was a community version of CLion 😞
Dear JetBrains, if you read this. Today is my birthday. You can make my dev life better.3
Soo, i just downloaded unreal engine, let's connect it to clion and write / learn some cpp i guess5
Ok idk about anyone else but m facing this weird thing with CLion now...
When i run the program... It freaking shows output in RANDOM manner!!!
Like seriously, the lines which shud b output sequencially r all jumbled up!! I ran it on terminal and it works correctly...
Quite weird for something like this to happen on CLion
Btw... Other than this, i really love CLion now... Its awesome!7
Let me start this off by stating I'm a Java dev, and a noob with C++.
Thought it'd be cool to learn some OpenCL, since I want to do some maths stuff and why not learn something new.
So I sat down, installed Nvidia proprietary drivers, broke my x-org server, purged, reinstalled, rebooted and after a while I got stuff sorted out.
Then on to my IDE. I use CLion and it uses Cmake. C++ noob knows shit about Cmake, so struggle for two hours trying to figure out wtf is going on with the OpenCL libs and why they're only partially detected. Fml.
Finally, everything is configured and I'm set. I start working on a Hello World program using OpenCL. Finish it in 20 mins, all good. No output. Do some googling, check my program a million times. Nothing wrong here. Check the kernel, everything as in the tutorial.
I start checking error codes after a while reported by OpenCL (which I had no clue was a thing) and I get some code saying the program was not created properly (to run the kernel). No fucking clue what's up with that. Google around, find another tutorial, rewrite my code in case I'm using outdated code or something. Nothing.
Fast forward an hour, I find out that OpenCL has logs! So I grab some code from the website I found it on, and voila, I finally get some info on what's going on.
Get a load of this bs.
In the kernel file, so that OpenCL knows that it's a function to run, you have to put __kernel. But in all the places I read, it said to put it as _kernel.
Add the underscore, compile, run and everything is perfect.
Then I tried just putting 'kernel'. Also compiles and runs fine.
Two hours hours and my program was fixed by adding an underscore. IF ONLY C++ GAVE AN INDICATION OF WHAT BLEW UP INSTEAD OF SITTING BACK AND BEING LIKE "oh wow man feels bad, work some magic and try again" THEN THIS WOULD NOT HAVE TAKEN SO LONG.
Then again, it was OpenCL that was being shitty with its styling enforcement or whatever the hell the underscore business is. But screw it. C++ eats shit too for this. Sure, maybe Java babies you by giving you the exact error and position that the error took place at. But at least that way you don't waste hours of your life chasing invisible bugs 😠😠
I'm going to eat some food... Too much energy was consumed fighting the system... Then I'll get back to OpenCL because 😇 but that doesn't make it less bs.1
Today, I decided to learn build a c++ project using cmake. Since I've never done a big project in C++ I have no experience with these stuff.
Couple of hours for researching and trying to understand how that thing works, how to specify things, this and that. Wrote a small program for testing.
Everything was fine. Makefile was generated and program was worked.
Then.... Somehow, sublime text started to give me error messages like, 'the header file you included is not found.' I hit the makefile again, the built was successfull... I know that, need to add -I to compiler flag so that it can find the files. But in sublime text constantly refuses my 'possible' solutions.
Even ycm in vim does this. They expected me to write includes like '../thispkcg/include/header.h'
Where did i go wrong ..............
Btw it works like a charm in cLion I don't know why..2
Is there any alternative for CLion? I can't use codeblocks since there is no dark theme(sounds silly but I prefer dark theme).9
The new windows subsystem for Linux might severely slow compilation time for me.
Microsoft is releasing a preview of WSL 2 which works fundamentally different to WSL 1, which I currently use.
For those who don't know, WSL (or Windows Subsystem for Linux) used to be a compatibility layer, which "translated" Linux syscalls to Windows syscalls. This enables the execution of Linux applications on Windows. The new WSL (WSL 2) doesn't do any of that, instead, it is a highly optimised Virtual Machine.
So don't get me wrong from a performance point of view there is no Issue, RAM and CPU usage is truly astonishingly small and performance of Linux applications is much improved over WSL 1.
BUT, apparently, accessing files stored on Windows through Linux is now piss slow.
Great, truly outstanding.
Why is this a problem? Well, I use WSL to develop c++ Linux applications using CLion, the way this works is that you set up an ssh server in WSL, which CLion uses to do compilations.
One _needs_ to have the project files stored on Windows as otherwise CLion on Windows can't access them.
If I wanted a Linux VM I would have installed one.
CMake with CLion on Windows is driving me crazy, I can't make it work even if I follow the guides :/
There is some better automation tools(for mouse/GUIs users) where I can setup my dependencies in a more straightforward way rather than learning/trying-to-understand this scripts?
I want to switch from Window$ on my laptop to Linux of some kind and I need some c/c++ IDE. I thought about CLion but I want some of your's recommendations.5
My favorite tools:
IDEs : Jetbrain's IDEs intelliJ, pyCharm, ...etc.
The only exception is Visual Studio for C++ ( for no reason but I haven't tried Clion yet)
Text editor: atom
GIT GUI: Gitkraken, or just a terminal
Music player: Spotify
It's always a matter of much is there to do and in what language...
There is the IDE-Zone, which is dominated by IntelliJ (CLion be praised when you do Rust or C++) for large stuff and heavy refactorings.
Always disputted by VS Code with synced settings. It's nice and comfy and has every imaginable language supported good enough, especially when its smaller change in native code or web/scripting stuff.
Then there is the "small changes" space, where Vim and VS Code struggle whos faster or which way sticks better in my brain...
might be you SCP stuff down from a box and edit it to re-upload, or you use the ever-present vi (no "m" unfortunately)
sometimes things are more easy for multi-caret editing (Ctrl-D or Alt-J), and sometimes you just want to ":%s/foo/bar/g" in vim.
I am sure that each of these things are perfectly possible in each of the editors, but there is just reflexes in my editor choices.
I try to stay flexible and discover strenghts of each one of my weapon of choice and did change the favorites. (Atom, Brackets, Eclipse, Netbeans, ...)
However there are some things I tried often and they are simply not working for me...
might for you. I don't care. and I'll just use some space to piss people off, because this is supposed to be a rant:
nano just feels wrong, emacs is pestilence from satan that was meant for tentacles instead of fingers, sublime does cost money but should not, gives me a constant guilty feeling (and I don't like that) that, and all the editors from various desktop environments are wasted developer ressources.
My first CS class is a basic introductory C++ course. Won't even be going into OOP.
So I want to use my own laptop for the course, but I have a Mac. Thought I could use Visual Studio for Mac for the class, but turns out Visual Studio for Mac is really only for Multiplatform development with C#. Ok, then, screw that. Just wasted 20GB and an evening installing that just to uninstall it.
I'm using JetBrain's CLion for now, but apparently we'll be doing some graphics work later this semester so I'm going to need to install Windows via Bootcamp and Visual Studio there... but my SSD is too small...
I currently have Windows/Bootcamp installed on a 1TB external hard disk but that is slow af. My SSD is only 250GB and I've already used half of it for various programs I need (Adobe crap plus Logic crap cuz I make videos and music).
My only option here is to buy a new SSD but only one manufacturer sells those (OWC), and a 1TB SSD is stupid expensive, $700 almost as much as I paid for this laptop used.
So, I guess I'm just kinda deciding right now whether upgrading storage is really worth it...6
Any recommendations for a C/C++ IDE for Linux.
I really like PyCharm and IntelliJ for python and java but can't afford to splash out on CLion for C++.
Eclipse is completely out, I have too much of that at work and it is a total pain.
My current solution would be vim and clang but I'd like something more IDE like.10
Curious to know what devRant thinks about a macbook air (newest model) with i5 and 8 gb ram for a developer.
Usage consists mainly of running jetbrains IDEs, like IDEA and CLion, maybe some front end using sublime text.
I know it would work now, but I'm curious if it would still be decent in, say, 2 or 3 years. Thanks!2
* shell scripts -- vim
* on remote machines -- vim
* java -- IntelliJ
* web (html/css/js/wtv) -- WebStorm
* C/C++ -- CLion
Has anyone here had a good experience with CLion? Looking for a cross platform alternative to Visual Studio10