[Gambas-user] Issue 623 in gambas: interpreter throws "error #35 file not found" if binary path is relative to current directory

gambas at ...2524... gambas at ...2524...
Tue May 26 01:58:06 CEST 2015


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-ArchLinux Arch-Any  
Desktop-Any GUI-Any Arch-X86

New issue 623 by sahmi.so... at ...626...: interpreter throws "error #35 file  
not found" if binary path is relative to current directory
https://code.google.com/p/gambas/issues/detail?id=623

1) Describe the problem.
Gambas interpreter throws the following error, if the binary if path to the  
binary is given relative to the current directory (i.e. the binary path  
starts with ./) and the binary is  not in the current directory:
     ERROR: #35: Cannot open file './${some_dir(s)}/${binary_name}.gambas':  
No such file or directory

if the absolute path of the binary is given, everything is good.
also if the binary is in the current directory everything is good.

2) Give information about your system. Use the 'System information' menu in
the Gambas IDE, and paste the result there.
[System]
Gambas=3.7.1
OperatingSystem=Linux
Kernel=4.0.4-2-ARCH
Architecture=x86
Distribution=Arch Linux
Desktop=GNOME
Theme=QGtk
Language=ar_MA.utf8
Memory=3496M
[Libraries]
Cairo=libcairo.so.2.11400.2
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.8.11
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.405.0
GTK+3=libgtk-3.so.0.1600.3
GTK+=libgtk-x11-2.0.so.0.2400.28
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.51.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

3) Indicate the Gambas version in the issue labels, and if it is a bug, a
crash, or an enhancement request.
Gambas version 3.7.1

6) Explain clearly how to reproduce the bug or the crash.
    1. make any gambas binary
    2. make a subdirectory $bug_dir
    3. copy or move the gambas binary to that subirectory
    4. move back to the top directory
    5. run the binary relatively to the current directory. ex:  
gbr3 ./$bug_dir/binary.gambas


-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list