Skip to content

Workaround for Eclipse Neon #9

@csaltos

Description

@csaltos

When run with Eclipse Neon I've got this error:

b'org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.\norg.eclipse.m2e.logback.configuration: Logback config file: /Users/csaltos/Documents/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml\norg.eclipse.m2e.logback.configuration: Initializing logback\nConfiguration Name: /Users/csaltos/Documents/workspace/org.eclipse.jdt.core.prefs\nStarting format job ...\nDone.\n'
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "EclipseJavaFormatter in /Users/csaltos/Library/Application Support/Sublime Text 3/Installed Packages/EclipseJavaFormatter.sublime-package", line 83, in run
  File "EclipseJavaFormatter in /Users/csaltos/Library/Application Support/Sublime Text 3/Installed Packages/EclipseJavaFormatter.sublime-package", line 93, in __run_external_command
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 125, in error_message
    sublime_api.error_message(msg)
TypeError: String required

But as a workaround I've just created a wrapper to the actual eclipse command, the wrapper is something like:

LOG=workaround-eclipse.log
date >> $LOG
echo "$*" >> $LOG
/path/to/actual/eclipse $* >> $LOG 2>&1
echo Done.

Store it as text in a file marked with execution permissions and call it as if it's the eclipse command and it will work.

NOTE: Of course it would be nice to have the plugin working for Eclipse Neon

NOTE2: Thank you for the plugin, it's very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions