I Can use a custom Swiftlint Instalation path on xcode? - swift

I need to install swiftlint with mint on my mac, on the path user/.mint/bin, but xcode dont recognize the installation i can use a custom path xcode swiftlint configuration ?
I added a default image from the conf below.

Before checking for swiftlint, your script needs to update the local PATH:
export PATH=${HOME}/.mint/bin:${PATH}
# Rest of script

Related

TNS command not found after installing NativeScript

I updated NPM and Node before installing NativeScript, without errors I might add, but when I attempt to create a new project using tns create MyProjectName, I get the error tns command not found.
After much reading, I'm getting the feeling it has something to do with my PATH.
This is what is outputted in terminal during the NativeScript install regarding TNS:
sudo npm install -g nativescript --unsafe-perm
/Users/martingeldart/.npm-global/bin/tns -> /Users/martingeldart/.npm-global/lib/node_modules/nativescript/bin/tns
/Users/martingeldart/.npm-global/bin/nativescript -> /Users/martingeldart/.npm-global/lib/node_modules/nativescript/bin/tns
...
If I run echo $PATH, this is what outputs:
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/bin/lib/node_modules/nativescript/bin
Which looks really odd to me but I'm no command line expert by any means. In fact, I'm incredibly inexperienced with the whole command line system.
Why am I not able to access the tns command? What is going on with that PATH I echoed?
MacOSX
Between version of npm the location of the global package moved location in the OS. Since the installation has moved the terminal does not know where to find the command. The PATH variable is used to tell the terminal where all the command may be located. In this case this seems a standard.
Now the best way to access command from an installed package is to use npx which is included by default with the new installation of npm.
https://docs.npmjs.com/downloading-and-installing-packages-globally
npx tns
# In your case
npx tns create MyProjectName
There 2 other ways to resolve this.
Either your global package folder is not set up correctly.
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
Add the bin folder where nativescript was install to your path manually (usually in .bash_profile), open a new terminal.
I use nativescript for various project and I have a suggestion for package management. Usually I avoid installing global package because in case of multiple project there may be conflict between version if some project are updated and other not.
I usually create a folder with the version I am installing. Go to the folder, npm init and install locally the package.
mkdir nativescript-project-6-0
cd nativescript-project-6-0
npm init
npm i --save nativescript
Now I have a fix version to work with and can create other project with the same version even if I have other project with newer version of the tool or lib. Now in nativescript-project-6-0 I create my project.
npx tns create MyProjectName
This should create a folder nativescript-project-6-0/MyProjectName. All set and ready to go. Remember that is is always a good idea to use npx in this case since we want to use the local package.

Debug Error Occurred in Eclipse

I'm trying to debug an open source package, called libprotoident in Eclipse, Kepler version, within Debian. As it has the Makefile, I choose to make an empty Makefile project, and then add all the sources into the workspace. So after that the source compiled and run successfully as in the command line using the Makefile.
As it has 4 apps you can use, I choose to run lpi_protoident package in the run configuration window, as the following image shown.
So the Program ran successfully. Now I'm trying to debug it but it generates the following error.
How can I solve this error and debug the Project?
The file you are trying to debug is most likely a shell script created by automake that acts as a wrapper around the real executable, which has been built in a hidden directory.
Instead of telling Eclipse that tools/protoident/lpi_protoident is your application, try using tools/protoident/.libs/lpi_protoident instead.
General Answer about the error you are getting
What not in executable format: File format not reconized error means is that lpi_protoident is not an executable on the platform you are working on.
Are you sure that is an executable you can run (E.g. from the command line)?
There is also the small chance that the GDB you are using is somehow incompatible with the executable, but that is less likely.
Building libprotoident from source
(Assuming you are trying to build https://github.com/wanduow/libprotoident)
You are trying to build an automake project. The normal way to do that is by configuring to create Makefile, you shouldn't be making your own makefile. Please refer to the README in the project, but the key parts you need to do are:
Installation
After having installed the required libraries, running the following series of commands should install libprotoident
./bootstrap.sh (only if you've cloned the source from GitHub)
./configure
make
make install
By default, libprotoident installs to /usr/local - this can be changed
by appending the --prefix= option to ./configure.
The libprotoident tools are built by default - this can be changed by
using the
--with-tools=no option with ./configure.

how do I run doxywizard?

I have successfully downloaded and installed doxygen. I am trying to run doxygen but am a little overwhelmed by the configuration file. I see that there is a utility called doxywizard that guides you through the creation of a configuration file. How do I run this wizard? I see that there is a folder called Doxywizard. Do I run one of the files in this folder?
brew install doxygen --with-graphviz --with-qt --with-llvm
EDIT:
The command used to be:
brew install doxygen --with-dot --with-doxywizard --with-libclang
If you successfully installed doxygen, then you can run Doxywizard by typing doxywizard in terminal. I think, by default it goes into /usr/local/bin/.
EDIT: The official .dmg file for MacOS from the doxygen download page does contain the GUI front-end (doxywizard).
When building from source, according to the doxygen user manual, one must use configure --with-doxywizard to enable doxywizard (also, note requirement for Qt version).

CanĀ“t add less-compiler lessc on Netbeans 7.4

At first I downloaded Less from GitHub and saved the folder on my disk. After that, I tried to locate the compiler (file lessc) in my Netbeans IDE (7.4 Beta). After that, I got the following Error-Message:
I'm not sure if Less compiler can work without NodeJS. So I would do following:
install NodeJS (nodejs.org)
install less compiler using npm
npm install -g less
then NetBeans should find it, if not, you need to specify path to lessc.cmd, e.g.
C:\Users\lada\AppData\Roaming\npm\lessc.cmd
to find where is your lessc.cmd, run following in command line
where lessc.cmd
The lessc (without cmd) is for Linux and Mac OSX
I downloaded lessc from here:
https://github.com/duncansmart/less.js-windows
unzipped the zip-file and copied all files to C:\bin\lessc but you can copy it anywhere you like.
Then just point Netbeans to that folder and lessc.cmd and it should work.
Try:
Install nodejs
Install less in nodejs "cmd: npm install less"
less path netbeans: C:\nodejs\node_modules.bin\lessc.cmd

Rubymine can't find SDK. Where is it?

I have just installed rubymine 5.4.3.2.1 and am trying to start an example project. The problem i am having is that rubymine is asking for a SDK. So where do i point it to?
You should point it to the where you keep your Ruby Binary File, for example:
Windows - d:\dev\Ruby19\bin\ruby.exe
Mac Brew - /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby
Ruby Version Manager - /Users/<user>/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
Linux/Mac Default - /usr/bin/ruby
If you are on Windows and don't have Ruby installed yet, download it from http://rubyinstaller.org/ .
After installing point RubyMine to the ruby.exe file location.
For example, if you install using rubyinstaller-2.0.0-p247.exe into c:\Ruby200 (the default path suggested by the installer), RubyMine would accept c:\Ruby200\bin\ruby.exe path for the SDK (it will even detect it automatically):
Note that it's also recommended to install and configure the DevKit from the same site as it's required for many gems that have native code.
When everything is installed you can follow the Quick Start Guide for RubyMine.
If you are on windows its where ever you installed ruby under the bin folder as diplayed here If you are on a unix base system go to the terminal and enter which ruby and you will point it to the directory listed. Assuming you have ruby installed
Only for Mac, brew, rbenv:
$ which ruby
/usr/local/var/rbenv/shims/ruby
But it doesn't show used gems. So, it's better to add file inside ruby version folder: /usr/local/var/rbenv/versions/*your_version*/bin/ruby
Ruby path in Rails Container: /usr/local/bin/ruby (no RVM installed)
Local Ruby path: ~/.rvm/rubies/ruby-2.6.0/bin/ruby (no default Ruby installed)
Local RVM path: ~/.rvm/bin/rvm
Yes when you add a remote interpreter using rbev, just add the path you get via this command:
which ruby
and it should work fine
If you're sure you have installed the correct Ruby, I've found that invalidating caches and restarting RubyMine can clear this up. You'll find this option on the File menu.
I'm not sure why this works, but it definitely fixed this exact problem for me today.