How do I incorporate jsLint into BBEdit?
Environment:
OSX Mountain Lion
BBEdit 10.1.2 (3152)
I installed Node.js (0.8.14) and ran
sudo npm install -g jslint
I am able to run jslint from the command line by running
jslint [filepath/]filename
I found a tutorial that seems to explain how to connect jsLint to BBEdit; however, I have never written an AppleScript and have no idea where to start.
Any guidance would be much appreciated.
UPDATE
I loaded the AppleScript from the tutorial into the AppleScript Editor Application and ran it.
I'm now getting the following error message:
Can’t get paragraphs 3 thru -1 of "Can’t make POSIX path of missing
value into type Unicode text.".
I found the problem. I am using the BBEdit FTP browser and working directly off the server. This was causing problems with the file path that the AppleScript was relying on.
A short-term solution is to work on the file locally and then upload it when complete.
The better solution would be to mount the server as a drive. This would provide the most functionality with the greatest ease of use.
Related
I am a very early beginner to coding. I downloaded VS Code so that I could, you know, have somewhere to code in Java. However, I keep getting these two errors telling me these two extensions that I already have installed on VS Code are not working here are the error messages. I already searched through the odds and ends of StackOverflow and have tried everything, and nothing has worked. Any help would be appreciated.
I inputted some code into settings.json under a "java.configuration.runtimes" thing but nothing in it worked. I conformed it to my installation directories and current Java version
Do you have a JDK (Java Development Kit) installed?
If you are on Windows, you can check by clicking on the start button, and search through applications and programs for a Java folder.
If you are on MacOS or Linux, you can open up the terminal/command line and type in "java -version" and if it is properly installed, it will display the version.
If you do not find a JDK installed, install one from https://www.oracle.com/ca-en/java/technologies/downloads/
Download and install the Coding Pack for Java.
It would be helpful to follow this documentation to get started.
Okay, I'm not a programmer first of all, so I have 0 idea what is happening. Please go easy on me..
The project I'm trying to compile is a web browser extension (or webpack idk). There is a file called Installer.bat with the "npm i" command and a file called compiler.bat with the "npx webpack" command.
Now, there is no issue within the project, because it worked on the same machine with different windows 7 with no problems. On this ystem (32-bit windows 7 by the way) I keep getting the following error when running compiler.bat file :
Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)
I know I should probably link the webpack.config.js code here, but it's pretty big and I'm thinking that this error is ocurring because of something entirely different anyway. I will say that during the installation of nodejs, the additional chocolatey packages failed because of problems with powershell/TLS 1.2 or whatever. I do have python 3.6 installed though. Not sure if that matters but yeah. And also, my friend who downloaded it on his machine has also stumbled across an error with the compiler.bat but it was a EPIPE error.
Any ideas? Do I need to install something else besides NodeJS? This project isn't mine and it always compiled with no problems in the past (on the same machine but a different windows 7 though). I tried to look for answers for weeks, but found nothing. Mostly people just had issues with their project CODE not the nodejs or modules. I'm almost losing hope and the author of the project doesn't want to communicate for whatever reason.
EDIT: Apparently didn't have java sdk 8 installed, fixed the issue.
Given: Node.js console application (using Visual Studio) which has downloaded several packages via NPM. When NPM does this it downloads the source code of those packages and puts them into the node modules folder.
Problem: The javascript code that I'm writing needs debugging of which I will often single step into to see the code paths. But the problem is it defines "Just My Code" as being anything it used during the "compile" of the project. This includes those node modules so I wind up on long goose chases often.
Is there a way to exclude single stepping into the node modules and in effect only step into "just my code"...?
The answer to this question is that VS2015 code debugger code itself must do this. NTVS hasn't done it yet, and the MSFT team knows this is an issue. When they fix it I'll post back.
I'm trying to build the Chrome V8 javascript engine so I can embed it into my c++ project. I'm following the tutorial here. I downloaded everything that was needed and managed to get the project solution created but when I compile it only 5 of the 12 solutions get compiled correctly. Can someone shed some light on my problem? There doesn't seem to be much info on the web about it.
Some tricks I learned are this:
use the correct gyp command that will generate correct sln files. maybe target architecture argument was wrong or some other parameter you supply to gyp.
I do not know how to properly "clean" the source tree, so if I wanted new options to gyp I just delete the whole source tree and unpack from original archive. (or use svn).
Make sure you use python and cygwin supplied with v8 sources.
I used pc emulator (qemu) to install Windows XP + Visual studio and v8 sources+tools.
I tried various versions of Visual Studio only VS Express 2010 worked.
On linux everything is simpler. And you do not even need to build it, just use "aptitude install v8-dev"
I am currently in a web development class and we are using Ruby on Rails.
I am using Ruby v1.9.2 and Rails v3.1.1.
My initial problem started when I tried to execute 'rails server'.
I would get the following error:
C:\Sites\rorProjects\basicRoRProject>rails server
C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime.
See https://github.com/sstephenson/execjs for a list of available runtimes.(ExecJS::RuntimeUnavailable)
I have done some reading and the general consensus is to install the gems 'execjs' and 'therubyracer'. 'execjs' installed just fine, however when I tried to install 'therubyracer' I got the following error:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
Check the mkmf.log file for more details.
You may need configuration options.
I then did some more reading and found a couple of people said to check that they had the gem 'libv8', which was required for 'therubyracer'. I did that and discovered that I didn't have it, so I then went to install that and got the same error that I did for 'therubyracer'.
I'm at a loss to think of anything else to do. Any help would be greatly appreciated.
Thanks guys!
THIS PROBLEM HAS BEEN SOLVED.
So, with the help of one of my classmates who had a similar problem, I installed Node.js using the Windows installer (this gave me a JavaScript run-time environment). I then added it to the path in the local variables.
So, with the help of one of my classmates who had a similar problem, I installed Node.js using the Windows installer. I then added it to the path in the local variables.