Giter Club home page Giter Club logo

Comments (5)

seanybaggins avatar seanybaggins commented on August 16, 2024

I managed to get the gtk gui running on a Linux environment by using this blog post.

Note: I did not have to make any changes to the docker image ghdl/ext:latest

from docker.

eine avatar eine commented on August 16, 2024

Hi @seanybaggins! I suggest to use mviereck/x11docker if you want to run GUI apps in docker/podman containers. It works on GNU/Linux and Windows 10 (Cygwin, WSL or MSYS2). See https://github.com/ghdl/docker/blob/master/USE_CASES.md#environments-with-guis Note that it is the same you did manually, but with an script that handles it for you.

BTW, if you use VSCode, image ghdl/ext:latest includes the Language Server extension from ghdl/ghdl-language-server.

from docker.

seanybaggins avatar seanybaggins commented on August 16, 2024

Hi @eine . Thanks for the tips. I originally tried using x11docker but had issues getting x11docker to use the working directory I wanted and/or having it block on startup.

I also have VSCode installed with the docker extention. Perhaps my understanding of the ghdl-language-server is incorrect but how would the ghdl-language-server help with running gui applications?

from docker.

eine avatar eine commented on August 16, 2024

Hi @eine . Thanks for the tips. I originally tried using x11docker but had issues getting x11docker to use the working directory I wanted and/or having it block on startup.

Note that x11docker supports passing raw arguments to docker. For example:

x11docker -i --user=0 -- -v $(pwd):/src -- ghdl/ext bash

In this case -i --user=0 are arguments processed by x11docker, but -v $(pwd):/src is interpreted by docker. Hence, regardless of x11docker's custom options, you can use -v, -p, etc. as usual.

I also have VSCode installed with the docker extention. Perhaps my understanding of the ghdl-language-server is incorrect but how would the ghdl-language-server help with running gui applications?

Your understading is correct, ghdl-language-server has nothing to do with running GUI applications. The point is that ghdl-language-server depends on GHDL. Therefore, you cannot use the language server extension on the host, without installing GHDL there. At first, you might think that you cannot use the language server because of this. However, a motivation to use the docker image in first place, is precisely to avoid installing the tools on the host. I just wanted to let you know that you can follow this same approach to use the language server inside the container.

If you start image ghdl/ext:latest, execute /opt/ghdl/install_vsix.sh inside the container and then "attach" from VSCode, you will find that in the attached VSCode window you have VHDL syntax highlighting and other language server features. However, the extension won't be available in the VSCode windows that are being executed on the host.

from docker.

eine avatar eine commented on August 16, 2024

Images ghdl/debug:base and ghdl/debug are provided now. See the updated README.

from docker.

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.