Code::Blocks Forums

User forums => Help => Topic started by: c-freak on April 06, 2021, 10:55:21 pm

Title: Error "The project file does not exist ..." when trying to open multiple project
Post by: c-freak on April 06, 2021, 10:55:21 pm
Hi,

I'm teaching programming in C. I've created a booklet as PDF file; it contains small example programs and explanation.

Each example program comes with a hyperref "run:Example1/Example1.cbp", "run:Example2/Example2.cbp", and so on.

The expected behavior is: One clicks at the href "run:Example1/Example1.cbp" --> C:B opens, shows the single source folder containing main(), allows for compile & execute.
One clicks at another href "run:Example2/Example2.cbp" --> A second project gets opened, C:B shows the single source folder showing second main(), allows for compile & execute.
And so on for "run:Example3/Example3.cbp", "run:Example4/Example4.cbp", and so on.

Everything works fine for me and 18 of my students, they are using mixed partly Windows and partly OS-X.

It does not work for student #19, he uses Windows 10: If C:B is not yet opened, it's fine. If project #1 is opened, clicking on the next href yields "The project file does not exist ...", but in fact it does exist! He has to close C:B and open again with Example2.cbp to make the next example accessible.

Trying to launch C:B several times (instead of adding the next project to a single C:B instance) doesn't change this behaviour.

Any Ideas?

Thanks to all - Greg.
Title: Re: Error "The project file does not exist ..." when trying to open multiple project
Post by: oBFusCATed on April 07, 2021, 09:25:48 am
What is the command executed when someone clicks on  "run:Example1/Example1.cbp"?
What is different for student 19? Different C::B version?
Title: Re: Error "The project file does not exist ..." when trying to open multiple project
Post by: c-freak on April 07, 2021, 10:03:44 am
1. Executed is "C:\Program Files\CodeBlocks\codeblocks.exe Example1\Example1.cbp"
2. If only I knew ...
3. All 19 have same version which is latest stable binary - all installed together at beginning of my course ...
Title: Re: Error "The project file does not exist ..." when trying to open multiple project
Post by: c-freak on April 07, 2021, 10:30:03 am
Edit: For better understanding, I've created attachment. It contains a small sample PDF with href: ... links to three existing small C:B projects, located in Example1 ... Example3 resp.
Title: Re: Error "The project file does not exist ..." when trying to open multiple project
Post by: Commaster on April 07, 2021, 01:53:01 pm
I have a hunch about this issue since we discussed a related topic recently...

Settings->Environment->General settings->Untick Allow only one running instance
Settings->Environment->General settings-> untick use an already running instance

Could it be that 18 students and student #19 have different states of those options?
Or student #19 doesn't unpack the archive into a folder first and runs directly from it?
Otherwise it would be helpful to know if anyone else has the same windows 10 version...
Title: Re: Error "The project file does not exist ..." when trying to open multiple project
Post by: c-freak on April 07, 2021, 10:09:28 pm
Quote
Settings->Environment->General settings->Untick Allow only one running instance

This one did solve the problem! Many thanks!
Asking myself why 19 times ok (me + 18 students) and one time faulty - voodoo!

BR, Greg