GithubHelp home page GithubHelp logo

ide-java's Introduction

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

IDE-Java package

CI

Java language support for Atom-IDE, powered by the Eclipse JDT language server.

Screenshot of IDE-Java

Early access

This package is currently an early access release. You should also install the atom-ide-ui package to expose the functionality within Atom.

Features

  • Auto completion
  • Code format
  • Diagnostics (errors & warnings)
  • Document outline
  • Find references
  • Go to definition
  • Hover
  • Reference highlighting
  • Signature help

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, Atom's contributing guide will help get you started while the guide for contributing to packages has some extra information.

License

MIT License. See the license for more details.

ide-java's People

Contributors

50wliu avatar aerijo avatar appelgriebsch avatar arcanemagus avatar boykoalex avatar damieng avatar darangi avatar fbricon avatar hansonw avatar jbree avatar rajivshah3 avatar serafeimgr avatar tylerfowler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ide-java's Issues

[SOLVED] The package does nothing - "This is likely an error with the language package"

I'm using the 1.23.3 version of Atom and my packages are up to date.
I have atom-ide-ui installed.
As we can see here, java is installed too :
git

I've also set up the java path :
java_path

But when I open a java file, nothing is happening, no error detection or auto-completion.
Furthermore, when I toggle the outline panel I have this message :
outline

Do you have an idea about what's going on ?

Nothing is reported

Atom: 1.21.0-beta0 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6

image

The UI just show me this:
image

But actually if I made some changes to my code, nothing is reported
image

The project where I'm trying it is configured with gradle

Uncaught exception when shutting down the server

I always get a big redbox when I close the last Java file (I guess this is coming after the server shuts down?) Maybe it's a MacOS thing, not sure how much we can do about this.

Console with debug output:

screen shot 2017-09-11 at 6 14 38 pm

Stack:

Uncaught Error: Header must provide a Content-Length property.
/Users/hansonw/atom-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:191
Hide Stack Trace
Error: Header must provide a Content-Length property.
    at StreamMessageReader.onData (/Users/hansonw/atom-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:191:27)
    at Socket.<anonymous> (/Users/hansonw/atom-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:176:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

So How can I use ide-java with atom?

I can't find anything except 'Java(Eclipse JDT) Ready' sign with a green light at the middle of the below.

And is there any website or forum about atom ide? I couldn't get any information about it when I googled it. If there is no instruction for this, it would be a good idea to make a step by step instruction for newbies.

I'm so sorry to ask in here. I really wanna use it, but I couldn't find anywhere.

mac

A few things to know before you create an issue

  • This package requires Atom 1.21 beta
  • We launch a "language server" process on your machine that understands the language you are editing
  • What that server can do - syntax compatibility, whether it supports formatting or outlines etc - is outside of our control
  • You can see what the language server supports by checking out our README and following the link after "powered by"
  • "disconnected", "JSONRPC" or "Content-Header" errors indicate that server process died. We're working on better recovery right now

If you have understood all this, please remove this text and start writing your issue :)

Add extract method

Add a function to extract the selected code to a new method like Shift+Alt+M in Eclipse.

Incomplete Classpath Warning should probably not open the vscode-java wiki page

It's probably confusing for most users to open the vscode-java wiki page instead of this extension page:

'java.ignoreIncompleteClasspath.help': () => { shell.openExternal('https://github.com/redhat-developer/vscode-java/wiki/%22Classpath-is-incomplete%22-warning') }

You can probably copy the vscode-java wiki content and replace the screenshot into https://github.com/atom/ide-java/wiki

Uncaught Error: Connection is closed.

  1. Clean install of Atom Beta
  2. Installed ide-java package; restarted Atom Beta
  3. Error on open

Atom: 1.21.0-beta1 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: ide-java package 0.6.0

Stack Trace

Uncaught Error: Connection is closed.

At /Users/pete/.atom/packages/ide-java/node_modules/vscode-jsonrpc/lib/main.js:604

Error: Connection is closed.
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/main.js:129:28)
    at throwIfClosedOrDisposed (/packages/ide-java/node_modules/vscode-jsonrpc/lib/main.js:604:19)
    at Object.sendNotification (/packages/ide-java/node_modules/vscode-jsonrpc/lib/main.js:658:13)
    at LanguageClientConnection._sendNotification (/packages/ide-java/node_modules/atom-languageclient/build/lib/languageclient.js:231:15)
    at LanguageClientConnection.didChangeTextDocument (/packages/ide-java/node_modules/atom-languageclient/build/lib/languageclient.js:124:10)
    at TextEditorSyncAdapter.sendFullChanges (/packages/ide-java/node_modules/atom-languageclient/build/lib/adapters/document-sync-adapter.js:183:22)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/text-editor.js:626:38
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/text-buffer/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/text-buffer/node_modules/event-kit/lib/emitter.js:141:34)
    at DisplayLayer.emitDidChangeSyncEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/text-buffer/lib/display-layer.js:823:24)
    at decorationLayerDisposable.textDecorationLayer.onDidInvalidateRange (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/text-buffer/lib/display-layer.js:161:20)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at TokenizedBuffer.module.exports.TokenizedBuffer.tokenizeNextChunk (/Applications/Atom Beta.app/Contents/Resources/app/src/tokenized-buffer.js:241:28)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/tokenized-buffer.js:206:32
    at /Applications/Atom Beta.app/Contents/Resources/app/node_modules/underscore/underscore.js:666:53

Commands

Non-Core Packages

atom-ide-ui 0.3.3 
ide-java 0.6.0 
ide-typescript 0.6.1 

.class files in mvn /src/main/java

This package is compiling .class files in a maven src directory src/main/java. Is this expected? I understand that most of the file generation process-.project, .classpath, .settings/-is performed by the JDT server. If so, why is it not reading the .class files inside target/classes to perform its code completion, javadocs and its other various functions.

I installed Eclipse Oxygen and imported a maven project. It did not create these .class files inside src/main/java.

I have uploaded a video demonstrating this bug report.

I understand that maven projects are different from typical java projects whose compiled source files usually reside in bin/ or sometimes in src/.

https://youtu.be/T4O2MdOKSKA

Notes:

  • There is no .gitignore file, therefore target/ or other folders are not hidden from Atom.
  • There is no SCM used.
  • All .classpath, .project, .settings/ files-folders are created by the JDT.

Autoimport

It would be nice to have an autoimport feature here, when I first use a type the language server seems to know which package I want so it's natural to me that the import is done automatically. Combined with issue #10 this makes it a bit tedious to add imports manually.

Failed to activate the ide-java package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.20.0 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: ide-java package 0.6.0

Stack Trace

Failed to activate the ide-java package

At Cannot find module 'atom-languageclient'

Error: Cannot find module 'atom-languageclient'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:58)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at /packages/ide-java/lib/main.js:5:44)
    at /packages/ide-java/lib/main.js:163:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:239:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:96:26)
    at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:887:35)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:242:22)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:225:38
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:99:21)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:218:32
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:215:40)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:645:40)
    at /Applications/Atom.app/Contents/Resources/app/src/package-manager.js:626:35
    at Config.module.exports.Config.transactAsync (/Applications/Atom.app/Contents/Resources/app/src/config.js:346:24)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:621:25)
    at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:603:52)
    at /Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:843:36

Commands

Non-Core Packages

atom-chs-menu 1.0.0 
atom-ide-ui 0.3.1 
atom-simplified-chinese-menu 0.6.5 
ide-flowtype 0.17.0 
ide-java 0.6.0 
ide-typescript 0.1.6 

Inappropriate variable and method suggestions

Atom: 1.23.3 x64
ide-java: 0.7.0

ide-java suggests variables and methods previously used after every semi-colon. Additionally (I do not know if this is a limitation of the engine or of ide-java) variables and methods are suggested when typing comments.

Leaving a java file to open a new one sends a shutdown request to the server

It seems that Cmd+click on a Type (eg. java.lang.String) to open it causes the server to shutdown, throwing the error in #8.
More simply, leaving an open Java file from a directory to open a new one (in the same project/directory) causes the same issue.

It happens consistently with Atom Beta 1.21.0-Beta0 + ide-java 0.6.0

Add atom-ide-ui as a package dependency

Since the following is written in the README:

This package is currently an early access release. You should also install the atom-ide-ui package to expose the functionality within Atom.

It would make sense to add atom-ide-ui (and perhaps language-java for completeness) to package-deps? This way, a user installing ide-java would really get the IDE experience without manually installing other packages? This is what is currently done for atom-ide-rust, or perhaps it is a mistake.

JSP capabilities

Hello everyone, I guess it would be nice to have all java features in .jsp files.
Specifically I am talking about to provide jsp files the same features that are available for java according to the specific syntax of that kind of files. I guess that means to apply JDT server capabilities to code parts that are between <% %> or even <%= %>, at least.

Exception Thrown on Typing on Java File

[Enter steps to reproduce:]

  1. Open Java File in Project
  2. Start Typing

Atom: 1.16.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: languageserver-java package 0.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'start' of undefined

At /Users/kepler/Developer/atom/languageserver-java/node_modules/atom-languageclient/build/lib/convert.js:50

TypeError: Cannot read property 'start' of undefined
  at Function.atomRangeToLSRange (/Users/kepler/Developer/atom/languageserver-java/node_modules/atom-languageclient/build/lib/convert.js:50:50)
  at textEditToContentChange (/Users/kepler/Developer/atom/languageserver-java/node_modules/atom-languageclient/build/lib/adapters/document-sync-adapter.js:124:32)
  at Array.map (native)
  at TextEditorSyncAdapter.sendIncrementalChanges (/Users/kepler/Developer/atom/languageserver-java/node_modules/atom-languageclient/build/lib/adapters/document-sync-adapter.js:117:39)
  at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
  at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
  at /app.asar/node_modules/text-buffer/lib/text-buffer.js:1392:25

Commands

     -2:04.8.0 autocomplete-plus:confirm (input.hidden-input)
     -2:03.3.0 core:select-up (input.hidden-input)
     -2:02.9.0 editor:select-to-end-of-line (input.hidden-input)
     -2:02.4.0 core:backspace (input.hidden-input)
     -2:01.6.0 core:save (input.hidden-input)
     -1:59 core:close (input.hidden-input)
     -1:48.1.0 nuclide-health:toggle (input.hidden-input)
  6x -1:22.3.0 core:close (input.hidden-input)
     -0:41.2.0 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:39.1.0 core:select-all (input.hidden-input)
     -0:39 core:backspace (input.hidden-input)
     -0:37 core:select-all (input.hidden-input)
     -0:36.9.0 core:backspace (input.hidden-input)
     -0:31.7.0 editor:consolidate-selections (input.hidden-input)
     -0:31.7.0 core:cancel (input.hidden-input)
     -0:19.9.0 editor:newline (input.hidden-input)

Non-Core Packages

ascii-art 1.2.0 
atom-language-server-protocol 0.0.0 
atom-material-syntax 1.0.2 
atom-material-syntax-dark 0.2.7 
atom-material-ui 1.3.10 
autoclose-html 0.23.0 
autocomplete-python 1.8.63 
crystal 0.2.0 
editorconfig 2.2.2 
file-icons 2.1.4 
graphql-autocomplete 0.4.1 
hyperclick 0.0.40 
language-babel 2.57.7 
language-crystal-actual 0.33.0 
language-docker 1.1.7 
language-graphql 0.8.0 
language-groovy 0.6.0 
language-llvm 0.1.1 
language-minecraft-forge-cfg 0.1.2 
language-rust 0.4.10 
languageserver-java 0.1.0 
lcov-info 0.12.0 
linter-eslint 8.1.6 
linter-pycodestyle 2.0.2 
linter-rust 0.8.0 
linter-xo 0.22.0 
merge-conflicts 1.4.4 
minimap 4.27.1 
nuclide 0.219.0 
nuclide-test-runner-jest 0.3.0 
pigments 0.39.1 
pretty-json 1.6.3 
racer 0.20.0 
tokamak 0.3.2 
tokamak-terminal 10.0.1 
tool-bar 1.1.0 
xml-formatter 0.10.0 

autocomplete also completes type and causes invalid java

When you autocomplete a method in java, it seems to print the type with it as well which causes invalid java.

see gif:
type

Version:

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected]
├── [email protected]
├── [email protected] (disabled)
├── [email protected]
├── [email protected]
└── [email protected]

/CC @damieng

IDE-Java encounted an error using the Java runtime. Exit code 0

"IDE-Java encounted an error using the Java runtime.
Exit code 0"
I was able to use it yesterday, but today when I opened the same java file, I met this error without further descriptions.
What's wrong with it and how to solve it, please?

I'm using Archlinux and the java runtime package named "jre9-openjdk"

Code completion proposals are not properly sorted

When typing String, the completion proposals are pretty much irrelevant:
screen shot 2017-11-16 at 9 38 59 am

Atom actually seems to ignore the sortText value of each proposal, which is supposed to translate the completion relevance into a proper sort:

        {
            "label": "String - java.lang",
            "kind": 7,
            "sortText": "999999164",
            "filterText": "String",
            "insertText": "String",
            "data": {
                "decl_signature": "Ljava.lang.String;",
                "pid": "74",
                "rid": "1",
                "uri": "file:/USERS/fbricon/Downloads/VSCode/src/Main.java"
            }
        },

For comparison, this is how VSCode displays the same results:
screen shot 2017-11-16 at 10 23 47 am

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

[Enter steps to reproduce:]

  1. Just open Java project

Atom: 1.21.0-beta0 x64
Electron: 1.6.9
OS: Microsoft Windows 10 Pro
Thrown From: ide-java package 0.6.0

Stack Trace

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

At C:\Users\vitalyster\.atom\packages\ide-java\node_modules\vscode-jsonrpc\lib\messageReader.js:68

Error: Message header must separate key and value using :
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:68:23
    at Array.forEach (native)
    at MessageBuffer.tryReadHeaders (/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:65:17)
    at StreamMessageReader.onData (/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:185:43)
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:176:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

Commands

     -4:13.5.0 core:backspace (input.hidden-input)
     -4:12.2.0 core:confirm (input.hidden-input)
     -3:15.2.0 editor:newline (input.hidden-input)
  2x -2:58.5.0 core:undo (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.3.1 
ide-java 0.6.0 

Classpath is incomplete from 0.6.4

With 0.6.0 I was using ide-java with no issues (other than the auto complete bug #10 and taking 4 minutes for JDT to start up) with a big maven project.

0.6.1-3 didn't work due to #30
0.6.4-5 give me the "Classpath is incomplete" dialog

I guess the change from Eclipse JDT 0.3 to 0.5 has broken something?

There are no errors in the dev console. Tried with Atom 1.21 and 1.22.

Code completion incorrectly includes return type of the completion

The code completion popup window shows you the return type of type or method completions (which is handy) but then also pastes this syntax into your code when you use the completion, which causes compile failures.

For example, completing something like:

String s = "test"; s.
will include the length() completion and show you it'll return an int. But it'll also paste that into your code:
String s = "test"; s.length() : int
which gives a compile error.

Unable to install this package on latest Atom stable version

Just read the blog post on the Atom IDE announcement and wanted to give it a try. I'm using Atom in the latest stable version 1.20.0. I'm unable to install ide-java because it requires 1.21.0 or higher. Is this intended? Is this package only usable with Atom beta?

Classpath is incomplete warning keeps coming up

getting this warning on windows 10 on atom beta 1.21.0, and ide-java 0.6.0:
Classpath is incomplete. Only syntax errors will be reported
Eclipse JDT

When I googled how I might fix the error, I found this, which could be a similar issue: redhat-developer/vscode-java#107

I think the linked issue could be related, but is there a current way to fix it, and if so, how?

Error when trying to install ide-java

~ ➜ apm install ide-java                                                                                 
Installing ide-java to /Users/alexandrelemieux/.atom/packages ✗
No available version compatible with the installed Atom version: 1.20.0

Can't resolve packages from Android Studio Project

I know it's not a ide-java issue. But I am new in Java and need a little help.
I very like Atom and I want write code of Anroid Studio Project in Atom (I just don't know how write mobile app without Android Studio... Stupid situation).
Is it possible to configure ide-java for resolving android packages without changing project structure?
May be VM extra args help me?

Source Level Error

This line of code

public class Fern extends Plant implements Comparable<Fern>

is causing this error Syntax error, parameterized types are only available if source level is 1.5 or greater

The linter is showing this error (that can be prevented by disabling this package and restarting atom). However my code compiles fine using javac and runs with no issues as well. My system must be running on source level 1.5 or greater already, not to sure why the package isn't picking up on that.

Cannot install ide-java

I tried installing ide-java using the apm install ide-java command, but received the following error message.

No available version compatible with the installed Atom version: 1.20.0

I have already installed atom-ide-ui. What is the reason for this issue?

Uncaught TypeError: Cannot read property '0' of null

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.21.0-beta1 x64
Electron: 1.6.9
OS: Microsoft Windows 10 Home Single Language
Thrown From: ide-java package 0.6.2

Stack Trace

Uncaught TypeError: Cannot read property '0' of null

At C:\Users\user\.atom\packages\ide-java\lib\main.js:89

TypeError: Cannot read property '0' of null
    at ChildProcess.childProcess.on.exitCode (/packages/ide-java/lib/main.js:89:45)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

Commands

     -3:07.7.0 welcome:show (atom-pane.pane)
  2x -2:43.9.0 core:backspace (input.hidden-input)
     -2:41.6.0 core:confirm (input.hidden-input)
 14x -2:23.6.0 core:backspace (input.hidden-input)
     -2:19.7.0 core:confirm (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.3.3 
ide-java 0.6.2 

Add configuration to override default location of `bin` directories

Whenever ide-java is enabled, it appears to create a bin folder next to each src folder in my project. Inside that folder I see a class directory structure that mirrors my source tree. I presume this is where class files and anything else generated by the java language server get stored.

I'd like the ability to configure ide-java so that it uses a different location for these files. Without that option being available, my Git package sees these files as additions that need to be staged. Of course I could add them to my Git ignore file, but because I already have bin directories elsewhere in my project that I do want committed to git, it isn't necessarily trivial to ignore these auto-generated files.

Uncaught Error: Header must provide a Content-Length property.

[Enter steps to reproduce:]

  1. Open a Java file
  2. Close the java file.

close

Atom: 1.21.0-beta0 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: ide-java package 0.6.0

Stack Trace

Uncaught Error: Header must provide a Content-Length property.

At /Users/bungdonuts/github/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:191

Error: Header must provide a Content-Length property.
    at StreamMessageReader.onData (/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:191:27)
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:176:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

Commands

     -0:20.5.0 application:reopen-project (input.hidden-input)

Non-Core Packages

atom-clock 0.1.15 
atom-ide-ui 0.3.0 
chester-atom-syntax 0.3.0 
chestnut-light-atom-syntax 0.2.1 
docks-test 0.0.0 
ide-java 0.6.0 
language-typescript-grammars-only 1.6.0 
preview-inline 1.4.7 
pure-syntax 0.3.0 
real-time 0.1.0 

Exception Thrown from Gradle Project

[Enter steps to reproduce:]

  1. Open Gradle Project

Atom: 1.16.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: languageserver-java package 0.1.0

Stack Trace

Uncaught Error: Header must provide a Content-Length property.

At /Users/kepler/Developer/atom/languageserver-java/node_modules/vscode-jsonrpc/lib/messageReader.js:181

Error: Header must provide a Content-Length property.
  at StreamMessageReader.onData (/Users/kepler/Developer/atom/languageserver-java/node_modules/vscode-jsonrpc/lib/messageReader.js:181:27)
  at Socket.<anonymous> (/Users/kepler/Developer/atom/languageserver-java/node_modules/vscode-jsonrpc/lib/messageReader.js:166:19)
  at emitOne (events.js:96:13)
  at Socket.emit (events.js:188:7)
  at readableAddChunk (_stream_readable.js:176:18)
  at Socket.Readable.push (_stream_readable.js:134:10)
  at Pipe.onread (net.js:543:20)

Commands

     -1:31.6.0 core:close (input.hidden-input)

Non-Core Packages

ascii-art 1.2.0 
atom-language-server-protocol 0.0.0 
atom-material-syntax 1.0.2 
atom-material-syntax-dark 0.2.7 
atom-material-ui 1.3.10 
autoclose-html 0.23.0 
autocomplete-python 1.8.63 
crystal 0.2.0 
editorconfig 2.2.2 
file-icons 2.1.4 
graphql-autocomplete 0.4.1 
hyperclick 0.0.40 
language-babel 2.57.7 
language-crystal-actual 0.33.0 
language-docker 1.1.7 
language-graphql 0.8.0 
language-groovy 0.6.0 
language-llvm 0.1.1 
language-minecraft-forge-cfg 0.1.2 
language-rust 0.4.10 
languageserver-java 0.1.0 
lcov-info 0.12.0 
linter-eslint 8.1.6 
linter-pycodestyle 2.0.2 
linter-rust 0.8.0 
linter-xo 0.22.0 
merge-conflicts 1.4.4 
minimap 4.27.1 
nuclide 0.219.0 
nuclide-test-runner-jest 0.3.0 
pigments 0.39.1 
pretty-json 1.6.3 
racer 0.20.0 
tokamak 0.3.2 
tokamak-terminal 10.0.1 
tool-bar 1.1.0 
xml-formatter 0.10.0 

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

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.21.0-beta0 x64
Electron: 1.6.9
OS: Unknown Windows version
Thrown From: ide-java package 0.6.0

Stack Trace

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

At C:\Users\Jay\.atom\packages\ide-java\node_modules\vscode-jsonrpc\lib\messageReader.js:68

Error: Message header must separate key and value using :
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:68:23
    at Array.forEach (native)
    at MessageBuffer.tryReadHeaders (/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:65:17)
    at StreamMessageReader.onData (/packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:185:43)
    at /packages/ide-java/node_modules/vscode-jsonrpc/lib/messageReader.js:176:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

Commands

     -2:51.7.0 editor:consolidate-selections (input.hidden-input)
     -2:51.7.0 core:cancel (input.hidden-input)
     -2:30.9.0 command-palette:toggle (div.tool-panel.tree-view)
  2x -2:28.3.0 core:move-down (input.hidden-input)
     -2:27.5.0 core:move-up (input.hidden-input)
     -2:27.2.0 core:confirm (input.hidden-input)
     -2:27.2.0 atom-maven:clean (div.tool-panel.tree-view)
     -1:36 command-palette:toggle (div.tool-panel.tree-view)
     -1:28.8.0 editor:consolidate-selections (input.hidden-input)
     -1:28.8.0 core:cancel (input.hidden-input)
     -1:13.9.0 command-palette:toggle (div.tool-panel.tree-view)
  2x -1:11.9.0 core:move-down (input.hidden-input)
     -1:11 core:confirm (input.hidden-input)
     -1:11 settings-view:install-packages-and-themes (div.tool-panel.tree-view)
 13x -0:22.6.0 core:backspace (input.hidden-input)
     -0:20.6.0 core:confirm (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.3.1 
atom-maven 1.3.0 
emmet 2.4.3 
git-plus 7.9.3 
highlight-selected 0.13.1 
ide-java 0.6.0 
language-htl 0.3.4 
todo-show 2.0.0 

Language server download getting 404

After the last update (to v0.6.4) I found there were some "classpath incomplete" errors and so I reinstalled the package only to get this in the console:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://download.eclipse.org/jdtls/snapshots/jdt-language-server-0.5.0-201709251422.tar.gz Fetch complete: GET "http://download.eclipse.org/jdtls/snapshots/jdt-language-server-0.5.0-201709251422.tar.gz".
/Users/tylerfowler/.atom/packages/ide-java/node_modules/atom-languageclient/build/lib/download-file.js:77 Uncaught (in promise) Error: Unable to download, server returned 404 Not Found
    at /Users/tylerfowler/.atom/packages/ide-java/node_modules/atom-languageclient/build/lib/download-file.js:77:13
    at Generator.next (<anonymous>)
    at step (/Users/tylerfowler/.atom/packages/ide-java/node_modules/atom-languageclient/build/lib/download-file.js:56:191)
    at /Users/tylerfowler/.atom/packages/ide-java/node_modules/atom-languageclient/build/lib/download-file.js:56:361

And sure enough, that URL does give a 404 not found.

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.