Please make the "Current Directory" persistent per
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Please make the "Current Directory" persistent per
the "Current Directory" field in the Compiler Options is quite handy to help finding content in the same dir as the source, when you compile-run codes for little tests and other things.
but if you alter it once, it will be changed to that value for ALL sources, even for all new.
please make it persistant to each single source like the other compiler options.
but if you alter it once, it will be changed to that value for ALL sources, even for all new.
please make it persistant to each single source like the other compiler options.
oh... and have a nice day.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
was strange... was hard to revoke it...
1. opened a "New File", in that way that a path was entered in the options field.
seems to happen when the last file closed had a manually entered path.
2. run a simple testcode, like
3. switch to another tab with another code that is in another source dir.
4. run it
the path will be the one manually entered, not "empty"
leads to a "file not found" when trying to load ressources from the source dir
1. opened a "New File", in that way that a path was entered in the options field.
seems to happen when the last file closed had a manually entered path.
2. run a simple testcode, like
Code: Select all
Debug "bla"
4. run it
the path will be the one manually entered, not "empty"
leads to a "file not found" when trying to load ressources from the source dir
oh... and have a nice day.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
this is not a error, only a missing feature
if you don't set the currentdir, the currentdir is undefined

if you don't set the currentdir, the currentdir is undefined
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
> when I clear the field manually to have the source dir as current dir, safe the file
this safes the file in the directory, but doesn't set the currentdir for your application.
if i use your final and start it in a commandshell, it can't find any file in
application dir. so if freak set this for you, it's only for testing in IDE usefull,
but your application have to add:
and your are on the sure side.
this safes the file in the directory, but doesn't set the currentdir for your application.
if i use your final and start it in a commandshell, it can't find any file in
application dir. so if freak set this for you, it's only for testing in IDE usefull,
but your application have to add:
Code: Select all
SetCurrentDirectory(GetPathPart(ProgramFilename()))
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Open Preferences/Editor/Defaults and empty the "Current directory:" line and Apply.
Should work.
Should work.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany