error on every external java script file in nodeclipse - javascript

Nodeclipse gives an error on external .js when copied, but works fine project run, how to remove those error , or is there a another way to include those external .js file in node project, if then how to do that
here is screen shot of it.
any help is appreciated. tu

The question is why there are red error markers.
That is standard for Eclipse.
Reset Node perspective to get Problems View, and see what Eclipse says about all those errors.

Related

Intellij does not seem to compile or interpret JavaScript properly, and any changes or settings on IntelliJ cannot be saved

I'm currently learning React Native and JavaScript for a mobile application development. I have been in this problem for quite a while and wish to know what went wrong.
After having downloaded Expo and open the App.js through Intellij, I noticed that the code does not show any color for the important keywords, and that there isn't any meaningful suggestion for library or methods whenever I made changes on the JavaScript/HTML code. This makes me wonder, if JavaScript cannot be interpreted on IntelliJ or do I need to install any additional software for the compiler to do so.
[The App.js file when I opened it][1]
Moreover, whenever I made any changes to the code line, it does not allow me to save the code. At first, I tried to avoid the error message, but the changes cannot be viewed on my phone as well when I opened Expo. This is the error messages:
[Error shows that I cannot save the file][2]
[Unable to save settings][3]
Is there anything I can do to resolve these errors? Thank you!
[1]: https://i.stack.imgur.com/AA4Uk.png
[2]: https://i.stack.imgur.com/BdZEX.png
[3]: https://i.stack.imgur.com/41ncv.png

Need help p5.js and Atom Text Editor

Well I recently started off with atom and p5.js well I am very new to JavaScript. Here comes my problem : When I try to run the file it shows me "sketch.js is not a .py file, exit" . I checked the the selection is set to JavaScript but can't figure out what is wrong.. Please Help !
Well the "sketch.js" is the default one which comes with "p5.js" and yes I have installed "node.js" so no issues with that and the problem comes when I edit the "Sketch.js" template and try to run it , it shows saving and after that it says "sketch.js is not a .py file, exit"
You need to isolate your problem. Is the problem in the Atom editor, or is it with P5.js?
Try running your sketch as a standalone .html file that you create with a basic text editor (like JEdit or Notepad, not with Atom). Can you get that working by itself?
Then try running a more basic JavaScript application in Atom. Try simply printing something to the console. If you're still getting the error, then you know it has nothing to do with P5.js.
Isolating your problem like this will help you refine your Google searches, and it will make it easier for people to help you.
Note that P5.js does not require node.js, which runs on a server. It requires regular client-side JavaScript.
I'll also just note that if you're having trouble with stuff like this, it's a good idea to stick with a basic text editor and write and run your code by hand for a while. Code editors hide a lot from you, which can be nice, but not if you're still learning the fundamentals.
You are likely using an editor like Genie or something which runs python programs by default. Have you installed node.js? If not install it and then browse to the directory using command prompt. Then run "C:\Program Files\nodejs\node.exe" file.js

Auto js file is created while updating a css file as the same name while using atom editor

Every time while I am updating my css file and hitting cmd+s it saves the file and at the same time a js file is created underneath it in the same name as the css file, I am using Atom editor and am afraid that I might have installed any package thats causing this problem, how to get rid of it?
I had the same issue but only on one of my computers and I found that the difference between them was that I had 'language-javascript-jsx' on the atom instance giving me the issue. After disabling it and restarting, the problem went away.

Eclipse - Undo "Convert to JavaScript Project..."

I am working on a AngularJS/Gradle project within Eclipse.
Everything was working fine and no error was displayed within my project explorer.
Due to an idea I chose my project -> right click -> Configure -> Convert to JavaScript project...
After that I had various errors in my *.js (AngularJS) files in my project explorer (but my project works fine!). Therefore I decided to remove the nature from my ".project" file but the errors are still there.
What's the correct way to "undo" that "Convert to JavaScript project" stuff?
Any help appreciated!
I think It doesn't exists a Un-convert to JavaScript Project. So you must edit your .project and remove the following lines:
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
After go at to your Problems View and remove the error if it exists again.

Adding JQuery/Javascript Files to Project

I have a project I am working on at work that is ASP.NET in TFS. I have checked out the solution and have made some adjustments to the code behind with no issues. When I try to add JQuery and a Javascript file to the project, it does it fine in Visual Studio 2012. But when rebuilding and running it won't execute the javascript code. It's like it ignores it. When I put breakpoints in the Javascript file I get the message 'The breakpoint will not currently be hit, no symbols have been loaded for this document'. I simply cannot get the web page to acknowlegde either the JS file, or the JQuery file.
(And yes, I have scoured StackOverflow.com and tried all the suggestions mentioned)
Any suggestions appreciated!

Categories

Resources