fstiewitz / build-tools-cpp

Build your projects in atom
https://atom.io/packages/build-tools
MIT License
31 stars 6 forks source link

Build Folder #7

Closed kzahedi closed 9 years ago

kzahedi commented 9 years ago

Hi,

I have two issues:

  1. If I set the directory in the settings panel, it will not be stored and is lost, when I restart atom
  2. I would like to set it depending on the currently open project (project-manager)

Is there a way to solve the second issue (which would make the first obsolete too).

Cheers, Keyan

fstiewitz commented 9 years ago

Hi,

The problem with the settings panel is that you cannot set them per-project. I added per-project settings to my package by using atom's serializer, which saves the state of all packages like a project manager. It is not the best solution but it seems to work for most people. I am already working on another issue I found, which may explain your problems. This might help:

  1. Close atom
  2. Delete the storage file ( on my Linux it's ~/.atom/storage/editor-*, don't know about Windows )
  3. Open atom again and enter your settings

Please let me know if it helped.

kzahedi commented 9 years ago

Thanks. It solves part of the problem. I use cmake and out-source-builds, which means that my build directories are not a subdirectory of my source directory. They are usually stored in e.g. ~/projects/builds/. So I would like to set the working or build directory depending on the project that I am working on.

In VIM i use the package "vimprj" for this purpose, which looks for a ".vimprj" directory in the current project (current parent dir) and reads all vim files from there. Here I can easily set project specific configuration.

fstiewitz commented 9 years ago

Atom's serializer works like vimprj, the only difference is that Atom does not pollute the project dir with editor configuration files. The Build folder setting supports absolute and relative paths, so out-of-source-builds should not be a problem.

kzahedi commented 9 years ago

Thank you for the pointers. I will look that up.