Posts Tagged ‘eclipse’

22 May 2015
2

Appcelerator Tip: How to recover a GIT Reset in Titanium Studio

This post is an example of how a GIT reset in Appcelerator’s Titanium Studio almost cost me 6 hours worth of work and how I managed to recover what I lost.

My Working Environment

Apple OSX 10

Titanium Studio

eGit and Mylyn for Bitbucket

Let me add some context

Once upon a time, about a year ago, I spent the most part of my day working on a mobile app, when a critical issue arose that forced me to switch my project’s current source control branch (using eGit Source Control), to its Master branch. After switching branches on my project, I made one small temp modification to the tiapp.xml file in the Master branch, then published a mobile build of the project to iOS.

I sent the updated mobile app to my client and all was right with the world again.

Then…

After I was done deploying the iOS fix, I switched back to the branch I was working on, when I received the following message:

Funny though that I didn’t get this message when switching from my current branch to Master initially, but anyways. I clicked on “Reset” because the change I made was temporary, so I was happy to have it reset to what is was prior to the change.

Then, came the fear. All my current work was gone. 6 good hours GONE!!! This was not my finest moment. While reacting to my client’s request, I accidentally forgot to commit my work to BitBucket. I tried all sorts of rollbacks against my project, but nothing was working. I searched online and only get mentions of reflogs, which won’t help in my case.

I was ready to take a walk…cry a little…and come back to start over. Before doing that though, I opened one of the JS files that was reset, to see how many changes I would need to make, when i tried the following:

I right-clicked on the JS file and noticed the option “Replace With\Local History“.

Screen Shot 2014-05-21 at 7.28.17 PM

Now, when you perform this action directly against the project’s root folder (which is an option and was the first thing I tried), you don’t get any positive results. But, if you do this directly against the file in your project….IT WORKS!!!

Eclipse/eGit was managing my saves per file automatically, so all I needed to do was perform individual replacements for every file in my project that was affected.

5 minutes later I was good to go.

Summary

First and foremost…based on what happened to me, I strongly recommend creating a habit of checking in your code in multiple increments per day and not just at the end of the day. I would’ve cried hard had I needed to spend an additional 6 hours unnecessarily.

Finally, what I mentioned above is relevant to Titanium Studio, but I’m almost positive this same exercise could work in other development environments, especially Eclipse.

Till next time

John :)

5 Jul 2013
0

Appcelerator Tip: What to try if debugger does not launch or times out

In Appcelerator Titanium, when running my app in debug mode, it sometimes takes a few minutes to launch, returning a “Could not start debugger” message. This only happens now and then, so it was a bit difficult to track.

The bad news is that I still can’t seem to find what’s causing the issue. The good news is that I know how to work around it.

What’s causing the problem:

In short, whenever I’m connected to the internet using 3G, my debugger stops working. I would still be able to build and run my mobile app in the iOS Simulator, as long as it’s not in debug mode.

How to work around the issue:

The workaround is to either work offline with your 3G disconnected, or you can connect via Ethernet or W-Fi. I’ve never had any issues running my debugger when offline or connected to a Network. It only seems to be an issue with my 3G connection.

I hope this helps the very few who might face this issue. I’d love some feedback on how to resolve this, but can’t seem to find anything online that can help me.

Cheers for now,
John
21 Nov 2012
3

Check the Eclipse version of your Lotus Notes 8 Client

Hi everyone. Just thought I’d blog this quickly. I wanted to check which version of Eclipse is being used for my Notes 8.5.3 FP1 Client and it was a touch tricker than expected. Thanks to Nathan T Freeman, I now know where to find this:

1. Open your Notes Client and click on “HelpAbout”.

2. Click on the “Plug-in Details” button.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Sort the “Plug-in Name” Column and search for “Eclipse UI”. You will see the version in the Version Column. In my case it’s version 3.4.2……

 

 

This is baseline for determining the overall version of Eclipse that’s used for Lotus Notes.

 

Hope this helps.

Cheers.

1 Nov 2012
28

Notes Classic vs Notes for Eclipse. A glass case of emotions

The past few days I’ve been involved with quite a lot of Std Notes Development. Waking up this morning I realized that working in Notes 8 Eclipse, as awesome as what it is for many reasons related to XPages, has come at some cost. I’ve been working on a Project that required no XPages Development, and decided to run Notes 8 Classic just to get a feel for it. In doing so, i’ve identified the following that makes me frown daily:

1. The Speed

DDE (Domino Designer in Eclipse) is quite a bit slower than Designer 8 Classic or prior releases. Every time I open DDE for the first time I go make myself some coffee so that it can finish up whatever it’s trying to do. DDE is also less responsive to what i’m used to in prior releases of Notes. Every time i click on something there’s this delay before it reacts.

2. The Build

Ok, this is probably the bane of my existence. How I miss the days of “Modify, Save, Preview”. Now, it’s “Modify/Save/Build/Preview/Hmm, it must have not built properly/Build again/Preview/Dammit, now what!!!/Clean/Build/Preview/Finally! I’m all for XPages but there’s got to be a better way. It’s gotten worse lately where if I have a Local Replica where I design all my changes, then build and replicate with the Server, 60% of the time I have to open the Replica on the Server and re-build, which sometimes takes up to 3 minutes depending on size, etc. This has given me massive amounts of frustration and unnecessary time wasted.

3. The Crashes

It almost feels like DDE is in a bad mood by default, until you can somehow convince it otherwise. I had to install Subversion in DDE on multiple machines the other day. 5 out of the 6 machines resulted in their DDEs crashing and none of them for the same reason. I couldn’t believe my luck. 5 out of 6. Is this the cost of having functionality like XPages, Source Control, etc?

 

I apologize that this is not one of my more positive Blog Posts, but I realized this week what a joy it was to work in Classic Domino Designer. Yes, sure Eclipse brings a lot to the table, but most definitely not for free.

I’d love to hear feedback from everyone on their experiences. Maybe this post could result in finding a way to have DDE Perform the way we all want it to.

 

Cheers

John.

11 Aug 2012
1

TIP: When receiving warnings of Modules not loading In Titanium Appcelerator

Hi Everyone. Just a quick tip for the following scenario:

If you’re busy building an App using Titanium Appcelerator, you might run into an issue where the Build is successful, but when testing on an iPhone Simulator, you start getting error messages about Modules not loading or cannot perform operation because of an invalid method passed to UIModule, etc. Below is an example:

[WARN] attempted to load: TiUIScrollableViewProxy – invalid method (createScrollableView) passed to UIModule (Note: Other modules may apply)

A very possible fix to this, one which has worked for me all the time so far, is to Clean the Project before building it.

Note: Don’t go and clean the Project every time before building, just when suspicious errors occur.

 

Hope this Helps. Cheers for now.

John

12