Page 1 of 2

Not able to open files in CodeLite

Posted: Sat Nov 13, 2010 8:25 am
by drj
This is my first time using CodeLite and I seem to be having difficulty opening files in it. I am using version 2.8.0.4537 on Windows. Here is what I have done till now.

Created a workspace and added a new project in it. Added files into the project. These files of mine are located on a network drive. I see all of my files in the workspace tab. However when I double click on any of the files (.c or .h) nothing happens. I even tried selecting the file and hitting enter. However, when I use the Explorer tab and browse to the file location, I am able to open them.

What am I missing here? Why cant I open files when in the Workspace tab? :?

Re: Not able to open files in CodeLite

Posted: Sat Nov 13, 2010 8:39 pm
by eranif
I will answer your question and will attempt to answer any questions that may follow it :D


This is because the workspace must exist on the same volume as your files.

Why?
Because codelite keeps all files paths relative to the workspace, when double clicking on the file, codelite will fail to open it since the workspace and the files have no common root.

BTW: You probably have an errors in the 'Trace' tab

So... how to fix this?
Place the workspace under the same drive as the other project files

Why is it able to open it from the "Explorer" tab?
Because codelite uses full paths from that tab

So, why not use full paths from the workspace tab as well?
Using full paths in the project / workspace files will make the project / workspace not portable (i.e. it will make it unusable on other machines)

Eran

Re: Not able to open files in CodeLite

Posted: Sat Nov 13, 2010 11:54 pm
by drj
Interesting. Thanks for pointing it out. It did help. After moving the workspace and project files to the same volume, I am able to open files by clicking on the workspace tab now.

Maybe this should be documented somewhere ;)

Re: Not able to open files in CodeLite

Posted: Wed Dec 08, 2010 11:08 pm
by seffix
Hi,
I have the same problem.
I opened a new workspace, and a new project from the right-mouse-click menu, but I can't even read the main.c file that was produced automaticly... :(
I can see where the cursor is (line,coloum etc...) but I can't see the text.
what I've done wrong?

Re: Not able to open files in CodeLite

Posted: Wed Dec 08, 2010 11:51 pm
by eranif
Can u try and change the encoding? (from settings | global editor preferences | misc) and set it to UTF8 or ISO8859-1
See if it help?
Eran

Re: Not able to open files in CodeLite

Posted: Thu Dec 09, 2010 2:14 am
by seffix
I'm sorry but it hasn't work.
BTW, the backgroung of the editing area is not white but light gray, sort of unenable...

Re: Not able to open files in CodeLite

Posted: Thu Dec 09, 2010 7:31 am
by eranif
lets start from the beginning:
which os?
which codelite version?
is it a self compiled codelite?
Eran

Re: Not able to open files in CodeLite

Posted: Thu Dec 09, 2010 11:45 am
by seffix
I use ubuntu 10.4 LTS, on virtual box, using hebrew languege.
The version is 2.8.0.4527 but the problem was with the previous version as well.
and I used ubunto softwere center to download and install it.

Re: Not able to open files in CodeLite

Posted: Thu Dec 09, 2010 1:59 pm
by eranif
seffix wrote:I use ubuntu 10.4 LTS, on virtual box, using hebrew languege.
First of all "שלום וברוך הבא לפורום" ;)

Can you attach a sample file that you can not seem to open?
Also, how do I set my locale to Hebrew?

Eran

Re: Not able to open files in CodeLite

Posted: Thu Dec 09, 2010 4:03 pm
by seffix
שלום גם לך!

First, I don't know yet how to change the locale, becouse I'm new to linux...
I choose hebrew at the installation process.
Second, it happens for every file, including the menu.c file that codelite create when you create a new project.