GithubHelp home page GithubHelp logo

Comments (20)

tcwan avatar tcwan commented on August 16, 2024

This is a re-post of my previous report in Eclipse Marketplace.

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

I am not aware of anyone of the developers having Mac M1 so we will need you to investigate the issue and ideally come with a patch for that.

from org.eclipse.linuxtools.

tcwan avatar tcwan commented on August 16, 2024

I am not aware of anyone of the developers having Mac M1 so we will need you to investigate the issue and ideally come with a patch for that.

Hmm. Sorry I don't know Eclipse or Java well enough to troubleshoot. I'm just using it for the IDE. It's rather strange that it only affected AArch64 builds for M1 Macs though. It worked fine on Intel Macs (and also via Rosetta on the M1 Mac but I'm guessing that it adds unnecessary overheads).

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

I think I have an idea why it fails. Docker plugin uses libraries that deal with native code and probably some of them don't support Mac M1, namely these are com.github.jnr.* . jnr/jnr-unixsocket#95 points in that direction.

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

@tony-- Is this smth of interest for you?

from org.eclipse.linuxtools.

tony-- avatar tony-- commented on August 16, 2024

@akurtakov thanks for thinking of me and sharing the opportunity, but I am not interested in Mac silicon support.

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

@cmorty Any chance you could be interested in this Mac issue?

from org.eclipse.linuxtools.

cmorty avatar cmorty commented on August 16, 2024

@akurtakov : I don't have a Mac and I have my hands full with Docker & CDT - and other projects.
@tcwan : Setting up the Eclipse development environment was unexpectedly easy. I don't know whether there are good instructions for linuxtools, though. Those for CDT were pretty straight forward.

from org.eclipse.linuxtools.

amanessinger avatar amanessinger commented on August 16, 2024

Same problem for me. I've just installed Eclipse JEE via homebrew:

  • Version: 2022-06 (4.24.0)
  • Build id: 20220609-1112

Docker is the latest Docker Desktop 4.11.1 (84025)

I've installed the plugin (5.7.0) and opened Docker Explorer. I've clicked the link "No connection to a Docker daemon is available", check "Use custom connection settings" and edit the Unix socket.

Regardless of what I enter or select (/var/run/docker.sock, /private/run/docker.sock or /Users/andreas/.docker/run/docker.sock, with or without unix:// prefix), when I click "Test Connection", I always get an alert

Ping failed: java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: java.lang.IllegalStateException: Connection pool shut down

from org.eclipse.linuxtools.

LorenzoBettini avatar LorenzoBettini commented on August 16, 2024

Same here. I've just installed Docker app on macOS m1. I can't find a way to let Eclipse Docker tooling aware of Docker.

from org.eclipse.linuxtools.

jjohnstn avatar jjohnstn commented on August 16, 2024

I too do not have a Mac to test, but found the following on stackoverflow.

https://stackoverflow.com/questions/44084846/cannot-connect-to-the-docker-daemon-on-macos

If you scroll past the highest proposed solution (old solution), you will find one discussing Docker
having removed the /var/run/docker.sock. Could you try out the proposed workarounds (one is symlinking
to the new socket location) and report back here? If it works, we should be able to put together something in
Linux Tools.

from org.eclipse.linuxtools.

jjohnstn avatar jjohnstn commented on August 16, 2024

If anyone with an Mac M1 wants to test out a potential patch...

There is an upgrade of jnr-unixsocket needed to add Mac M1 support. I have built a version of Docker Tooling with an upgraded jnr stack and made a repo available in a download zip. To get the repo, clone the eclipse-linuxtools/linuxtools-website and download the change from:

eclipse-linuxtools/linuxtools-website#3

Unzip the dockertools-mac-experiment.zip file found in the downloads directory to get the repository.

Go to https://download.eclipse.org/eclipse/downloads/ and download the 4.26 RC1 milestone. Start the 4.26 RC1 eclipse and add the local repository where you unzipped the zip file above via: Help -> Install New Software... -> Add... Hit the Local button and add your local repository location. After successfully adding the repo, choose to install Docker Tools and restart.

Try out Docker Tooling and report back here.

from org.eclipse.linuxtools.

smuret avatar smuret commented on August 16, 2024

I've installed Eclipse 4.26RC1 and installed the patched tools as stated by @jjohnstn.
On MacBook Pro M1 with Mac OS X Ventura 13.0.1 and Docker desktop 4.15.0 it seems to work fine.
The Docker Explorer automatically connected using the docker.sock, all my containers are shown, all images are listed and was able to start containers.

from org.eclipse.linuxtools.

LorenzoBettini avatar LorenzoBettini commented on August 16, 2024

I also confirm that with the patched tools, it works!
Unfortunately, I seem to understand, it didn't make it to 2022-12, did it?
Even worse, installing Docker Tooling from 2022-12 makes it impossible to install the patch because the patched repository contains a version considered older.

from org.eclipse.linuxtools.

jjohnstn avatar jjohnstn commented on August 16, 2024

Hi @LorenzoBettini , no, it did not make 2022-12 because it was too late to get into Orbit. It will be part of 2023-03 M1 next week. I will make a change which will be part of our nightly builds (should be available by tomorrow).

from org.eclipse.linuxtools.

LorenzoBettini avatar LorenzoBettini commented on August 16, 2024

Hi @jjohnstn and thanks for the update.
I thought you'd also have a separate update site where you release your own updated releases, independently from simrel.

from org.eclipse.linuxtools.

jjohnstn avatar jjohnstn commented on August 16, 2024

We have our nightly builds repo when changes are merged which eventually are copied to a milestone repo and used in simrel, plus we also can do our own releases separate of simrel, but we usually only do point releases this way (e.g. 5.9.1, 5.9.2) when there is some major bug in the release. I ran into some test failures yesterday so the change isn't merged yet until I determine if they are just random or caused by the change.

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

Latest build is available at https://download.eclipse.org/linuxtools/updates-docker-nightly/ . Please test and report whether its working for you.

from org.eclipse.linuxtools.

akurtakov avatar akurtakov commented on August 16, 2024

No reply usually means things work thus closing. Please reopen with details how/what fails if it still happens for you.

from org.eclipse.linuxtools.

tcwan avatar tcwan commented on August 16, 2024

Sonoma 14.3, Eclipse 2024-3, Docker for Mac 4.27, on M2 Mini. All software are Aarch64 native.

Docker tooling was working on previous version of Eclipse (2023-9) for this system. However, after I upgraded Eclipse to the latest version (2024-3 for Aarch64), Docker Explorer fails to connect to the Docker socket with the following error:

An internal error occurred during: "Opening connection 'unix:///var/run/docker.sock'[unix:///var/run/docker.sock]...". Cannot invoke "String.startsWith(String)" because "s" is null

/var/run/docker.sock is linked to the macOS user specific socket. I can check docker images via terminal as usual using 'docker images'

from org.eclipse.linuxtools.

Related Issues (20)

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.