Installing module packages for the Linter package in Atom

I use the Atom text editor and installed ' Linter ', so I can get real-time debugging / error reports when editing.

Atom has a user interface for automatically installing packages - one-click installation, so I have no idea how to do this manually.

I am very new to Git and coding in general, so the installation instructions in the documentation for this package are not very useful (for me).

Basically, I am trying to install / run / get a PHP check when I use the Atom text editor. How can i do this?

+6
source share
1 answer

The official documentation for installing packages is here :

( Starting in March 2015, there is an official repo for Atom.io doc )

You can also install packages from the command line using apm.

Make sure you have apm installed by running the following command in your terminal:

apm help install 

You should see a printout of a message with apm installation command information.

If you do not, run Atom and run the Atom > Install Shell Commands menu to install the apm and atom commands.


You can also install packages using the apm install command:

 apm install <package_name> to install the latest version. apm install <package_name>@<package_version> to install a specific version. 

For example, apm install emmet@0.1.5 installs the 0.1.5 release of the Emmet package into ~/.atom/packages .

You can also use apm to search for new packages to install:

 apm search coffee to search for CoffeeScript packages. apm view emmet to see more information about a specific package. 

Regarding the manual installation of the package in Atom, this topic mentions

You can download the package, unzip or unzip it, go to this folder and run: apm link , which will create a symbolic link from this package to your ~/.atom/packages folder

Repo can be found using the "Learn more" button in the package manager.

In your case:

You will find a similar process in this thread :

  • Make sure that I no longer have the module installed.
  • git clone https://github.com/AtomLinter/linter-phpcs to ~ / Projects /
  • apm link --dev , being inside ~/Projects/linter-phpcs .
    He successfully created a symlink in ~/.atom/dev/packages/linter-phpcs
  • Open atom using the "atom --dev" command, located in ~/.atom/dev/packages/linter-phpcs
+6
source

Source: https://habr.com/ru/post/972118/


All Articles