Which Project is loaded in IDE?

Is there a way to get to know which project is loaded in an IDE window?

Filename including extension are displayed in the window title bar, but I need the full path too in order to know exactly what it is. Is this information available somewhere from within the IDE?

Why don’t you tell us what you’re trying to automate and maybe someone can tell you how it’s done?

I am not trying to automate anything. I am trying to find, what project is loaded. I do have several versions (branches or snapshots in time) saved on my system. Obviously, they all have the same name, So I need to know more, i.e. the path the project has been loaded from. I will use that information to decide whether I need to discard, save or save As any pending changes.

How should one handle branches of a project without getting confused when the IDE does not easily provide full identification of the project loaded?

On Mac you can hold one of the modifier keys (option or command, can’t remember which) and click the project icon in the title bar. You’ll see the full path in the menu.

And switch to a proper version control system.

I do use a proper version control system. With a version control system it is even easier to have multiple branches / versions in various working directories. And what would it help? The IDE is even less able to identify the project against what it is in the repository.

Thanks, I am using Windows and Linux, though.

It wouldn’t matter, since it’s always the same project. Your version control system tells you which branch/tag/commit you’re on.

1 Like

He could use ProjectShellPath and then do a git call to find out what the branch is and show it in a dialog.

I don’t agree, obviously it is relevant which revision / commit the files in your working folder are based on, and what pending modifications you have done to those files. Yes it is the same project, but the branch / revision and pending modifications matter, and in regard to what you are working on, this matters. And the version control system is not able to tell you anything without knowing the state of your working folder.

Um. Ok I guess. I just look at my GitHub app and can see everything I need to know. But you do you I guess.

2 Likes

Looks like you use version control in a different way.
I only have 1 working folder per project. Each project have many branches. I use git to change the branch I will work on, can commit changes or just drop them as I want.
I guess that you need to work on different branches at the same time and need several working folders to do that. I can’t work like that.

I’ve needed to in the past, but solved it by checking out another working copy.

1 Like

I guess Stefan works with different working copies with specific branch on each folder.

Yes, that is what I do.

why ?

1 Like
  • there is the trunk (main branch, current version) on which I need to integration-test developments
  • there’s one or more feature branch I use for developing different areas/features until they are ready for integration
  • there may be tag versions, i.e. corresponding to released app versions, used for bug finding and potentially to develop patches for bug fixes for older versions which need to get published before the next major or minor release.
  • there may be other branches I need to partially merge with one of my branches