Non-standard header extension
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Non-standard header extension
Hi, i'm new in Codelite. And i have a problem with colouring non-standard extension files. I have template classes wich are declared in *.h file, and their implementation in *.ipp. I've added *.ipp extension to Tag settings->CTags>Advanced->File Types, but code in *.ipp file is still not coloured.
And not a question, but thought:
Swapping between *.h and *.ipp does not work. It can be done as in Visual Assit for Visual Studio - if there are several files with one name then user choices one of them. This is so simple, so i don't understand why none of free IDEs has this feature.
And not a question, but thought:
Swapping between *.h and *.ipp does not work. It can be done as in Visual Assit for Visual Studio - if there are several files with one name then user choices one of them. This is so simple, so i don't understand why none of free IDEs has this feature.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Non-standard header extension
Settings -> Syntax highlight and fonts -> C++ -> File Extensions
(what you did is also needed for code completion purposes)
The reason it is not implemented is because this extension (ipp) is indeed non standard. Implementing this is easy - we just needed to know that it exists...
I can add it to git head, however, you will need to build codelite for this (which is easy on your OS, Ubuntu)
If you are willing to build codelite from sources, I will it now, otherwise, file a feature request
Eran
(what you did is also needed for code completion purposes)
This can be done with standard extension (cxx, cpp, cc and their couter parts h, hpp)Swapping between *.h and *.ipp does not work. It can be done as in Visual Assit for Visual Studio - if there are several files with one name then user choices one of them. This is so simple, so i don't understand why none of free IDEs has this feature.
The reason it is not implemented is because this extension (ipp) is indeed non standard. Implementing this is easy - we just needed to know that it exists...
I can add it to git head, however, you will need to build codelite for this (which is easy on your OS, Ubuntu)
If you are willing to build codelite from sources, I will it now, otherwise, file a feature request
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Re: Non-standard header extension
Thank you for fast answer Eran. I'm feel so stupid because of my highlighting problem. =)
About building by myself. I'm using static non-monolithic libs wxWidgets 3.0 - there will be problems with it?
About building by myself. I'm using static non-monolithic libs wxWidgets 3.0 - there will be problems with it?
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Non-standard header extension
I think so. You can build wxWidgets as shared / multilib but do not run "sudo make install"SteelRat wrote:I'm using static non-monolithic libs wxWidgets 3.0 - there will be problems with it?
However, before building codelite, you just need that the correct wx-config is set in the PATH before running cmake
And when building codelite, you can run cmake with -DCOPY_WX_LIBS=1 (so codelite will copy the wx-3.0 libs into /usr/lib/x86_64-gnu-linux/codelite/)
See here:
http://codelite.org/Developers/Linux
See all CMake variables supported by codelite:
http://codelite.org/Developers/Linux#toc6
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Re: Non-standard header extension
Thanks, i will try. Can i use --disable-compat28?
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Non-standard header extension
Never tried it ... so I am not sure about itSteelRat wrote:Thanks, i will try. Can i use --disable-compat28?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Re: Non-standard header extension
Well, with disabled compatibility there is error:
Now i will try with enabled compatibility.
Code: Select all
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/fileextmanager.cpp.o
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/pptable.cpp.o
/home/steelrat/development/codelite-codelitegit/CodeLite/refactoring_storage.cpp: In member function ‘virtual void* CppTokenCacheMakerThread::Entry()’:
/home/steelrat/development/codelite-codelitegit/CodeLite/refactoring_storage.cpp:86:137: error: ‘wxPrintf’ was not declared in this scope
wxPrintf("%s | %s | %d\n", tokIter->getFilename().c_str(), tokIter->getName().c_str(), (int)tokIter->getOffset());
^
[ 21%] Building CXX object CodeLite/CMakeFiles/libcodelite.dir/event_notifier.cpp.o
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Re: Non-standard header extension
I successfully built and installed Codelite. On pressing F12 IDE asks me to create matched file. =(
ps
By the way, can i use "Add existing file..." to add files and files from subdirs and create virtual folders as real subdirs? It may be very useful to start Codelite project for existring large project.
ps
By the way, can i use "Add existing file..." to add files and files from subdirs and create virtual folders as real subdirs? It may be very useful to start Codelite project for existring large project.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Non-standard header extension
Do git pull now. I have added "*.ipp" to the default lexer extension + make it work with swap files
Eran
Right click on project and select "Import files from directory"SteelRat wrote:By the way, can i use "Add existing file..." to add files and files from subdirs and create virtual folders as real subdirs? It may be very useful to start Codelite project for existring large project.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Sat Dec 07, 2013 11:51 am
- Genuine User: Yes
- IDE Question: C++
- Location: Russia
- Contact:
Re: Non-standard header extension
Eran, where were you yesterday? I've added all files by hands, dir by dir. =)
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110