I have a simple Dockerfile. When I edit it in IntelliJ IDEA and move my cursor to a docker command like
COPY
ADD
RUN
and then press F2, it doesn't show the quick documentation. I do have the Docker plugin installed.
F2/Quick Documentation works great in java source files.
Do you know if IDEA can show quick documentation for Dockerfiles? Do we need to import some DSL/grammar file in IntelliJ IDEA for this to work?
I am using IntelliJ IDEA Ultimate 2019.1 on Mac OS X High Sierra.
Thank you.
use VSCode idea to show document
see image
Related
When creating docker-compose.yml vscode autocomplete/ intellisense doesn't work. Also ctrl+space doesn't work. How can I make it work ?
Currently you have to go back to a previous version of the Docker VSCode extension, such as v1.16.1 .
From the VSCode developers:
The functionality present in 1.17 for the language service is fairly limited; we're working on adding back a lot more in 1.18.
See https://github.com/microsoft/vscode-docker/issues/3222
I have a full Docker image that has Flutter SDK, Android SDK, Dart SDK, etc, all installed and in the $PATH.
I made it work on Intellij Idea, I can click "deploy" and it launches, but then I don't know what else to do.
I thought Intellij Idea would work inside this container, and so it would find Dart SDK, etc, and work.
How can I compile my flutter project using the SDK from the container on Intellij Idea? And also how to use intellisense, etc, all from things inside the container
Seems like this is not something that is currently supported in IntelliJ, according to a forum-post answered by JetBrains staff.
How I see it, you have three options:
Switch to Visual Studio Code and follow these instructions
Use the in the forum-post mentioned Projector, which runs your IDE on a Server and you can connect to it using a web browser, or a Electron desktop client
Expose your SDKs from your Docker container and set the paths manually on your host system
With #3 I mean something like this, when running your container:
docker container run -itd \
-v /local/path/to/sdk:/docker/path/to/sdk \
devimage
and then in your IDE you can set the path to that, or you could even set some environment variables like e.g. ANDROID_HOME to point to the local bind location.
You may try this.
Go to File -> Project Structure
Set the path for Module, Library, Project, and SDK
Sometimes IntelliJ requires the PATH setup here.
I'm working on face detection project and trying to use this github project.
But the issue is I'm using windows system and have difficulties installing modules used in this project. I can use a VM, install linux and use it. But can I use docker to call the project from github and work with it? If yes, how to do it? I tried to read about it, but hardly got any materials.
Thank you!
I've been playing with docker for a while and was pleased to see the new tools in VS2017. I've had issues before with docker for windows but I can't see why this one is happening.
I create a webapp just straight from the box and add docker support. I then simply try and launch it with no changes and I get the following error.
I have checked that the container is registered and it does look to have gotten that far:
a quick docker ps -a yields this:
The thing is the error reporting appears to be trying to deploy from a build path does does indeed not exist (my projects are on my G drive not F, that is where visual studio is installed).
So what gives? I can run the docker-compose from the command line inside the project path and then docker-compose up and it seems fine. Seems visual studio is just using the incorrect path, not sure why.
Version in use are:
Docker for windows 17.04.0-ce-rc2-win6(10840)
Visual studio 2017: Version 15.1(26403.0)
I checked again which version of docker I was using and I was using from the edge stream. I fell back to stable and this issue went away.
I had the same problem. It turns out solution told above of reverting to Docker stable version solved it. With Edge version, the build looks for solution file in the VS IDE folder instead of current folder.
Hello,
I'm using bash or cmd for Rails console.
I get this weird symbols like <-[1m.
In my tutorial I see the output fine (With spaces and color), and it's difficult to read it in my cmd...
Can you help me to display those special characters right?
Thanks!
Instead of using cmd, run rails and ruby through cygwin, it works better than cmd as cygwin is supposed to bring you a linux environnement on windows. When i tried to do rails on windows it was the most complete tool.
I insist on the fact that you should use a Linux VM to do rails on windows. If you install VMWare player on your windows, you will have a virtual machine running in vmware on your windows desktop. This machine will be connected to you network. I strongly advise you to use this solution, as you will encounter many problems using rails on windows.
I work on windows, and i have a Virtual Ubuntu always launched. My VM share the code via samba and i edit it with sublim text executed in windows. On my second screen i have my VM full screen that display multiple terminals.
Ok, I found this wonderful software https://code.google.com/p/conemu-maximus5/ and it did solve my problem :)
cmd.exe doesn't understand those color codes.
There is a project to make cmd understand them (and add other useful feaures) here. I do not use windows, so I cannot vouch for the quality of it.