Can not run index.html in oracle Jet application using templates - javascript

I am new to Oracle Jet. Now I want to use NetBeans to create a simple application with pre-defined templates downloaded from http://www.oracle.com/technetwork/developer-tools/jet/downloads/index.html.
The creation steps are:
file - new project - Categories (HTML5/JavaScript) and Projects (HTML5/JS Application) -select the template - Jet-Template Web Basic.zip.
But when I open index.html under Site Root in this application, the "Run" tab is not available. Also there is no "run" when right click on index.html.
I tried all other templates in the download page but none of them can work.
Do you have an idea on this?
IDE version: NetBeans 8.1

Not sure why that happens. Might be a bug...
2 work-arounds:
Right-click on the project under the Projects tab. You'll notice the Run function is enabled here.
(Better option) Extract the zip contents, choose 'Open Project' in Netbeans and navigate to the extracted folder. You'll notice that the Run function is available for index.html if you open the project this way.

Related

Eclipse for PHP Developers 2020-06 - Is There Any Way to Show Javascript Task in Tasks View?

I'm using Eclipse IDE for PHP Developers Version 2020-06 (Includes Incubating Components) (4.16.0) on Windows 10 Home, 64-bit, installed using the Windows 64-bit installation file from https://www.eclipse.org/downloads/packages/installer.
Is there any way to have task tags (like TODO) in .js files show up in the Tasks view? In this version of Eclipse the task filter doesn't even list "JavaScript" as an option and there are no JavaScript settings in Preferences. Task tags work in .html, .css, and .php files but not in .js files.
UPDATE: I've switched to version 2020-12 (4.18.0) and JavaScript task tags are working by default in this version.
This worked for me (in Eclipse version 2020-09 (4.17.0)):
Go to Window->Preferences.
Go to Web->JavaScript
"Task Tags in JavaScript can be configured here" <- click this link
Check the "Enable searching for Task Tags" checkbox
Click Apply and Close

I can not find "generate signed apk" in android studio after I load my source code

I got source code from my android developer, then I loaded it using android studio. There is no process sync, the code just loaded successfully.
After that, I tried to produce new APK. Unfortunately the tool does not appear in my android studio, but when I load different source code, the tool appears (generate a signed apk).
I already cleaned and rebuilt the project, but the result is the same. It's not showing generated signed apk.
I searched in build.gradle, inside app folder, and I also found this in configs:
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
rebuild the project
Doesn't generate a new singed APK. Go to > Build > Generate Singed Bundle/APK....
Be sure that you open project with your android studio well.
If it, not an android studio project. You should go to. File -> New -> Import Project...

IntelliJ IDEA not running basic JavaScript hello world

I've created a brand new project in IDEA:
File-> New -> Project -> Static Web -> HTML5 Boilerplate.
If I create a .js hello world, it won't let me run it, and "Run" menu only allows me to "Edit Configurations".
I checked JS Plugin and everything seems to be OK and activated, any hint?
UPDATE: Screenshot proving that is actually possible to execute JS code on IDEA Console:
Just as it's mentioned in the #Rory O'Kane comment, HTML5 Boilerplate is a web application supposed to be run in browser. To run it in IDEA, right-click the index.html in project root directory and choose Run 'Index.html' or Debug 'index.html' - application will be started on the built-in webserver

Typescript not compiling on save or publish in Visual Studio 2017

It seems not matter what I do, I cannot get my .ts files to compile into .js files. I have uninstalled and reinstalled Visual Studio 2017 Community and I now have VS 2017 15.2 (26430.15) and Typescript 2.2.2.0 (according to the About window inside VS).
Steps I am taking:
Open Visual Studio, File -> New Project
ASP.Net Web Application (.Net
Framework)
Select 'empty' template, add references for MVC
Add a new folder called 'Scripts'
Add a new ts file called ts1.ts
Open ts1.ts and add single line (e.g. var a = 1)
Save - no JS emitted.
Build - no JS emitted.
Ask VS really nicely - no JS emitted.
I've tried it with/without tsconfig.json and I have tried adding compileOnSave to tsconfig when I have added it.
Help?
edit: There are no build errors or warnings and I get a message in the footer saying Output(s) generated successfully.
Do you not just need to select "Show All Files" in the Solution Explorer. I have just followed your exact steps, and when showing all files, I can see the JS file, its just not automaticly added to the project.
Spot the idiot.
I had to enable 'view all files' to see the generated JS.

How can I debug stand alone JavaScript files in Visual Studio Community 2015?

I am practicing JavaScript and have some stand-alone JavaScript source code that doesn't have to run inside a Web page.
I opened a New -> File in Visual Studio Community 2015 and pasted my JavaScript code in there and saved it to a file on my disk.
I set breakpoints where I wanted to.
Now, I see the Attach button on the top that looks like the Run button but I don't know process what to attach this code to. How do I run this JavaScript code in debug mode?
This question pertains to using Visual Studio as an editing and debugging environment for JavaScript stand-alone sources.
You certainly can do this with Visual Studio. You have two options:
Use the EXE project system to launch and debug your JavaScript file with cscript.exe (Makes full use of the IDE, but requires some setup)
Use the Just-In-Time debugger to attach Visual Studio to cscript.exe, launching Visual Studio, if necessary. (Gets you debugging with no setup, but does not really make use of the IDE)
Option 1: Using the EXE Project System
You can create a project from an EXE so that you can launch the EXE with F5, F10, or F11. From the File menu, choose Open Project and choose %windir%\System32\cscript.exe and click Ignore on the UAC prompt. You should now have a project named cscript.
Now you can either create or open a .js file for editing and setting breakpoints. To debug your .js file, setup the project properties.
Right-click on the project and select Properties to open the project properties page.
Fill in the following parameters:
Arguments: //D file
Debugger Type: Script
Working Directory: Path to the folder containing your .js file
The remaining parameters' default values should be good enough. At this point, you are ready to hit F5 and debug your .js file.
Option 2: Using the JIT Debugger
You can run your .js file with the following command in the command prompt:
cscript //X <your .js file>.
This should automatically bring up the Just-In-Time debugging dialog from which you can choose which Visual Studio installation/instance to launch and attach with (shown below).

Categories

Resources