Recent

Author Topic: Stuck in one project  (Read 3470 times)

gabrieljim

  • New Member
  • *
  • Posts: 13
Stuck in one project
« on: June 11, 2018, 09:32:06 pm »
Hey everyone, I have the latest Lazarus version (1.8.4), everything works great, but now I'm having a little bug.
Let's say I have project A, and I open it on Lazarus, when I go and open project B, the header still shows "Lazarus - Project A", and when I try to compile/run, it runs project A instead of B. I tried to reinstall and it worked for a moment but then I got the same bug where I get stuck in one project and can't run anything else.
I hope you can help me!

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Stuck in one project
« Reply #1 on: June 11, 2018, 10:01:48 pm »
Has project B been saved in its own directory?

gabrieljim

  • New Member
  • *
  • Posts: 13
Re: Stuck in one project
« Reply #2 on: June 12, 2018, 01:20:26 am »
Yep, it doesn't happen with that one specifically tho, I can't open anything else

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Stuck in one project
« Reply #3 on: June 12, 2018, 01:40:14 am »
How did you save the 2nd project then? Or where you able to switch before?

How do you try to open another project?
- Drag and drop ? (Does it ask to open project)
- Menu: Project => open ? (This should do)

When your project is open, and you do
  Menu -> project -> View project source
which file does it show? (check statusbar for full path)

gabrieljim

  • New Member
  • *
  • Posts: 13
Re: Stuck in one project
« Reply #4 on: June 12, 2018, 01:47:28 am »
How did you save the 2nd project then? Or where you able to switch before?

How do you try to open another project?
- Drag and drop ? (Does it ask to open project)
- Menu: Project => open ? (This should do)

When your project is open, and you do
  Menu -> project -> View project source
which file does it show? (check statusbar for full path)

Thank you for answering!
Yes, I was able to switch, when I reinstalled it let me switch too, but then it gets this weird bug. And I try to open the project by clicking the source file and by project -> open, but both give same result. Let me check the path

gabrieljim

  • New Member
  • *
  • Posts: 13
Re: Stuck in one project
« Reply #5 on: June 12, 2018, 01:54:01 am »
Yeah it opens another tab with the Project A source file, ugh, I wonder what's the problem here

gabrieljim

  • New Member
  • *
  • Posts: 13
Re: Stuck in one project
« Reply #6 on: June 12, 2018, 02:26:15 am »
Oh! Weird solution, the bug goes away if you just drag and drop the project, now I can switch normally, thanks for suggesting it!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Stuck in one project
« Reply #7 on: June 12, 2018, 02:36:12 am »
I tried both (double click and drag and drop) an lpr file.
In both cases I get a dialog, with the choice to open as "project" or as "normal source file".

Choosing "project" and it works.

What OS do you have?
What are the exact steps to reproduce?  Did you open the lpr? or the lps?

If you do open "unit1.pas" that is not a project, and always just opens that source in the already open project.

gabrieljim

  • New Member
  • *
  • Posts: 13
Re: Stuck in one project
« Reply #8 on: June 14, 2018, 12:13:53 am »
I tried both (double click and drag and drop) an lpr file.
In both cases I get a dialog, with the choice to open as "project" or as "normal source file".

Choosing "project" and it works.

What OS do you have?
What are the exact steps to reproduce?  Did you open the lpr? or the lps?

If you do open "unit1.pas" that is not a project, and always just opens that source in the already open project.

I'm on Windows 7 64 bit.
Ah, I see, so that's why i wasn't able to change normally,i did tried opening another file and it switches normally.
Sorry for the dumb question!

 

TinyPortal © 2005-2018