Make Aptana studio 3 use existing Rails project not import - ruby-on-rails-3

Im giving Aptana Studio 3 a try. Well hoping to.
I would like to open an existing Rails project but it asks me to import it. I dont want to make a copy I just want to use the same source files.
Is that possible?

Go to Project Explorer (tab in right side of aptana window - if you got default layout) -> find directory with your project -> right click on it -> "Promote to project"

Frankly Aptana 3 is not organized to have the source files in the same directory. Basically it forces you to have the source files in two separate directories (source editing, deployed) and regardless of what you want it does particularly care.
Now if I'm wrong on this and someone can do a simple step by step on how to do this then I'm all ears. Personally I just want to have the source in my local web folder and then just edit it. I do not have any interest in deploying it to another server. Nor in using github or any other service. I just want to edit the stupid files locally and then test the site locally. And I am unwilling to waste any more time on this ide trying to get it to work.

Related

Able to Build Unreal Project, Unable to Open Unreal Project

I was attempting to rename an Unreal tutorial project and for sake of consistency wanted to change the name of the uproject and .sln file to match, figuring I could just change them back if it broke anything.
Well it did break things and I'm unable to get unreal to open the project now. Here are the errors I get when I attempt to open it:
However I then open the project in Visual Studio 2022 and it does successfully build.
I have changed the names back to the original value.
I have regenerated the project files.
I only have one version of Unreal installed 5.0.2.
I have deleted and recreated the Binaries, Intermediate, and Saved folder.
Do you still have the contents of the save folder? you may be able to drag n drop the .Uproject file and open up the project.
If this doesn't work i recommend just starting a new project and copy and paste your content folder and redo the necessary work to link it up - IE Input, Plugins, world level blueprints, etc.

Getting set up with intelliJ IDEA

Really basic question here but this has always stopped me from using any JetBrains product, but here I am trying once again. I also have the same issues with CLion but that will be for another time and hopefully I can figure it out based on some feedback from this post.
I need to set up my environment in IntelliJ. Nothing special. No build tools. Currently I just run my school projects using
javac Main.java
java Main
This has gotten me so far but I really want to use IntelliJ tools to their full capacity.
I want to be able to set break points and step in and out of my code in their debugger and all the other nice tools that come with running my code through IntelliJ
Every get started tutorial that I have watched on YouTube or from JetBrains themselves already has a basic build configuration set up to run your basic "Hello World" application and that is what I think I need. Just compile my java files into classes and run/debug them.
This is what the run configuration icon in the IDE should look like
And this is what mine currently looks like
I have set many different JDKs to go along with my projects but none of them seem to get the tools I need set up in the IDE. I have even let IntelliJ download one for me and set it up itself to see if maybe I downloaded and installed it wrong and IntelliJ maybe wasn't recognizing it.
This picture below is showing the project structure for an application that I let IntelliJ download a JDK for and set it up itself
So if someone could help me that would be fantastic. Links to videos, blogs are welcome even though I know that isn't the convention on this forum but I think that would be sufficient for my situation. Thanks in advance!
---Update---
I have found that if I create a project in IntelliJ that I get all the default configurations that I need. The problem is when I need to get a project from VCS that I am not getting any of the configurations that I need to run/debug my program in IntelliJ.
The easiest solution here would be to click the green play button next to your main method, on the left where line numbers are displayed.
Intellij will configure a default java run configuration for you. It will be displayed in the menu for later use, like in the screenshot you posted, after your first run.
You can also create one using the to menu: Run > Edit run configuration to add some more options like arguments, environment variables (that only apply for the run config), etc.
A good starting point would be the Intellij help page on that topic. This help pages are always a good start and you find comprehensible instructions there on every topic.
Another good resource is the Intellij by JetBrains YouTube channel. This video about debugging shows both ways I described above. They have lots of quick tutorials about lot of features, like code generation or build tools. Check out the channel's playlists for specific topics.
Update
The problem with the already created project is that the default/ folder is not marked as source folder. You can do that by File > 'Project Structure...' and set the default/ folder as Sources:
The cause for intellij not recognizing this is because you didn't use a folder structure like the one of maven.
For source code:
src/main/java
src/main/resources
and for tests:
src/test/java
src/test/resources
If you set it up that way IntelliJ everything works as expected. I created a pull request to your repo. If you check out the branch, IntelliJ will setup everything correctly automatically.

How can installed packages of a Python project in Pycharm IDE be used in every new Projects

Hello from the other side,
Python file on pycharm
I pip installed some packages using pycharm terminal: mysql connector, pymysql, pillow, etc needed for my programmes.
I have created some Python files and imported mysql connector, pymysql, PIL, etc and my codes worked fine.
Recently I tried creating a new python file in a new project, when I tried to import mysql connector and pymysql, my codes get red underline, notifying me that the imported modules can't be found.
These are the same packages I imported in my previous files and they worked fine.
So why are they turning red underline and greyed out now?
Do I need to be pip installing these packages for every new project?
I tried to see how I could resolve this by making some researches and asking some friends. I was advised to go to the settings and try to create a new environment with the installed packages of my choice, and then checking the boxes for global inheritance and making it available for other projects.
After this, the OK button was inactive (greyed), so I couldnt apply this change. I discovered I was notified that the enviroment rowbox wasnt empty and that I should use a new virtual environment which is empty but I really don't know how to create this.
Please if you've encountered something like this before or can assist, kindly give me a step-by-step approach.
Open File -> Settings
Select Project Interpreter than go to the gear wheel in the upper right corner and select add.
Use Virtual Environment, select your prefered base Interpreter in my case 3.6 and add the name for the virtual environment and where you want to store it
If you don't need to I would suggest to not inherit global site packages
But you should select make it available to other projects.
Confirm it.
Afterwards the virtual env should be selected in project interpreter if not select it from the list. Right beside the List you see a plus, you can use this to add new packages with python (doesn't work all the time for me -> then use terminal)
I really thank everyone who made effort to attempt my question. After much trial, I was able to resolve it and I will post how I resolved it step-by-step to enable others like me understand better.
First, when installing our Pycharm, a folder is automatically created for storing every project we shall be working on, this folder becomes the database of our projects. In most cases, folder is stored in our C:\drive.
Now, open your pycharm window (I mean your working template),
File ----> open (this diplays the folders in your drive) ----> select the folder for storing your Pycharm projects and click ok. NOTE: do not open this folder to show your projects, just click on it and click ok. There are some situations whereby the Pycharm projects folder is already displayed on our pycharm window, this is because we already chose it during our installation. In a case like this, no need trying to bring it to the Projects displayed in our window as it'd already be displayed in the Projects in our window.
Your Pycharm projects folder will then display in your pycharm window under Projects.
Click on the Pycharm projects folder under your Projects and it will be highlighted blue.
Go to settings ----> Project: (your pycharm projects folder will also show here)
By the right, select Project interpreter.
Do your normal installation of packages by clicking on the + sign at the right extreme (that is if you haven't installed any package before)
Then configure your environment setting by making sure the boxes for inheriting global site packages and making this available to other projects are checked.
When configuring your environment setting for the pycharm projects folder, the location path should also end with your pycharm projects folder\venv ; please do not include the name of any particular project in the location path as doing this will make these changes effective in only that particular project files.
Then click ok.
Whatever project your create under the Pycharm projects folder will then inherit every packages you've installed in the pycharm project settings.
I believe this will help those who have been having difficulty resolving this.

Not able to type anything in Xamarin Source code editor

I have installed Xamarin Studio V 5.7 on Mac OSx 10.10.1.
I created a project and tried to edit a source file in the Xamarin Source code editor, nothing gets typed in any of the files from the project.
I re-installed Xamarin studio, restarted mac, nothing worked.
If anyone has faced the problem and has a solution, please let me know.
Thanks in advance.
There is a valid subversion repository towards the root of the file system and XS sees the project as being part of the repository, since the system is based on directory trees. There are a few possible solutions I can think of on the spot:
Remove the .svn directory if it's not intended to be there.
Move the project into another directory that's not in the scope of the .svn directory.
If you aren't going to use Subversion anyway, you can disable the AddIn through the AddIn manager.
There are safety checks in XS in case of invalid subversion repository directories, but this is a case where you can't safely decide whether the solution belongs there or not.
I'll take a look at how I can improve this so that the Editor isn't locked because of this error.
I was able to remedy the issue via disabling the integrated source control for the time being.

Aptana 3 becomes very sluggish with multiple (large) projects, how do I improve performance?

Aptana 3 becomes very sluggish with multiple (large) projects, how do I improve performance?
I have several projects that I checkout of subversion into a dev directory that I can access through Apache as well. Something like this
So if I go to this URL http://local.dev I can see all the project folders. In Aptana it looks like this
+ dev (main project folder that Apache uses as well)
- project (svn branch I'm currently testing)
- another_project (another svn branch)
- yet_another_project (yep, another svn branch)
So to access the project form the URL I don't need to configure Apache every time, I just need to access the project folder like this http://local.dev/project or http://local.dev/another_project
The problem is these project are very large (Prado, Zend and Drupal frameworks as well as additional Libraries as needed) and I could have multiple branches of the same project checked out into different folders. Aptana indexes all of this which is what I think the problem is. I know I could create a project for each of these within Aptana itself and close the project if I'm not using it but I don't see the option to do this to a folder within the project (which I think should solve my problem), but if I do separate project folders that I also need to setup Apache to point to the new location, which is another pain in itself.
Is there a way to close a sub-folder in a project folder in Aptana? or have a sub-project folder? or Close a folder within a project? or exclude indexing of a folder? or turn off indexing?
NOTE: Sometimes when adding a new folder within a project I get the out of memory warning and/or Aptana crashes. Also when coding Aptana becomes so sluggish that it's very cumbersome to do anything at all. I really love the Aptana IDE but this might be a deal breaker for me.
I was thinking I would move the Apache site to the Aptana root directory so I could access it on a project level but I don't think this will work for the indexing performance on the Aptana side of things.
UPDATE:
This might be related:
http://jira.appcelerator.org/secure/EditComment!default.jspa?id=75032&commentId=169647
Looks like Aptana is indexing the .svn folders
UPDATE:
So far the only thing to help is to make a new workspace for each project I need to checkout of svn. This is a pain to switch back and forth between projects but Aptana is usable again.
UPDATE #2
http://jira.appcelerator.org/browse/APSTUD-1706
Looks like this made the Aptana BUG list, Yeah!
UPDATE #3
After countless tinkering to get Aptana to play nice I decided to test other IDE's.
Started with Eclipse as that's what Aptana is based from. I have a nice build going but it's still not 100% what I was looking for.
Also trying PHPStorm which is paid IDE but I'm finding it's a top notch IDE
You could right-click on the project or folder and select Indexing > Exclude from index to disable indexing on the specific selection.
You could also turn off Project > Build Automatically from the main menu so the build doesn't get triggered on the project each time a file in it is saved.
Hope this helps.
I've been having the same problem myself and found going to 'Project' > 'Clean...' helped significantly, although it took a while to run.
I keep my projects in separate workspaces, I use ramdisk for the entire workspace and aptana. And i also disable indexing for folders with compiled libraries or stuff aptana can't even index anyway.
I use AMD ramdisk paid version. With the free version you have to make sure you do constant commits in the event of a power loss. THe cost of performance.
Yeah I just moved off Coda on the Mac over to Aptana 3 so I could have code intellisense and some more validators. But their JSLint is working all backwards, and now recently I have projects with 1000+ lines of code and they can barely scroll. Sometimes I can barely highlight text. Often I'll highlight a whole section so I can indent and it just removes the code if my mouse isn't in the right spot. I originally had this performance with Eclipse when I tried it out and abandoned it since it was so slow. My assumption here since I've got a 4.2Ghz i7 980X w/ 12GB of RAM and RAID'd SSD Drives - the bottle neck isn't the system.
totally agree... the bare-metal eclipse is doing better than Aptana... but i guess it gonna stall on large files and projets (like my todo list with 14.000 lines html file)
i gave more ram to aptana by modifying the config... but it's still sluggish (i5, 4GB of RAM, SSD)
the Clean-Option is greyed out (i am using only "General" Projects)
C'MON IBM YOU CAN DO BETTER :)
Right Click project folder and click "Close Unrelated Projects". Because Aptana live time index all opened project's folders.