Debugging libgdx/html project in Netbeans - html

I've created a sample libgdx/html project in NetBeans 8 and I've followed this guide https://github.com/libgdx/libgdx/wiki/Gradle-and-NetBeans. When I try to run it right-clicking the HTML project, then Tasks/superDev, NetBeans compiles everything without errors and gives me the link to click. I click the link but the browser says "The web page is not available".
Here are the last log lines from the NetBeans compilation output:
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
soundmanager2-setup.js
soundmanager2-jsmin.js
Link succeeded
Compilation succeeded -- 30,218s
Compile completed in 31349 ms
2014-10-15 17:07:19.171:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2014-10-15 17:07:19.529:INFO:oejs.AbstractConnector:Started
SelectChannelConnector#127.0.0.1:9876
The code server is ready.
Next, visit: http://localhost:9876/

I feel your pain. Try uploading the files to Mozilla Thimble or some other fancy code-edit system. That way it will show if it will correctly execute or not.
<a class = "Squirrel Tech">Need more help? Just reply.</a>

Related

Android Studio Gradle error: Missing project_info object

basically opening this question again because the answer is outdated, as the link now redirects to Firebase:
Gradle fails building with "Missing project_info object"
I want to attach the google-services.json file to my Android Studio project, and every time I try to download it from the developers API from Google, it gives me a json file with a large name that does't correspond to the tutorial's simple "google-services" and renaming it won't work because of this error.
Downloading it creating a new project doesn't seem possible for me now as it the page gives me another error when I click Configure a Project (I already did that before but left the project there without downloading the json file directly from there, which seems to be the problem).
Where can I safely get this file, and should I rename it or? Thanks in advance.
Apparently the solution is just following the link and creating the project with Firebase:
Then create or select a project and fill it with your app data that shoul look like this (the SHA-1 key should be found in your console log when clicking the button in the image:
Then add the lines of code that should be in your build.gradle(app level one and project level one), editing them with notepadd. Finally you need to sync these Gradle files, in Android Studio : File->Sync project with Gradle Files
The tutorial is very self explatanory, but for beginners like me, this could help.

error CS2001: Helpers.deps.json could not be found

I create a new ASP.NET Core Web Application project. I have not made any changes to the code. I click on Run and I get the following error:
~\documents\visual studio 2015\Projects\Tag Helpers\src\Tag Helpers\error CS2001: Source file '~\documents\visual studio 2015\Projects\Tag Helpers\src\Tag Helpers\Helpers.deps.json' could not be found. Tag Helpers C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets 262
File: Microsoft.DotNet.Common.Targets
I am using Visual Studio 2015 for Web. All of my previous projects are running fine. It's just that whenever I try to create a new project, I am getting this error. I have no idea why this error is coming. I also don't know what else to put here which could help get more idea on the problem.
This might seem silly, but what I did was to completely close this solution/project and open a new one. I think the files had not loaded properly the first time I created the project.
I can be wrong, but this worked for me.

Failed to load Widgetset (path) error while executing fresh custom widget in vaadin 6

I created a simple Vaadin 6 application. By right clicking that project in eclipse i created simple custom widget and try to run. Error occurs which says
Failed to load the widgetset:/testcomapp/VAADIN/Widgetsets
com.example.testcompapp.TestcompappWidgetset.nocache.js?1409642685672
this error is in the form of alert box on browser. No error in Eclipse's Console.
I don't know what is wrong with it. I haven.t write a single line by myself
Note: I am using VAADIN 6
I got an answer for my question. Hope it will help anybody of u. This error will be removed by compiling the widget by pressing ctrl+6. Very easy solution

How to change Active configuration in monodevelop?

I'm following these steps to build sdrsharp on stable Debian. So fr, everything went without a hitch, but I can't figure out this step:
cd into the new sdrsharp directory and then load monodevelop and open the sdrsharp.sln project. If the .sln doesn't open use a text editor to open the .sln file and at the end of the first line change the 12.00 to 11.00. Older versions of monodevelop don't understand the VS2012 header.
Set the Active Configuration from Debug|x86 to Release|x86.
The first one is just given for context, monodevelop has no problem opening the file. But how do I change the Actove Configuration?
Monodevelops internal help is broken, I have no experience with monodevelop or similiar tools as I'm no coder, hence asking here.
Edit to add
The same question was asked and answered here, there should be an option under the "project" tab. But in my case, working from the downloaded .sln, all options under project are grayed out. What to do?
Fixed! The Version had to be changed back to 11 (first bullet point above, relevant to my special case), then reopen file, then it's opened as a project, not as a text file and all the options work.
Take home lessen: That a progeam opens a file without complaining does noit mean there's no error.

Playn HTML5 won't run from Eclipse

I am trying to run the Playn example projects. I followed every step in this guide to setup new Playn development environment and then this guide to run sample projects.
it seem to work fine but when I try to run the HTML5 version by right click and then going to Google-> GWT compile, nothing happens. I don't see the development mode view poping up to copy the address and paste it to web browser as the guide says. I just get the following in the console window:
Compiling module playn.showcase.Showcase
Compiling 1 permutation
Compiling permutation 0...
Compile of permutations succeeded
Linking into L:\playn-samples\showcase\html\war\showcase
Link succeeded
Compilation succeeded -- 35.187s
Beyond that nothing happens. If I right click and select run as-> web application, I get the pop out saying
Could not find any hosting pages in the project playn-showcase-html
Anybody know what am I doing wrong ?
What you got from the compilation was all good.
"Beyond that nothing happens." is okay.
When you right click on the "playn-showcase-html" project, select "Run As - (g) Web Application", you should get an output to the "Development Mode" tab as "http://127.0.0.1:8888/Showcase.html?gwt.codesvr=127.0.0.1:9997".
If not, check if you have got the following folder structures under the "playn-showcase-html" project:
playn-showcase-html
|...
|--war
|--Showcase.html
|--WEB-INF
|--web.xml
As far as I know, you can't simply compile (GWT) and run the HTML version. This is because, the HTML version requires a local web server (such as jetty/tomcat) to host the files in order for the project to be 'run'. However, a simpler way around this would be to try using ant via Eclipse.
Window > Show View > Ant
Once the window appears (probably on a sidebar), right-click and select:
Add Buildfiles...
When the list of projects appear, expand the project by clicking the small arrow to the left of the project name in the list. Then select the ant build file:
build.xml
That will add the ant build file to your list of active build files.
Expand similarly to look at the ant tasks provided by the build file.
Double click on the appropriate task; in your case:
run-html
OR
Run ant directly on the command-line to get the same results.
In the current version of PlayN a jetty server is being started automatically. Right click on the xx-html project "Run As"->"maven install". This starts the GWT compiler, and starts a jetty server (default port is 8080), then you can run the HTML5 version by typing "localhost:8080" in yout browser.
I've also wrote a more detailed description about this on my blog getting started with eclipse and PlayN , maybe this could be interesting.