Giter Site home page Giter Site logo

atom-ide-kotlin's Introduction

IDE-Kotlin package for Atom

Version Build Downloads

This package provides smart code completion, linting and more for Kotlin in Atom using the language server.

Screenshot

Although some features (such as code completion) can be used in vanilla Atom, it is recommended to install atom-ide-ui.

To use, open a Kotlin file inside a Gradle or Maven project. The language server will then automatically launch in the background.

Features

  • Code completion
  • Linting
  • Go-to-definition
  • Signature help
  • Hover
  • Document symbols

Development

  • To get started developing this package, run npm install and then apm link in this directory

atom-ide-kotlin's People

Contributors

fwcd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atom-ide-kotlin's Issues

Installing "[email protected]" failed

[email protected] install C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-2021117-18808-1e26pco.ntbfk\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin
node-gyp rebuild

C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-2021117-18808-1e26pco.ntbfk\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin>if not defined npm_config_node_gyp (node "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\bin\node.exe" "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-2021117-18808-1e26pco.ntbfk\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-2021117-18808-1e26pco.ntbfk\package.json'
npm WARN apm-install-dir-2021117-18808-1e26pco.ntbfk No description
npm WARN apm-install-dir-2021117-18808-1e26pco.ntbfk No repository field.
npm WARN apm-install-dir-2021117-18808-1e26pco.ntbfk No README data
npm WARN apm-install-dir-2021117-18808-1e26pco.ntbfk No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\KIIT.atom.apm_logs\2021-12-07T17_05_21_315Z-debug.log

Installing error

I've tried various times to install this library but nothing happens, just puts an animation in button install and shows the install button again.

Having trouble installing "atom-ide-kotlin", please note I am a beginner in the field on programming.

C:\Windows\system32>apm uninstall ide-kotlin
Uninstalling ide-kotlin failed
Failed to delete ide-kotlin: No package.json found at C:\Users\KIIT.atom\packages\ide-kotlin\package.json

C:\Windows\system32>apm install ide-kotlin
Installing ide-kotlin to C:\Users\KIIT.atom\packages failed

[email protected] install C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-20211111-6916-1lj7k9r.atkt\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin
node-gyp rebuild

C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-20211111-6916-1lj7k9r.atkt\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin>if not defined npm_config_node_gyp (node "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\bin\node.exe" "C:\Users\KIIT\AppData\Local\atom\app-1.58.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-20211111-6916-1lj7k9r.atkt\node_modules\ide-kotlin\node_modules\tree-sitter-kotlin
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\KIIT\AppData\Local\Temp\apm-install-dir-20211111-6916-1lj7k9r.atkt\package.json'
npm WARN apm-install-dir-20211111-6916-1lj7k9r.atkt No description
npm WARN apm-install-dir-20211111-6916-1lj7k9r.atkt No repository field.
npm WARN apm-install-dir-20211111-6916-1lj7k9r.atkt No README data
npm WARN apm-install-dir-20211111-6916-1lj7k9r.atkt No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\KIIT.atom.apm_logs\2021-12-11T07_53_26_921Z-debug.log

Is it possible to use this without Gradle or Maven?

Hello! I just installed this to get IDE support for Kotlin, and was greeted with a flood of project errors about "cannot access built-in declaration...ensure that you have a dependency on the Kotlin standard library".

I'm just building with make, and don't see the need for anything more complicated.

Is Gradle or Maven required to use the language server? If so, how difficult would it be to remove that dependency?

Failed to load a ide-kotlin package grammar

[Enter steps to reproduce:]

  1. Atom is failing to load ide-kotlin pacage, below is the error

Atom: 1.41.0 x64
Electron: 4.2.7
OS: Mac OS X 10.14.6
Thrown From: ide-kotlin package 0.5.0

Stack Trace

Failed to load a ide-kotlin package grammar

At The module '/Users/efeasf/.atom/packages/ide-kotlin/node_modules/tree-sitter-kotlin/build/Release/tree_sitter_kotlin_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). in /Users/efeasf/.atom/packages/ide-kotlin/grammars/tree-sitter-kotlin.cson

Error: The module '/Users/efeasf/.atom/packages/ide-kotlin/node_modules/tree-sitter-kotlin/build/Release/tree_sitter_kotlin_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146745)
    at /packages/ide-kotlin/node_modules/tree-sitter-kotlin/index.js:2:20)
    at /packages/ide-kotlin/node_modules/tree-sitter-kotlin/index.js:15:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:20:18)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:688212)
    at new TreeSitterGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3131248)
    at GrammarRegistry.createGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:360047)
    at l.readFile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:359888)
    at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:581849
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
  at /packages/ide-kotlin/grammars/tree-sitter-kotlin.cson:1:1

Commands

Non-Core Packages

autocomplete-java 1.2.7 
busy-signal 2.0.1 
go-plus 5.8.6 
ide-java 0.8.3 
ide-kotlin 0.5.0 
intentions 1.1.5 
language-docker 1.1.8 
language-kotlin 0.5.0 
language-terraform 0.8.1 
linter 2.3.1 
linter-kotlin 0.6.0 
linter-terraform-syntax 1.2.4 
linter-ui-default 1.7.1 
pretty-json 2.0.3 
terraform-fmt 0.3.0 

Can't seem to install this for Mac Atom

Whenever I try to install this on my Atom, the following error shows. Can I know what to do to resolve this?

 > [email protected] install /private/var/folders/b3/2n0rtynx1t1ddxscphh70f880000gn/T/apm-install-dir-2020512-8845-srgph7.wvzmo/node_modules/ide-kotlin/node_modules/tree-sitter-kotlin
> node-gyp rebuild


No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/b3/2n0rtynx1t1ddxscphh70f880000gn/T/apm-install-dir-2020512-8845-srgph7.wvzmo/node_modules/ide-kotlin/node_modules/tree-sitter-kotlin
gyp ERR! node -v v10.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/b3/2n0rtynx1t1ddxscphh70f880000gn/T/apm-install-dir-2020512-8845-srgph7.wvzmo/package.json'
npm WARN apm-install-dir-2020512-8845-srgph7.wvzmo No description
npm WARN apm-install-dir-2020512-8845-srgph7.wvzmo No repository field.
npm WARN apm-install-dir-2020512-8845-srgph7.wvzmo No README data
npm WARN apm-install-dir-2020512-8845-srgph7.wvzmo No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sangeetnarayan/.atom/.apm/_logs/2020-06-12T01_29_12_361Z-debug.log

Uncaught Error: Message header must separate key and value using :

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.56.0 x64
Electron: 9.4.4
OS: Unknown Windows version
Thrown From: ide-kotlin package 0.5.0

Stack Trace

Uncaught Error: Message header must separate key and value using :

At C:\Users\kaspi\.atom\packages\ide-kotlin\node_modules\vscode-jsonrpc\lib\messageReader.js:57

Error: Message header must separate key and value using :
    at /packages/ide-kotlin/node_modules/vscode-jsonrpc/lib/messageReader.js:57:23
    at Array.forEach (<anonymous>)
    at MessageBuffer.tryReadHeaders (/packages/ide-kotlin/node_modules/vscode-jsonrpc/lib/messageReader.js:54:17)
    at StreamMessageReader.onData (/packages/ide-kotlin/node_modules/vscode-jsonrpc/lib/messageReader.js:157:43)
    at /packages/ide-kotlin/node_modules/vscode-jsonrpc/lib/messageReader.js:148:18)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Commands

     -3:43.4.0 command-palette:toggle (atom-pane.pane.active)
     -3:26.3.0 tree-view:toggle (atom-pane.pane.active)
     -3:16.2.0 tree-view:add-file (ol.tree-view-root.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -3:09.7.0 core:confirm (input.hidden-input)
     -3:04.2.0 intentions:highlight (input.hidden-input)
     -3:04.1.0 core:paste (input.hidden-input)
 51x -3:03.5.0 core:backspace (input.hidden-input)
     -0:40.5.0 tree-view:move (li.file.entry.list-item.selected)
     -0:37.1.0 core:confirm (input.hidden-input)

Non-Core Packages

busy-signal 2.0.1 
dracula-syntax 3.0.2 
dracula-ui 0.6.0 
file-icons 2.1.47 
git-plus 8.7.1 
ide-kotlin 0.5.0 
intentions 1.1.5 
language-kotlin 0.5.0 
linter 3.3.1 
linter-kotlin 0.6.0 
linter-ui-default 3.3.1 
process-palette 0.19.1 
script 3.31.1 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.