Page 66 of 104
Posted: Wed Jun 04, 2008 5:17 pm
by gnozal
Confirmed.
Should be fixed in build 707.
Using Projects
Posted: Wed Jun 11, 2008 8:14 pm
by LDSang
Hello All. Forgive me if this has been discussed, but I haven't gone thru all 64 pages of this thread. Does anyone have instructions on how to create and use projects? I'm not sure how to include files in a project. The manual says
"The file list, where every name of all open source code files is saved,". I assumed that meant it would save open files in the file list, but that didn't work.
I also tried something seemingly simple like changing the working directory, but it still created the main file in a default location (under the PureBasic install) and gives the option to create each subsequent file in this same default path despite the working Directory under Project Options being set to another location. Thanks.
Re: Using Projects
Posted: Thu Jun 12, 2008 7:54 am
by gnozal
LDSang wrote:Does anyone have instructions on how to create and use projects? I'm not sure how to include files in a project. The manual says
"The file list, where every name of all open source code files is saved,". I assumed that meant it would save open files in the file list, but that didn't work.
How to make a project (i.e. filelist) :
Let's assume your project has 3 files : Main.pb, 1.pb and 2.pb.
1. Open the 3 files in jaPBe.
2. Switch to 2.pb, use menu Project -> MainFile -> Main.pb
3. Save 2.pb
4. Switch to 1.pb, use menu Project -> MainFile -> Main.pb
5. Save 1.pb
6. Switch to Main.pb, use menu File -> Save FileList -> MyProject
MyProject.pbfl is created
7. Close all files
8. Quit jaPBe
9. Restart jaPBe
10. Use menu File -> Open -> MyProject.pbfl
Your project is loaded, Main.pb is the main file.
For example, if you compile 1.pb, all the project is compiled with Main.pb as main file.
Posted: Fri Jun 13, 2008 3:05 am
by LDSang
Thanks for the project instructions! Got another issue. When I include an icon through the Compiler Options in the PureBasic IDE everything compiles ok and I can create an exe with the icon on it. When I include the icon through the Project options in jaPBe for the same file I get the following:
21:55:54 Resource error
PORC:PureBasic.rc(1): error: Invalid or corrupt file: 'C:\Documents and Settings\PureBasic\path\icon.ico'.
Again, this is for the same source files and the same icon that works in the PureBasic IDE. Is there somewhere else I should be including the icon? I couldn't find a "Compiler options" section like in the PB IDE. Thanks.
Posted: Fri Jun 13, 2008 7:40 am
by gnozal
LDSang wrote:When I include an icon through the Compiler Options in the PureBasic IDE everything compiles ok and I can create an exe with the icon on it.
The application icon is set in Project -> Project options -> Use icon.
LDSang wrote:When I include the icon through the Project options in jaPBe for the same file I get the following:
21:55:54 Resource error
PORC:PureBasic.rc(1): error: Invalid or corrupt file: 'C:\Documents and Settings\PureBasic\path\icon.ico'.
jaPBe uses PORC to add an icon to a project. I don't know how the PB IDE does it.
Anyway, I never had an issue with this feature. Could you post a link to this icon ? I can only reproduce this error if I use an invalid file (not a valid icon).
Compiler Error - Wrong source file
Posted: Fri Jun 13, 2008 10:28 am
by eriansa
Sorry to bother you again, but since the last update following annoyance :
when compiling with an error (and with multi-file sources), the IDE shows now the errorline on the wrong file (the one that is currently open, instead of the one in which the error occurs)ยต
tia.
Posted: Fri Jun 13, 2008 12:01 pm
by gnozal
I can't reproduce the problem.
I have made some changes though, could you test
http://freenet-homepage.de/gnozal/jaPBe_TEST.rar ?
If it doesn't fix the issue, please post a project example so I can reproduce the problem.
Thanks.
Posted: Fri Jun 13, 2008 5:05 pm
by LDSang
gnozal wrote:jaPBe uses PORC to add an icon to a project. I don't know how the PB IDE does it.
Anyway, I never had an issue with this feature. Could you post a link to this icon ? I can only reproduce this error if I use an invalid file (not a valid icon).
Sure. Here's a link to the icon:
http://www.box.net/shared/jkeshdzwg0
Oh and adding the icon seems to work. It creates the exe with the icon and it works fine as far as I can tell, just gives the error for some reason.
I also just noticed that when I close the files I used the icon for, I created another project with totally different files and got the same error. In other words, I created a new project and it was attempting to use the same icon as the previous project. Even if the error didn't occur I don't want to use the same icon for a different project.
Just as an FYI I went to "Project Options" to remove the icon and it isn't listed for this new project, but it keeps giving the error, so it's listed somewhere. I just can't find it.
Thanks again for all your help and for creating this IDE. I really appreciate it.
Posted: Sat Jun 14, 2008 8:01 am
by gnozal
LDSang wrote:Sure. Here's a link to the icon:
http://www.box.net/shared/jkeshdzwg0
Oh and adding the icon seems to work. It creates the exe with the icon and it works fine as far as I can tell, just gives the error for some reason.
Sorry, I could not reproduce the problem with your icon either. Maybe some installation problem, I don't know.
Posted: Sat Jun 14, 2008 8:24 pm
by zxtunes.com
Strange bug, i open window for "find and replace", and when push on close this window, jpbe question about close project, as though push close project window. This bug appears from time to time.
WinXP, JaPBe 3.8.3.697
Posted: Mon Jun 16, 2008 11:53 am
by eriansa
it's solved. thx!
Posted: Mon Jun 16, 2008 8:55 pm
by LDSang
gnozal wrote:LDSang wrote:Sure. Here's a link to the icon:
http://www.box.net/shared/jkeshdzwg0
Oh and adding the icon seems to work. It creates the exe with the icon and it works fine as far as I can tell, just gives the error for some reason.
Sorry, I could not reproduce the problem with your icon either. Maybe some installation problem, I don't know.
Well is there any way to suppress the error? Just basically don't show me this one? It pops up a Requester type box with an "OK" button everytime I compile a project. I even opened a file I haven't saved in months and it gave the same error, so it's storing the path somewhere even though it isn't listed in the project options. In fact every file I opened gives the same error for the same icon despite it not being listed, even after I close and reopen the program. I was able to get this to compile without the error:
It doesn't give the error if I close all files and put that code in a new file and compile. Also, when it compiles a file and gives the error, it includes the icon with the file even though it gave the error and the icon isn't listed in the project.
Posted: Thu Jun 19, 2008 9:32 pm
by LDSang
Okay, I got really sick and tired of getting this resource error constantly on files that had nothing to do with the icon, but gave the same error. I ended up going thru the registry and other resource files and I finally found a file called "Resource.out" saved in the following location (for a default install):
C:\Program Files\PureBasic\Compilers
I removed this file, and the error stopped! Note that the text in the file is the exact text of the error, and if you change the text in the file the popup comes up with the new saved text. So somehow the error was originally given and the file apparently was supposed to be deleted and wasn't, so jaPBe saw the file and kept giving the info saved a week ago (the date it was originally created).
You may want to delete this file on startup of jaPBe in case it wasn't deleted on shutdown since the info contained would undoubtedly be obsolete, and the PureBasic IDE doesn't seem to use it as I never got the error there.
Posted: Tue Jun 24, 2008 4:50 pm
by gnozal
LDSang wrote:... I finally found a file called "Resource.out" saved in the following location (for a default install):
IIRC, this file was used by jaPBe with PB versions prior to PB4.10 ; it is not used with the newer PB versions.
jaPBe Features Request & Wishlist ;-)
Posted: Wed Jul 02, 2008 3:07 pm
by Hurga
Hi Gnozal
Here is an idea what make jaPBe (at least for me) a bit more convinient to use...
An easy way to include own snippets. With "project settings" there is "include" where some predefinded and written functions can be easy included. It would be nice if this section can be "user-defined", would say that I can add my own functions.
(Btw some includes seems a bit "out of date" with PB 4.2 (Quad for examples are now nativly included in PB, so there seems to be no need for this include any more - maybe it would enhance the "overviewability"

)
This would allow me to write my own snippets and reuse them eaysly.