I have configured sublime text 2 according to this video from Dart site. I have added this "dartsdk_path": "/home/green/dart/dart-sdk", to the Preference -> Setting-user. The syntax highlighting and and line indention works perfectly. But when i try to build i have the following error
[Errno 2] No such file or directory
[cmd: [u'dart2js', u'--minify', u'-o/home/green/Desktop/darttut/untitled.dart.js', u'/home/green/Desktop/darttut/untitled.dart']]
[dir: /var/www]
[path: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/green/bin]
[Finished]
Did I miss something? or did i have done something wrong? I am using Ubuntu 13.04 x64 os.
Try modifying your Dart build file (~/.config/sublime-text-2/Packages/Dart/Dart.sublime-build) to include the full path to the dart2js command - something along the lines of:
"cmd": ["/full/path/to/dart2js", "--minify", "-o$file.js", "$file"],
You will also want to either add the path to dart2js to your $PATH environment variable, or, better yet, make a link to it in /usr/local/bin:
sudo ln -s /full/path/to/dart2js /usr/local/bin/dart2js
Related
I am trying to set a portable development Environment:
VS Code - Portable mode
git-bash - portable
Node.js - portable
VS Code throws Error: The terminal shell path "......\vsCode\git\bin\bash.exe" does not exist
I have C:......\Documents\Storage\vsCode\data\user-data\User\settings.json
and C:......\Documents\Storage\vsCode\git\bin\bash.exe
settings.json:
{
// Git Bash
"terminal.integrated.shell.windows": "..\\..\\..\\vsCode\\git\\bin \\bash.exe"
}
It works in CMD:
C:\.........>cd C:\...........\Documents\Storage\vsCode\data\user-data\User
C:\.......\Documents\Storage\vsCode\data\user-data\User>cd ..\..\..\git\bin\
C:\.......\Documents\Storage\vsCode\git\bin>
Can you guide me how to deal with relative path in VS Code without setting global variables in the operating system. I will need to do the same thing with Node.
Sorry for the messy post but I am fairly new to posting here.
You can follow below link :
https://code.visualstudio.com/docs/editor/integrated-terminal
You need to edit the terminal integrated path in settings.json file to which ever thing you want it to compile it with
See the URL in the screenshot to find the location for settings.json file at my end:
I searched for "shell path" in the VS Code settings and noticed that the path was wrong
(Program Files instead of Program Files (x86))
I had to change it to
"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe",
#Rhatalin thank you for the suggestion. I had the same issue on Windows 10. After updating below setting in settings.json (File -> Preferences -> Settings search for shell and choose Terminal-Integrated-Automation Shell: Windows -> Edit in settings.json) the issue was gone.
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
After a Windows update, I got the same error. I had to add escape \ characters to each backslash in the path to get it to work again. (check your path to make sure each single \ is double \)
This works: "C:\Program Files\Git\bin\bash.exe"
This does not work: "C:\Program Files\Git\bin\bash.exe"
How to fix this error. When i use command “yo meanjs”, but not show as in video. It’s:
undefined
You’re using the official MEAN.JS generator.
What mean,js version would you like to generate? i choose 0.4.0
In which filder would you like the project to be generated? mean
Cloning the MEAN repo…
Then it appear error:
Command failed: C:\Windows\system32\cmd.exe /s /c “rm ./mean/package.json”
‘rm’ is not recognized as an internal and external command, operable program or batch file.
you should install git on windown 7 and select folder you want . click -> right mouse -> Git Bash
After type command : "yo meanjs" and everything will good
The tpt2213's answer works, but it can't select menu items of "yo meanjs" with arrow keys.
You need to have cmd.exe with PATH setting, which includes the git command and Unix commands like the rm.
If you install git on window 7 in the folder, "C:\Program Files\Git", set PATH before you run "yo meanjs".
set PATH=C:\Program Files\Git\usr\bin;C:\Program Files\Git\bin;%PATH%
yo meanjs
I just installed Sublime-jshint (and the requisite node.js + jshint) but get this error when I try to invoke JSHint from within ST2:
[Errno 2] No such file or directory
[cmd: [u'jshint', u'PATH-TO-THE-JS-FILE-I-AM-LINTING', u'--reporter', u'/home/cmg/.config/sublime-text-2/Packages/JSHint/reporter.js']]
[dir: DIR-MY-JS-FILE-IS-IN]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cmg/bin]
[Finished]
The final item in the given path is in the home dir of my user (cmg), so it's been customized somehow... but I don't recall how, so I don't know how to add the dir I need (~/node_modules/.bin).
I've added it to $PATH in my shell (via both .bashrc and .bash_profile) but ST2 doesn't pick it up.
(I'm on Ubuntu 14.04. All the usable stuff I've found via Google on this subject has been either OS X specific or related to ST's build system).
Basically, the exec command, which the jshint package uses internally, allows you to set/extend the PATH of the spawned subprocess. (docs)
The package actually uses this path argument on OSX, but has it hardcoded (I am partly guilty of that as I rewrote the command because it was just horrible before). It should allow for a setting to specify the path to your jshint executable, so I suggest you create an issue for that.
I don't know why ST dosn't pick up your PATH from somewhere else since I have very little experience with that.
Open /etc/profile in Sublime (using sudo) and add the following line at the very bottom:
export PATH=/home/cmg/node_modules/.bin:$PATH
and save the file. Restart completely, and your PATH should be updated.
I am trying to build Chromium and am stuck on the step that involves building the component build.
I have tried the instructions at http://www.chromium.org/developers/how-tos/component-build but I am having difficulty getting them to work.
I type in "python build\gyp_chromium -D"component=shared_library" into a command prompt and get:
C:\Users\username>python build\gyp_chromium -D"compoment=shared_library"
C:\depot_tools\python_bin\python.exe: can't open file 'build\gyp_chromium': [Err
no 2] No such file or directory
What am I doing wrong?
Thanks!
The file name is gyp_chromium.py. You forgot the extension
I have installed JSlint properly but when I tried to run it I got below error:
[Error 2] The system cannot find the file specified
[cmd: [u'/usr/local/bin/node', u'/usr/local/bin/jslint', u'--sloppy', u'--indent', u'2', u'--node', u'--nomen', u'--vars', u'--plusplus', u'--stupid', u'']]
[dir: C:\Users\agrawal_d\AppData\Roaming\Sublime Text 2\Packages]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;c:\Python27;C:\Program Files\nodejs\;C:\Users\agrawal_d\AppData\Roaming\npm]
[Finished]
Not understanding why it's showing this, can anyone please give me the solution
I got this problem as well and I hacked the file JSLint.sublime-build under installed JSLint package directory by replacing /usr/local/bin/node by the path to my node and it works.
Seems you're installing sublime text under windows platform. maybe you need to find the path to your node installation (e.g., C:\Program Files\nodejs\bin\node) and make sure the JSLint package can find it.
jslint most likely must be separately installed on your computer using Node and NPM package manager
Please follow the plug-in installation instructions on the plug-in README.
Here is a guide with some pictures
http://opensourcehacker.com/2012/04/12/jslint-integration-for-sublime-text-2/
It seems weird but in my case the solution is different. I was getting following error:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'c:\\users\\arvind~1\\appdata\\local\\temp\\SublimeLinter3-arvind\\app.js'
I checked the c:\\users\\arvind~1\\appdata\\local\\temp\\ folder and found that it had not SublimeLinter3-arvind folder. I created this folder manually and JSHint it started working..