In eclipse IDE, how can I see the javascript source code GWT has generated ?
Assuming that you are using latest GWT version with Google Plugin for eclipse you
just need to look under the war/ directory.
But unless you are compiling with "detailed" or "pretty" option you will not be able to make much of the JavaScript output because by default GWT compiler generates obfuscated code.
See http://code.google.com/eclipse/docs/gwt_compile.html for setting compiler options.
Related
So I've started using VsCode over Atom recently and love it, the issue is I develop for software that uses its own JS API with no proper integration into anything.
I've started trying to implement my own autocomplete/intellisense structure using their pdf into VsCode to speed up my workflow, currently I'm simply using a JS file that is full of empty functions and objects with a bunch of JSDoc comments to help VsCode Intellisense identify what's what, that seems to be working fine so far but it means importing this "useless" file into every project I work on.
I looked into extending the JS language using a language server but that seems way too complex for what I need (plus it looks like I'd be building the entire Javascript language from scratch).
Does anyone have any recommendations ect?
Kind regards.
Edit
Sorry I also would like the ability for it to pass linting as right now it gets a bit funky with it.
You likely do not need an extension for that your example use case.
VS Code's intellisense for libraries is powered by .d.ts typing declaration files. The declaration files for the library you are using can either be written in your current workspace as you are currently doing, or—preferably—shipped with the library itself. Many npm modules ship their with typing definitions files, while other libraries have typing definition files provided by the community through DefinitelyTyped.
You alternatively bundle d.ts types file into as a separate npm package that you include in any project that needs them
I have built an app for osx which runs nwjs. Right now the app is simple - I am just running the nwjs binary and pointing it to the root of a web application.
I'd like to make use of nwjs's java script protection feature - in which you can build your javascript in to native code and load that binary with nwjs. This can be read about here: http://docs.nwjs.io/en/latest/For%20Users/Advanced/Protect%20JavaScript%20Source%20Code/
My question is twofold:
Suppose I have an entire js/ folder which stores each of my javascript files, and that that js/ folder has multiple other subfolders. Do I need to run nwjc for every single javascript file? I noticed the option of --nw-module, but can this apply to a directory with multiple subfolders in it? Also, once you have built the binary, what do you do about the tags in the html that were loading the regular js files before? Can those stay the same, or do they need to change?)
I am restricted to building my app on Linux. The nwjs documentation says: "The compiled code is not cross-platform nor compatible between versions of NW.js. So you’ll need to run nwjc for each of the platforms when you package your application." Does anyone know of any tools which overcome this issue? I have found multiple tools such as Web2Executable, etc., which provide cross platform support. But I need to make use of nwjs's java script protection. Do any of these tools give a way to utilize this?
I am using ubuntu 15.10 and used ubuntu software center for netbean's installation. So, here is the list of not working functionality which I noticed.
In html files, it show red color when select tags, no code folding, enter button is not working for lines and no code completion.
In Javascript files, it show plain-text only.
In Php files, only code folding is not working.
I know how to disable or enable syntax. I have also answered a question here.
I think it is because a plugin is not installed. If so, I really don't know which plugins I should install for php developement.
EDIT
One more thing I want to show you my installed plugins are shown in the below image
Please help me with Answers/Suggestions. Thanks in Advance.
Netbeans was primarily developed as Java programming IDE. So all functionality for programming languages other than Java is not hardcoded into Netbeans internal functionality but can be ensured by external plugins.
It seems that Ubuntu software center contains general Netbeans bundle that can work with Java but lacks PHP plugins (and perhaps highlights some PHP syntax because of its similarity to Java syntax).
You can find out what plugins you need and install them, but more convenient solution is to download and install from official site PHP Netbeans bundle which includes all functionality for PHP Web-development including PHP, HTML and JavaScript syntax highlightning and code folding.
Can anybody tell me if (and how) it is possible to use the Visual Studio Code JavaScript IntelliSense (OmniSharp i think) (or other) in own C# projects?
I have a textbox in which a user can add JS code and it would be nice to support the user with IntelliSense.
Thanks.
I recommend looking at this thread, as this seems a duplicate.
Intellisense supported TextBox in WPf
The Intellisense for Javascript projects in VS Code is powered by the typescript compiler and the tools around it, not by Omnisharp (which provides Intellisense for C# projects).
You can integrate it into your own projects through the typescript language service and server. For details you should refer to the typescript documentation: https://github.com/Microsoft/TypeScript/wiki/Architectural-Overview
There's a Google Maps API v3 Visual Studio Intellisense Helper, which presumably works great for Visual Studio, but Aptana (based on Eclipse) uses a different JavaScript documentation format - ScriptDoc (.sdoc files). ScriptDoc is also the name of a VS utility to convert JS files with Intellisense comments into XML, just to confuse things.
I've tried adding the Intellisense files as file / global references in Aptana, but all this gives is completion for the word google and no completion or documentation in the google namespace.
Possible solutions:
Find someone who's already done this for Aptana. I've Google'd quite a bit already but couldn't find anything.
Convert the Visual Studio Intellisense Helper into a format Aptana can understand.
Scrape the API page and convert it into a format Aptana can understand.
Can't you put the JS file in the Project's references ?
I'm using Aptana and ScriptDoc is the worst decision they made and they seem to be attached to it, it's the main reason I have considered switching to Eclipse.
I've been thinking in using jsdoc-toolkit to generate .sdoc files from jsdoc notations (using some type of templates), but to use .sdoc files you must insert #id tags all over your code, and that discouraged me.
This helper is for Visual Studio. I don't think Aptana can work with vsdoc.js files
Aptana Plugin for Eclipse and jQuery code assist
I found this and I'm checking if it helps
http://code.google.com/p/closure-compiler/source/browse/#svn%2Ftrunk%2Fcontrib%2Fexterns%2Fmaps