nest-simulator icon indicating copy to clipboard operation
nest-simulator copied to clipboard

How to import the NEST CMake project into CLion

Open gtrensch opened this issue 4 years ago • 3 comments

How to import the NEST CMake project into CLion

Describe the flaw A clear description of what the error or weakness in the documentation is.

Suggest an improvement A clear description of what you want to change or add to the documentation.

Supporting materials If applicable, add links or screenshots to help explain the flaw.

Desktop/Environment If applicable, please specify the environment this is relevant for (e.g. "documentation regarding MacOS" or "does not render in Firefox").

Additional context Add any other context about the documentation flaw here.

gtrensch avatar Feb 12 '21 09:02 gtrensch

Issue automatically marked stale!

github-actions[bot] avatar Sep 03 '21 08:09 github-actions[bot]

@gtrensch Is this issue still relevant or did you manage to import NEST into CLion using CMake?

I tried to get it working together with @med-ayssar , but we didn't manage to get it running as we couldn't find a way to tell CMake in CLion which Python environment to use. Did someone find a solution for this already?

You don't need CMake to work to develop for NEST in CLion though. Running CMake from the command line once and then working with Make inside CLion works totally fine. It might make sense to write down the steps to also debug NEST in CLion though, where would be a good place to do that?

JanVogelsang avatar Sep 14 '22 14:09 JanVogelsang

@med-ayssar https://github.com/nest/nest-simulator/blob/master/doc/htmldoc/developer_space/workflows/nest_with_ides.rst Let's add a new entry for CLion there and add the debugging workflow.

JanVogelsang avatar Sep 14 '22 14:09 JanVogelsang

Issue automatically marked stale!

github-actions[bot] avatar Jan 30 '23 08:01 github-actions[bot]

I figured out a way to get it working, however I am unsure how clean and universal the solution is.
In the CMake options add the -DPython_ROOT_DIR= option and set it to the bin directory of your python environment. This enables CMake's FindPython module to locate the python interpreter. @terhorstd Should this work in most cases or did it just work in my case?

JanVogelsang avatar Feb 01 '23 14:02 JanVogelsang

@JanVogelsang, can you do this? Maybe we need another person with clion to try this. Does someone come to mind?

terhorstd avatar Aug 22 '23 12:08 terhorstd

In order to work on this ticket, someone needs a paid-for license for CLion. Educational licenses are for classroom use only and open source licenses are only for volunteer based projects, not for projects funded by organisations or paying their core developers. Unless some NEST developer(s) actively use CLion and therefore have a paid license, I suggest we close this as "won't fix".

heplesser avatar Aug 22 '23 13:08 heplesser

I was developing NEST as part of my master's thesis, unpaid and purely educational, and was thus using the student license. I can share my experience, but don't know of any of the paid developers that uses CLion.

JanVogelsang avatar Aug 22 '23 16:08 JanVogelsang

closing as won't fix - please reopen if interested developers want to investigate further.

jessica-mitchell avatar Nov 28 '23 13:11 jessica-mitchell