Hi,
at first: "Bought" the IDE a couple of days ago, just awesome!
I encountered the following bug:
- I created a virtual folder "widgets" and checked "create the folder on the file system as well"
- I renamed the folder inside the IDE to "controls" => all my includes won't work with the new name because the folder in the file system is still widgets.
EDIT:
Renaming the folder in the filesystem => CodeLite makefile will not be updated => compile error.
EDIT 2:
When I delete the folder and re-add it with the same name, it doesn't show up in the Workspace-Explorer
I am using the latest version 6.1.1
Renaming Virtual folder issue
-
- CodeLite Enthusiast
- Posts: 15
- Joined: Fri Sep 05, 2014 9:02 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Germany
- Contact:
Renaming Virtual folder issue
Last edited by Akronym on Fri Sep 05, 2014 10:28 pm, edited 1 time in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Renaming Virtual folder issue
Indeed, this is a bug. Can you open a bug here: https://github.com/eranif/codelite/issues/newAkronym wrote:- I renamed the folder inside the IDE to "controls" => all my includes won't work with the new name because the folder in the file system is still widgets.
What happens when you click on the project and select 'Export Makefile' ?Akronym wrote:Renaming the folder in the filesystem => CodeLite makefile will not be updated => compile error.
Can you also, post the build output? (see my forum signature to the 'HOW TO POST' thread)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 15
- Joined: Fri Sep 05, 2014 9:02 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Germany
- Contact:
Re: Renaming Virtual folder issue
Build output:
#include "src/controls/Testclass.hpp" is the wrong path, it was src/widgets/ ... before I changed the name ...
I edited my first post:
I will try to open a bug. I first have to register @ GitHub
EDIT:
Added two issues to the bugtracker on GitHub as Akronymus
Code: Select all
C:\WINDOWS\system32\cmd.exe /c "E:/dev/mingw-4.8.1-3TDM/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ Testproject - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'E:/dev/workspaces/Buggy/Testproject'
E:/dev/mingw-4.8.1-3TDM/bin/g++.exe -c "E:/dev/workspaces/Buggy/Testproject/main.cpp" -g -O0 -Wall -o ./Debug/main.cpp.o -I. -I.
E:/dev/workspaces/Buggy/Testproject/main.cpp:2:38: fatal error: src/controls/Testclass.hpp: No such file or directory
#include "src/controls/Testclass.hpp"
^
compilation terminated.
mingw32-make.exe[1]: *** [Debug/main.cpp.o] Error 1
Testproject.mk:95: recipe for target 'Debug/main.cpp.o' failed
mingw32-make.exe[1]: Leaving directory 'E:/dev/workspaces/Buggy/Testproject'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
2 errors, 0 warnings
Nothing happens, rebuilding still doesn't work.eran wrote:What happens when you click on the project and select 'Export Makefile' ?
I edited my first post:
When I delete the folder "widgets" I can't readd this folder.Akronym wrote:When I delete the folder and re-add it with the same name, it doesn't show up in the Workspace-Explorer
I will try to open a bug. I first have to register @ GitHub
EDIT:
Added two issues to the bugtracker on GitHub as Akronymus
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Renaming Virtual folder issue
I don't allow anonymous bug reports, the rational behind this: it gives me as a developer a 2 way communication with the bug reporter (e.g. when I need more information) + if it is important enough to make me use my time to investigate it,Akronym wrote:I first have to register @ GitHub
the reporter can at least identify himself when reporting bugs
Out of curiosity, after you renamed the files manually (in the include statements etc) you managed to build your project?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 15
- Joined: Fri Sep 05, 2014 9:02 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Germany
- Contact:
Re: Renaming Virtual folder issue
Originaleran wrote:Out of curiosity, after you renamed the files manually (in the include statements etc) you managed to build your project?
Code: Select all
/*Original folder name "widget"*/
#include "widgets/MyClass.cpp"
Code: Select all
/*Renamed folder in Workspace editor (still "widgets" on file system)*/
#include "controls/MyClass.cpp"
I am fine with this, just forgot my old account data (long time ago). Just made a new one so we can communicate if necessaryeran wrote: I don't allow anonymous bug reports, the rational behind this: it gives me as a developer a 2 way communication with the bug reporter (e.g. when I need more information) + if it is important enough to make me use my time to investigate it,
the reporter can at least identify himself when reporting bugs
Easiest was to reproduce this behaviour is to make a new console app, add a virtual folder (on file system too), create a new class inside the folder, #include it in main.cpp and then rename the folder. It still builds, but the includes don't match the path in the workspace explorer.
Edit:
Btw.: I am on Windows 8 ...