Is there a way to Invalidate / Cache restart from terminal? - javascript

I was wondering if there was any command from terminal that I could use to match the use in Android Studio of doing file>invalidate cache/restart.
Thanks!

According to a JetBrains employee doing the following will have the same effect:
Shut down Android Studio externally (using kill or similar command), then
Delete system/caches directory (more on that later), and
Start the IDE again.
How to find system/caches directory?
Location of the IDE files depends on the operating system, product and version.
For IntelliJ IDEA follow this guide.
So e.g. for IntelliJ IDEA 2020.3 on macOS you should be looking for ~/Library/Caches/JetBrains/IntelliJIdea2020.3/caches directory
For Android Studio follow the same guide as above but instead of JetBrains in the path use Google
So e.g. for Android Studio 4.2 on macOS you should be looking for ~/Library/Caches/Google/AndroidStudio4.2/caches directory

Related

The project type is not supported by this installation in Visual Studio 2015

I'm trying to create a Windows JavaScript app. Every time I do, i get this error:
The project file 'C:\Users\Matt\AppData\Local\Temp\qugu4hsq.ibc\Temp\Test.jsproj' cannot be opened.
The project type is not supported by this installation
I've looked up a solution, and it involves editing the jsproj file, but in source/repos/test, only the .vs, Test, and Test.sln files/folders exist.
I've looked in the temporary folder, and qugu4hsq.ibc doesn't exist. Is it because the Windows Universal C# apps require I upgrade to windows 10 to use?
See this:
https://developercommunity.visualstudio.com/content/problem/159626/jsproj-cannot-be-opened-project-type-not-supported.html
Specifically:
It's working for me now. To fix, I had to uninstall the "Universal Windows Platform development" workload. And then reinstall it. Then in the individual components, I had to manually make sure that all the Windows 10 SDKs were checked.
Good luck

How can I run script.js in Eclipse console?

Is it possible to do the same as this in Eclipse what he is doing in Intellij IDEA? to run the javascript file in console?
To set up Eclipse to run JavaScript files:
In Eclipse, got to Run > External Tools > External Tool Configurations
Double click on Program to open a new configuration and name your new configuration (ex. Node_Config)
Figure out where you have node.js installed. Paste the results in the 'Location' box in Eclipse. (If you haven't installed node, do so here)
Mac: in the command line, run which node.
Windows: in the command line, run where node, or see this for more/different windows advice
Fill in the following:
Working Directory: ${container_loc}
Arguments: ${resource_name}
Click apply, and then close.
Now, in the main Eclipse screen, find the play button with a red toolbox (next to the regular play button). When you have a js file open that you want to run, click this and it will be just like running it from your console using node.
Since Eclipse Neon you can do that. I suggets you that you
download Eclipse Neon and install Eclipse JEE Neon distribution.
install node.js.
With Eclipse JEE Neon, you will benefit with Run As / Node.js Application and even with Debug As / Node.js Application:
He is using WebStorm which is editor for Front-end dev from same company (JetBrains).

Run cordova phonegap through a specific ide

I would really like if someone of your very well-known community could help me.
Here is what I try to do. I try to run apache cordova through aptana using Ripple and Android Emulator
I am using aptana studio 3 for web development IDE and I try to configure it in order to develop phonegap apps. I have OS Windows 8.1 64
I have Java sdk
I installed Android sdk
I have Node JS
I have the cordova phonegap using npm install -g cordova in the C
I have installed Ripple emulator as plugin in Chrome. In order to run it through aptana I go to the run arrow and I select Run Configurations and making a new configuration using in
Browser Executable: the path for chrome.exe
Arguments: --enable-extensions --allow-file-access-from-files
And run it.
Also I go to Help --> Install New Software in order to take the android developer tools. I click in the right up corner the button Add and I give the name ADT and location https://dl-ssl.google.com/android/eclipse/
Everything work. I tried to insert an existing phonegap project and run it but I have a problem to show the android emulator. Any help how can I do it?
Also any help how I will run a new phonegap example in order to make my own app and test it with Ripple and Android Emulator? Also can I install plugins like org.apache.cordova.splashscreen

Which console commands will build a JavaScript projects into .appx Windows 8 Metro applications?

I hate IDEs, is there any way to use Make to build Metro apps from source code?
MSBuild can natively build Visual Studio projects (*.csproj) or code files directly:
msbuild Project.csproj /t:Rebuild
It's installed with Visual Studio and/or the .NET Framework, and can be found (depending on your framework version) at:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
I also just double checked on our Windows 2008 web server (which does not have Visual Studio installed, but does have .NET 4 installed) and it also has MSBuild.exe, so you shouldn't even need VS.
I believe you'll need to run the Publish target to actually create the appx package once the project is built:
msbuild myproject.sln /target:Publish /p:configuration=release /p:platform=win32
MSBuild is extremely powerful and can be extended with .NET code, and comes with tasks designed to do various things. There's tons of tutorials online, but this one might be great to get started.
App packager (MakeAppx.exe) creates an app package from files on disk or extracts the files from an app package to disk. It is included in Microsoft Visual Studio Express 2012 for Windows 8 and the Windows Software Development Kit (SDK) for Windows 8.
see this article on MSDN, but I have to warn you... last time I tried to get it signed without an IDE gave me lots of headaches.

Eclipse does not support web projects or web file types after installing WTP. Am I installing it incorrectly?

I currently have the latest version of Eclipse (Juno) and I have installed ADT with no problem. I have moved on to a web based project and I require support for JavaScript and HTML etc. I installed WTP through the update manager and you can see that all of the required packages appear to be installed:
However, within Eclipse there is very little evidence that anything has been installed. I have read in this jsdt tutorial that I should be able to create web projects such as "Static Web Project" and have text editting support for HTML and JavaScript. However, I see no web project options, HTML or JavaScript file options, no perspective options for HTML or JavaScript, and no support for editing html/javascript files.
Here you can see an html file I attempted to create. Notice the lack of syntax colouring:
Here you can also see all the project creation options that are available to me:
So how should I have installed WTP? Should I not have installed it thought Eclipse's software manager? I would like to do this without having to re-install Eclipse if possible.
This problem seems to exclusively occur in Windows 7. I managed to successfully install the desired software by right clicking on the Eclipse icon, selecting "Run As Administrator" and then re-installing all packages. I did not have to do this in Windows Vista.
If you are experiencing this problem and you are using Windows then follow these steps.
Right click on the Eclipse icon and select Run As Administrator.
Once you have opened your Workspace go to Help -> Install New Software.
Any installed packages that you installed when you did not Run As Administrator should now not appear to be installed. So install them again.
Restart eclipse (normally if you wish) and your desired packages should be installed correctly.

Categories

Resources