PHPStorm can't find MySQL Workbbench model in project structure - osx-lion

I'm using MySQL Workbench for database modeling and I wanted to put the .mwb file in my project structure. I managed to do that (the file is there) but somehow it doesn't show up in the project structure. I tried to show hidden files with "defaults write com.apple.finder AppleShowAllFiles TRUE"(I'm using OSX) but nothing happened. I need to share this with my team mate but i can't even add it to git. The IDE is PHP Storm(if this helps).
Any suggestions?

PhpStorm doesn't work with .mwb files and can't recognize them.

Related

Eclipse search directories outside workspace?

I'm trying to search folders and files outside the workspace in Eclipse 3.0.2 on Windows 7. These links helped:
http://eclipse.dzone.com/articles/5-best-eclipse-plugins-system
https://bugs.eclipse.org/bugs/show_bug.cgi?id=192767
Unfortunately I can only get Desktop Search to work, not System Search. I've tried both the nokia system search download links:
https://bugs.eclipse.org/bugs/attachment.cgi?id=106032
http://www.steinerberg.com/EmbeddedComponents/System%20Search/com.nokia.search.system_2.0.0.201102171254.jar
I put either com.nokia.search.system or com.nokia.search.system_2.0.0.201102171254.jar in c:\eclipse-php\plugins. I also tried putting com.nokia.search.system.feature in c:\eclipse-php\features but it still didn't work because the folder is empty so I get this message in eclipse's error log:
!MESSAGE Unable to find feature.xml in directory: C:\eclipse-php\features\com.nokia.search.system-feature
I take directory search for granted in tools like TextWrangler and Xcode on the Mac and am flabbergasted that the Eclipse developers don't include arbitrary file search in their IDE.
Another possibility is to somehow add the C drive to Eclipse's workspace. I mainly need this to search directories like pear. I guess a free app might be an ok solution, if there's a way to tie it into Eclipse somehow, that would be helpful.
Thanks in advance for any help you can provide,
Zack
If I understnad your question, you are trying to search folders/files outside of the eclipse workspace. My advice would be to create a new folder through new -> wizard select it as a "linked" folder and point it to the folder in your file system that you want to include in the search.
Say you want your C drive included in search. Create new folder, click on advanced which opens more otpions and select link to alternate location (linked folder) and click browse and select your c:\ drive. This will create folder in your workspace that is a pointer to the c drive and will be included in search queries.
First off, Duncan, thanks for your answer. It is the best for the purposes described in the original question.
I see this thread is a bit old but I would like to give some useful suggestions:
Additional plugins only slow down Eclipse. It already has so many plug-ins that come with it. I try to keep mine as slim as possible (a lean version of STS) and use external tools for tasks I perform outside of core development, like version control - I removed all my Git and SVN plug-ins manually.
Linked folders work best because you narrow down the search. If you try to search the entire file system you are probably better off using your OS and its built-in utilities designed specifically for that. They are faster and support all sort of searches that you would otherwise not be able to execute from Eclipse.
I haven't tried this on 3.0.2 but I came across this question after trying to setup a new Eclipse and working out which plugin I had before that allowed me to do this.
Turns out you need RSE (Remote System Explorer) which gives you Remote Search and you can use a local connection to select a folder on your local machine.

"Save could not be completed" errors with Eclipse and MySQL Workbench

I'm having a weird problem saving with Eclipse and MySQL Workbench. I am using Eclipse Java EE Indigo Service Release 1 and Workbench CE 5.2.24. My java is version 1.7.0_01. I am running on a Windows 7-64 machine.
I have some files on a network drive. If I edit one in Eclipse and try to save it, I get "Save could not be completed" with the reason "The system cannot find the path specified". Eclipse can successfully edit other files on the same drive. Also, another version of Eclipse on a different machine (32 bit Java EE Indigo) can edit and save the exact same file that the Eclipse on my laptop cannot save.
If I edit a model using Workbench on the network drive, I can modify the model just fine. If I try to export the script however, I get the error "Could not save file ". Failed to create file .KWLQCW". No such file or directory. I am trying to overwrite an existing script when I do the export. Again, using Workbench (same version) from another machine can make the modification that the Workbench on my laptop fails to.
I can edit or change both of these files using other editors with no problem. In fact, when I change do change them, Eclipse requires me to refresh them, but then can't save after editing them.
Both Eclipse and Workbench work just fine if the files are on my C drive. All of this was working last week and I cannot think of a configuration change I have made to my machine. I'd be grateful for any advice on debugging this.
I'd suggest you to try with the most recent MySQL Workbench version (5.2.39). The 5.2.24 version you are using is quite old. You can download Workbench here.
Well, I seem to have solved this by deleting the parent directory, recreating, and repopulating it. I can only imagine that the file system got corrupted somehow.
By changing the permission of the file and directory , the issue got resolved

Netbeans sFTP Sync - Bidirectional reconciliation

I'm using Netbeans to manage a PHP projects in a proprietary setup. Files are on a web server and I use netbeans sFTP to download and auto-upload the files as I change them. It works great and I've read of others doing this. This takes care of creating/uploading files as I change / create them. It also seems to remove files if I delete them locally.
Now, enter source control (in my case Git, but for this the type shouldn't matter). My source control has to be on the web server. This is apart of the proprietary setup.
Lets say I switch branches (which would be done on the web server, to be clear), can I and how do I reconcile all the changes from the server? This would include removing files and folders locally that no longer exist in the version I'm working with. It also includes updating file contents for changes.
Now, I am aware of the "Download" function in netbeans. In netbeans, I right click on a folder structure or the project (in the "Projects" pane) and Netbeans will proceed to download all changes but it does not seem to remove local files and folders that no longer exist on the server..
You may have a look at this solved issue/enhancement. It will be in NetBeans 7.2 and currently it is part of nightly dev builds

Is there a way to make NetBeans hide specific files/folders?

I'm working on a joomla project and for debugging/type hinting/auto-complete have my whole joomla install as a project. Is there a way I can hide the folders I don't need in file or project view?
Ideally I would have a project that scans all of the folders but simply displays this:
administrator
components
com_myproject
(display all files under this)
components
com_myproject
(display all files under this)
You can hide any directories you'd like in Netbeans 6.9.1. Right click on the project, select properties, and select the "Ignored Folders" category. In this section you can add all the directories you don't want to see.
No, you cannot do it with NetBeans like this.
However, you can do it little differently... this is going to be component development.
Basically for every custom component you will need to have a separate project.
Create project with folder structure like Joomla
|
|-administrator
|-componnets
|-my_component
|
|-componnets
|-my_component
After this step, right click the project and go into properties. In the properties go to PHP Include Path, map path to Joomla directory, this is what is going to give you autocomplete feature for Joomla code.
Also, to improve auto-complete for Joomla, go to Tools->Properteis->Editor->Code Copletion
Select PHP from language drop down.
Check Also Non-Static methods after ::, this will give your auto-complete for methods like JFactory::getDBO(), etc...
Obviously it makes it hard to test right now, because component is not inside of Joomla... and copying it manually makes it a hassle. Go to project properties (right click project->properties) and enabled "copy files from Sources Folder to another location" and math the path. NetBeans will no allow you to setup copy into existing directory, workaround is simple.
Setup copy support into temp direcotry /tmp
In NetBeans windows, go to Files of your component project
Expand the nbproject node
Open project.properties
Manually modify the copy path
If you want something more advanced and runt test's, you can use Ant and create build.xml files. Read more about it on Sun's blog about NetBeans PHP and Ant.
Heres a video that will help u to do the same using netbeans IDE. Keeping yout component file into a seperate directory and do the development making full use of IDE features using the Apache ANt build procedures.
The Ant build file.
http://docs.joomla.org/Building_Joomla_Extensions_with_Apache_Ant
The video to help you setup netbeans for component development.
http://www.vimeo.com/13167176

Eclipse doesn't recognize lua files after installing the lua plugin

I downloaded Eclipse Classic off of the Eclipse website then the Lua Eclipse IDE plugin. I followed the install instructions but Eclipse doesn't seem to recognize or be able to understand lua files. Can someone help?
Sounds like your file types aren't associated. Click on Window/Preferences and select General/Editors/File Associations.
Add more information
Which installation guide did you follow? (Lua Eclipse Installation?)
Which OS (version)?
Which java version? (Which implementation)
Which eclipse version?
I love these kind of questions because they provide an opportunity to do a test I postponed until now...
So I downloaded the plugin package, and followed the instructions: closed Eclipse, put two jar files in the plugin folder, put the open-ldb.exe elsewhere, restarted Eclipse.
I created a generic project, added a generic file linked to an existing Lua file. When I opened the file, it was automatically identified as such, with a moon icon and correct syntax highlighting.
Using Eclipse 3.5.1 on Windows XP, BTW.
Now, I have an issue, the debugger won't start for me, I get a
Unable to connect to PDA VM
Connection refused: connect
error, not sure why (path to exe file is correct, I have another error when it is wrong).
But at least I have the Lua files recognized without problem.
I think you might want to check that in Preferences > General > Editors > File Associations, *.lua is defined and associated to the Lua editor.
Instead of opening a File you have to do the following:
Open a new LUA project.
Then import using 'File System' all files (resources and LUA files) into the project.
Now you can see and edit the LUA files. Don't know why it doesn't work by simply opening a LUA file directly.