It seems that find usages command doesn't show usages inside template files. Is there some settings for that?
I right click on the root of the project and do "Find in Path..."
I had the same problem that went away after I told PyCharm where to find the settings.py file.
Try looking in Settings -> Project Settings -> Django Support. The "Settings" box was empty so I directed it to the settings.py file and restarted and it worked after that.
There were 3 other form elements on that page, "Enable Django Support" (which was checked), "Django project root" (which was correct for my project), and "Manage script" (correctly set to manage.py).
Related
I have a problem with Advanced Installer - cannot build a project! I have a message "Resources referred by the project are missing. ControlCenter\ControlCenter\Icons\system.ico but I cannot find where the configuration it. When I make a search for system.ico in the project I really find the configuration of "Icon - SourcePath=\ccl\Icons\system.ico but if I click on "go to definition" it does nothing! How can I find the configuration?
Thanks.
I had the same problem and I found the way to fix it was to edit the setup project in notepad and fix the path issue there. Low-and-behold it worked!.
There a few places a icon can be found, those are:
Product Details page
Media page
Themes page
Updater page
Java Products page
These are the most used pages, there are still other places were icons can be found.
You can also look in Table Editor page, in Binary table to change the source of your icon.
If you still have problems finding it just mail the project file to the support team.
I've just installed Eclipse Luna and in my project explorer there are appearing some folders crossed out, and I don't know how to remove it and even what it means.
Looks like the Engine and Gameplay folders are also being duplicated. What is going on?
Thanks
I had a similar (the same?) issue after creating a new folder in an existing project. Having found this (incredibly slowly-loading) documentation page, I figured out the gray diagonal line in CDT can actually also mean "excluded from build".
This was readily countered by right-clicking on the folder in the project explorer, choosing
Resource Configurations -> Exclude from Build...
and then deselecting all configurations.
What I did was go to:
Project properties ->C/C++ General ->Paths and Symbols
There I added the folder to the include directories and at the Source Location Tab I clicked on:
Edit filter -> Remove
I think it has to do with how you added the folder to the project (through eclipse, as a source folder or externally)
What do I need to do in order to rename my Django project in PyCharm? I am new to Django and PyCharm and would like to use a different name for my project.
The built-in solution for re-naming Django projects in PyCharm has worked for me in the past on small projects, although I haven't tried it on a large project yet. To use it, select the project folder from the file-tree (by default on the left hand side of the screen), then press shift-F6 to bring up the rename dialogue. You can enter in your new name here and preview the changes, which can help prevent surprises. If you're happy with the preview, click on the "Do Refactor" button at the bottom of the window.
This is also a useful way to rename Django apps.
You can access the same functionality through right-clicking on the folder/item and hovering over the Refactor sub-menu. Or pressing ctrl+shift+a and searching for rename.
I'm using Windows, but it's probably the same for other operating systems.
Close PyCharm, open the directory in Windows Explorer (or your favorite file manager).
Rename the project directory
Rename the subdirectory of the same name that is inside your project directory
Open the .idea directory (in the project folder), rename the .iml file
Also in the .idea directory, open the .name file in a text editor and change the name in there
Open the project in PyCharm again.
In the settings.py file, you'll need to update the path specified in TEMPLATE_DIRS
You may also want to update your Run/Debug configurations (Alt-Shift-F10).
You'll need to replace some other occurrences of your old project name. In PyCharm, Ctrl-Shift-F will allow you to search the contents of all your files to find these occurrences.
Maybe: right-click on root folder in "Project" window, choose Refactoring -> Rename and choose "Rename Project"
svass's answer worked for me, except that I also had to manually change instances of my old project name in files located inside the .idea directory of my project.
If you cd into your project directory and grep for your old project name
grep -rli oldprojectname ./.idea
That returned the following list for me, then I manually modified each file.
./.idea/modules.xml
./.idea/workspace.xml
./.idea/dataSources.xml
./.idea/oldprojectname.iml <-- this will need to be renamed to new project name, and it's contents modified
./.idea/dataSources.ids
./.idea/.name
./.idea/misc.xml
I followed instructions from this site: http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet2010e/index.php
and all works fine, but when i start new project(C++->Win32->Empty Project), all configurations is forgetted and i must to set configuration again.
What i need to do?
For configuration i go Project->Properties and then follow instructions from upper site.
I hope that you understand me.
Use property sheets. On the main menu, go to "View->Other Windows->Property Manager". You should see a tree view, the root of which is your project. That should expand to a list of all your configurations, by default that would be "Debug" and "Release". If you expand those, you should see a list of property sheets that are being applied to each configuration. You should see one named "Microsoft.Cpp.Win32.user" that is being applied to both "Debug" and "Release". You can edit that one, and your settings will be loaded on every new project you create. Or you can create a new property sheet with all your custom settings, then load it in to be used by projects at your discretion.
For more information: http://msdn.microsoft.com/en-us/library/a4xbdz1e.aspx
I am facing some problems regarding eclipse for c/c++. I am trying to create a new project, I provide the code, and after running the code I get this error:
The program file specified in the launch configuration does not exist
C:\Users\elisabeth\workspace\mm\Debug\mm.exe not found
Please notice that I am working with spice toolkit; I set the path for the "include" files and the libraries, but still I can not have a result.
What causes this error and how can I resolve it?
Right click on your project --> Properties
Run/Debug settings
Delete whatever is set as "launch configuration for '........'
Project --> Clean
Project --> Build Project
You can create a run configuration. Go to Run > Run Configurations. Click New button, fill C/C++ Application field, i.e., insert path to your executable. The new configuration will appear in the list which appears when you click to the arrow next to run button.
Of course this assumes your can build without problems, otherwise you won't see an executable to point to.
You can clean the project, build it again and run it as a local C/C++ application. Simplified steps as follows,
Right click on the project
Clean Project
Again Right click on the project
Build Project
Again Right click on the project
Run As ->
Local C/C++ Application
As the error reads:
C:\Users\elisabeth\workspace\mm\Debug\mm.exe not found
First of all you need to check whether there is an executable "mm.exe" in your Debug folder. (Of course, it is not there and that is why the error)
Go to Project > Clean
and you should see some files being deleted from your Debug folder
Go to Project > Build Project
and you should see some new files being generated e.g. mm.d, mm.o, mm. This "mm" is probably the executable you're looking for
Now that you know what your executable is, you should tell eclipse what file to execute instead of mm.exe. Go to Project properties and in run debug settings create a new configuration (or edit an existing configuration, if there is one already). In this configuration, in main tab, in C/C++ Application specify a full path to "mm". Which, in your case is - "C:\Users\elisabeth\workspace\mm\Debug\mm"
A better way to do this in eclipse is:
${project_loc}/"your folder"/"your executable file"
e.g.${project_loc}/Debug/mm
what worked for me is file->refresh
then do the Debug configuration again by choosing the right c/c++ binary again.
Avoid troubles with configuration by going into Project properties > C/C++ build > Refresh Policy and specify your project folder. The configuration option "Search project" will show a correct folder then and you will see whatever you build there - Debug, Release or both. You don't want to specify the folder using Browse option every time you import project or switch configurations.
As this is the first SO discussion that appears for this topic on Google and none of the answers solved the problem my students were having, I would like to mention the solution we eventually found from this answer:
Open project properties (Right click on your project, choose Properties on the menu)
C/C++ Build -> Settings
Click on Binary Parsers tab and check PE Windows Parser
Keep clicking Move Up until it is at the top
This had been set to Elf, even though we were using a freshly downloaded Windows version of Eclipse.
sometime missed closing curly brace can be part of a problem. Make sure prototype your function at the beginning of the file. Then right click your project in the left side bar. click clean project. then click build project and finally run project
I encountered similar issues and their related problems a few days ago. Finally, I found out that, just because I had moved my project folder (workspace folder of Eclipse) to another place so Eclipse could not find what its need as usual.
Solution: I just set the workspace to my new place (Hey Eclipse, my workspace now is here) :
Menu "File" -> "Switch workspace" -> "Other..." -> click "Browse..." button and point to new place then click "Select Folder" button and click "Launch" button.
Nice day.