Is there a way to configure Twig plugin on Aptana 3?
Here is the link to the plugin https://github.com/pulse00/Twig-Eclipse-Plugin
And it says it need PDT (PHP Development Tool) to run. But when i try to install both, it does not let me. It says, something like it can found some files.
So, it is possible to install Twig plugin in Aptana 3, and if so, can you teach me?
Thanks in advance !!
Sorry for digging this out. Maybe try this:
Goto "Available Software Sites" in the "Install new Software" dialoge
Look for the checkboxes on the eclipse-related sites. Then aptana serches for the needed packages itself.
According to Twig plugin for Eclise's FAQ, you now can use it in Aptana. I installed it myself, and I indeed can add Twig nature to my projects. But I actually can't configure the syntax coloring, for example, nor can I see my Twig code highlighted…
It's very simple! Go to: Settings>General>Content types text(expand), select html, and click ADD button - *.twig, and interpreter will colour your code form now!
Aptana 3 uses Eclipse 3.6. That plugin requires Eclipse 3.7.
Regards, G.
Related
I am trying to debug a Twig template in my Drupal 9 site. I am using VSCode as my IDE and using Xdebug for debugging. I have setup/configured the installation based on the instructions outlined here -
https://www.drupal.org/docs/develop/development-tools/configuring-visual-studio-code
I am able to set breakpoints in PHP files (step thru and watch variables successfully) however I just can't seem to do the same for Twig template files (just so I can see what variables I have access to in that template). What I mean by when I say I am unable to add the breakpoint is that clicking on the gutters of a Twig file within VSCode does not result in addition of any breakpoint.
I'd like to take advantage of Xdebug instead of using debugging functions like breakpoint() and dump() offered by the Devel and Twig_xdebug modules within Drupal. I am pretty sure I am doing something wrong or have missed a step but I can't seem to figure out what it is.
Some more details on my env:
a local Drupal 9 setup on a Mac OS that uses PHP 7.4 and nginx as its webserver.
Xdebug (v3.1.1) is installed and enabled (verified via phpinfo() output)
VSCode (1.63.0) installed with all of the supporting Drupal and PHP extensions outlined in the above article (specifically php-debug) have been installed.
I am using the default launch configuration to Run my debug session in VSCode.
I'd appreciate any pointers on what I am doing wrong and/or what I can try. Also, I hope I provided enough info on my use case.
Twig compiles the template files into PHP files. You need to set breakpoints in these Twig generated PHP files in order to debug them.
On this page, I also see that there is caching involved, which you will need to disable. That documentation seems to be quite comprehensive.
Came here looking for an answer to this very question.
You may be interested to know that there are a couple of ways to achieve this. You can either use a built-in feature of the devel.module (see: https://www.drupal.org/node/2788089) or there is also a contrib module called twig_xdebug, which lives here: https://www.drupal.org/project/twig_xdebug
I think the mechanism behind both of these is probably very similar, to be honest. The latter of those links provides further links to several guides on the subject matter. HTH! :)
I am new to Hybris environment. For past two days i have been working on addons concept. i can able to copy my addon files to the target storefront successfully and also compiled with no error. But the issue is my addon is not working(overriding) the functionality of the core code base. The core code is only executing.
I tried to debug, debugger is entering into my corresponding addon controller, then i got the following error message from eclipse. then it jumps into the core code controller and it got executed.
Can someone explain me the complete workflow of the AddOn and also the mistake that i have committed?
Any sort of answer is welcome from the Hybris developers. Thank you in advance.
I think you have committed mistake in < storefrontTemplateName >. The command to install addon is
ant addoninstall -Daddonnames="addon_name" -DaddonStorefront.yacceleratorstorefront="custom_storefront_name"
Do you have done some 'copy and paste action' or did you use the install command from hybris? You have to explicit 'install' the addon. Have a look here how it is working:
https://wiki.hybris.com/display/accdoc50to56/Installing+an+AddOn+for+a+Specific+Storefront
Aptana is a very heavy program.
I do not need Ruby/Python, how can I remove these plugins/addons to make it lighter for what I do?
Also how would I delete 'bundles' under the commands submenu?
It's not really possible to remove those items in the built application at the moment. There is some discussion about providing a very simple installer with one-click installs of extra languages, but we don't yet have an ETA on that. You can follow this ticket https://jira.appcelerator.org/browse/APSTUD-4583 for more information.
Maybe you could do it in reverse. If Aptana is built on Eclipse, maybe there's a way to install Eclipse and then selectively install plugins to make it effectively equivalent to Aptana.
this might seem like a dumb question but I just don't get this to work with Aptana 3.
I installed the Aptana 3 plugins and Scala IDE into classic Eclipse 3.7.
Now in my HTML files there are links to resource files like CSS, JS, etc. I would like to be able to CTRL+click on such a link to open the file in another editor tab.
I just verified that Aptana 2 supports this without additional configuration.
Is this possible with version 3. If yes, what do I have to do in order to make it work?
Thanks.
Ok you can tear me apart ;)
ctrl+shift+R then type resource file name
How to save firebug changes using Eclipse (Windows)?
I found here that it's possible to save firebug changes if we use Eclipse and FireEclipse
Is anyone using this combination successfully? Can anyone explain the step of Installing?
I'm on Windows7 64 bit
And if FireEclipse works with Eclipse then Will it also work with Aptana port of Eclipse?
First, whether it will work on Aptana? Yes, it should.
Now to the main question: The Fireclipse site claims contrary to what the answer you have linked to cites: the FE site claims that it mainly helps in debugging javascript through Firebug and Eclipse consoles (nothing about exporting/saving CSS changes).
Also, I wouldn't really recommend going with this plugin 'coz it hasn't been updated in a while. According to SourceForge (where the source of this project is hosted), Fireclipse was last updated 2008-10-22. Unless, you are still using Firefox 2 and Eclipse 3.2, you should avoid this plugin.
Try some of the other tools listed in that thread, for example, FireDiff sounds promising.
This is how i save my firebug changes.
https://addons.mozilla.org/en-US/firefox/addon/firediff/
Hope this helps.