Guibuilder right menu option not available - codenameone

Using Eclipse Photon and the newest version of the Codename One plugin, I have an issue where I create a new project and then create a GuiBuilder form inside that project, but when right clicking on that form I do not see any of the Codename One specific options I should be seeing, like the Guibuilder option. So I can't open the form in the Guibuilder.
This is happening in a 36 seat computer lab, but not on my office machine. Any ideas what might be going wrong in the lab?

If anyone else has this same issue, as Shai suggested, it had to do with where the Eclipse workspace was located. In my case I had it on the lab desktop.
There were spaces in the path, but even removing those did not solve the problem if the workspace was on the desktop. When I moved the workspace to the user folder, all started working as I would expect it to work.
There might be an issue with the length of the workspace path, along with special characters. Regardless, relocating the workspace to c:\users\win10\workspace solved the issue for the lab computers.

Related

CN1 project not showing build hints and mobile properties on Windows10

I have copied the project from my old amchine to windows 10 machine. Application works without any problem on simulator. If I right click to see the properties, I don't see IOS, Android and build hints. Please advise if there is something I'm missing here.
This was removed ages ago in Codename One 5.0 but was deprecated before that. See https://www.codenameone.com/blog/removing-old-preferences.html
You should use Codename One Settings in the right click menu.

The CN1 Intellij Plugin is suddenly disabled on old project. Is it safe to delete an old ~/cn1Settngs/CN1Properties to fix this?

Strange issue I'm having and I want to know what to do to fix it without compromising project integrity.
I have a CN1 project in Intellij (v 2017.1.4) that I started a long time ago. The other day I started a new CN1 project to try out something new. It pulled down the latest CN1 libs (the properties file says version 174 is the libVersion) and worked fine for testing.
Now I open my original project and the CodenameOne functions are all greyed out (projectLibs version in the properties file is 159). The icon on the context menu and menu-bar are greyed out. The plugin is up to date (3.7.2). I see no messages or errors in the IntelliJ "messages" section.
I am assuming that the new project and libs re-wrote something common to both projects and now the old project can't even start the plugin to let it pull down new libs... In experimenting, I went to my home directory ~/.cn1Settings and renamed the "CN1Preferences" file so that the project would have to create a new one. When I opened the project it DID create a new one and the plugin was working.
So here's the big question: If I abandon my old CN1Preferences file, what settings/customizations in that file am I walking away from and will I need to make sure I set correctly again to ensure my project works as it should and doesn't have any hard to debug issues?
This is probably an issue of keeping two windows concurrently, try closing both projects and opening only one at a time. There is an issue with detecting the correct project in the IntelliJ/IDEA plugin

xcode restore previous build?

I copied and pasted the code of a friend into my xcode C project, ran it to see where he went wrong and then closed it, after i had given him the solution. Unfortunately, i did all that in my own project. I thought everything would be fine, as i didn't save his code into my project, but when i opened my project later, i realized i had permanently replaced my code with his. Is there any option to retrieve mine ?
I tried finding an earlier build/version in xcode and in the folder, where i store everything i do, but nothing about any older versions shows up.
From the Xcode menu on top, click preferences, select the locations tab, look at the build location option.

Difference between different project files in Netbeans

I have in my working environment always more then one project open, some of the have same files but are from different project, and finding out which of them are from which project can be a real pain in the ass(however 2 sec over the div and see which folder are they from)
Is there a way to mark them so i can tell which file is from which project?
I am using NB 7.3 64bit for Windows.
There is a plugin which shows the path in the title: http://plugins.netbeans.org/plugin/42000/show-path-in-title
And if you are switching files via CTRL+Tab the path of the selected file is shown on the bottom of the window.
Maybe this helps.
The window title for me is: "{project name} - NetBeans IDE 7.2.1". Directly on the tab I don't know how to put this information, but I use "View -> show versioning labels". Instead of various projects open, I have various "instances" of the same project on different branches in my VCS.
I'm using Ubuntu.
UPDATE
Just reinstalled NetBeans 7.3 on a Windows VM and the behavior is the same: project name prepends "NetBeans IDE {version}" in window Title.

Debugging silverlight application problem

My VS2010 doesn't stop at breakpoints inside of silverlight application. It appears that no symbols for it have been loaded during debugging. When I hover over the break point it says "The braekpoint will not currently be hit, no symbols have been loaded".
I have tried all of possible solutions offered by google and have no success. The problem occurs even when I create brand new silverlight app hosted by an ASP .NET web project. All of my project configuration looks fine - silverlight debugging is enabled in the Web project.
I am using silverlight 4.
here a link to the sample project created out from the tepmlate.
Any thoughts ?
P.S I just tried to reinstall VS2010 and the problem still exists.
EDIT: I just tested the same project on another machine and it stops at the break point it seams that the problem is somewhere in the configuration of VS or silverlight.
with Matt Dotson's help I managed to attach the debugger manually. However this solution is not good enough for daily use.
Depending on my experience in Silverlight following these steps keep your project debug-gable.
Condition 1>
Firstly we need to be ensure that in Web Project's properties there is a Web section, as you see below Silverlight checkbox must be checked.
Condition 2>
Follow In Menu Debug => Attach Debugger>
Visual Studio sometimes can't attach debugging platform you need to lead the way :) . By this way you may debug other platforms,(also you may debug your product platform but pdb files must be sync and don't forget you may suspend your product platform using this).
Condition 3> Your default web browser may be Firefox,Chrome or other than IE.By Visual Studio default try to attach to IE. But when you run VS calls default browser,so you need to have a manual attachment in Condition 2 or set your default browser by right clicking on default page > Browse with .
Condition 4> There is xap file generally located in web project\ClientBin directory. Sometimes after build operations this file can't be replaced and your ProjectDll and your Project PDB files not be sync. This cause wrong line match while debugging or can't find a debugging file attached caution. I strongly suggest delete all generated files in Bus project and delete Clientbin\ProjectName.xap file. After rebuild all it must be ok!
Hope helps.
What broswer are you using? You need to be using Internet Explorer to debug silverlight projects.
I have had a similar frustrating experience with this but in my case the solution was very simple. It seems that somehow, and I really have no idea how, the debugger option for Silverlight had become unchecked in the properties on the hosting ASP.NET project.
I just assumed that as I had been previously debugging, this option was set and I didn't bother to make sure that this was this case. Just goes to show that one should always check the basics first; if I had done that it would have saved me some time.
To check this in VS2010, right-click on the project and select properties, change to the Web tab and check the Silverlight option at the bottom of the page, in the debuggers section.
Also see the debugger to a silverlight process
http://msdn.microsoft.com/en-us/library/cc838267(VS.95).aspx
If that doesn't work, then
reset iis (if you are debugging in that)
delete temporary asp.net files (%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files)
clean and rebuild your solution
The resolution came after 2 days of headbanging. It appears that the link which Malcolm gave covers exactly my problem but my I was narrow-minded enough not to pay it enough attention because when I run the debugger as long with the app my default browser was FF. So I thought that after the FF starts I can load the page from IE or Chrome.
Actually the problem is that the debugger cannot be attached to the silverlight project because of the FF. And when I load the app from IE or Chrome the debugger dis still not attached.
Thanks to everyone that tried to help.
if you have multiple project, Rebuild the project separately that you want break point. Its work for me
Try also picking internet explorer from browser list menu as your browser

Resources