Not able to open files in CodeLite

General questions regarding the usage of CodeLite
drj
CodeLite Curious
Posts: 4
Joined: Sat Nov 13, 2010 8:15 am
Genuine User: Yes
IDE Question: C++
Contact:

Not able to open files in CodeLite

Post 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? :?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Not able to open files in CodeLite

Post 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
Make sure you have read the HOW TO POST thread
drj
CodeLite Curious
Posts: 4
Joined: Sat Nov 13, 2010 8:15 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Not able to open files in CodeLite

Post 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 ;)
seffix
CodeLite Curious
Posts: 4
Joined: Wed Dec 08, 2010 10:54 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Not able to open files in CodeLite

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Not able to open files in CodeLite

Post 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
Make sure you have read the HOW TO POST thread
seffix
CodeLite Curious
Posts: 4
Joined: Wed Dec 08, 2010 10:54 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Not able to open files in CodeLite

Post 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...
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Not able to open files in CodeLite

Post by eranif »

lets start from the beginning:
which os?
which codelite version?
is it a self compiled codelite?
Eran
Make sure you have read the HOW TO POST thread
seffix
CodeLite Curious
Posts: 4
Joined: Wed Dec 08, 2010 10:54 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Not able to open files in CodeLite

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Not able to open files in CodeLite

Post 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
Make sure you have read the HOW TO POST thread
seffix
CodeLite Curious
Posts: 4
Joined: Wed Dec 08, 2010 10:54 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Not able to open files in CodeLite

Post 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.
Post Reply