Dev Containers for faster setup #2381
Closed
carsakiller
started this conversation in
General
Replies: 2 comments 8 replies
-
@actboy168 help me doraemon! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Unlike Linux/macos, Windows has very strong binary compatibility. You can directly use the compiled binary without compiling it yourself. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @sumneko,
I have been looking at getting a dev container set up for the language server. It should allow anyone to get set up for development quick and easy, as the container would come with all the build tools and dependencies.
So far, I have been able to get a Ubuntu container running that installs
build-essentials
(gcc
,g++
,make
) as well asninja
. I can then build the language server and run it in the container 🎉.The goal is that I can build the server in the container, and, because its filesystem is mounted to my local OS, I can then use
misc.executablePath
to use the new binary as my language server in the VS Code client. However, my local OS is Windows 11, meaning I cannot run the built binary on my machine.Is it possible to cross-compile the language server on Ubuntu for Windows? I noticed the GitHub action builds the Windows binary on Windows, so I would assume no? I have basically no experience with C++ and so I am pretty lost, especially when it comes to luamake compiling the code – I'm surprised I made it this far 😄.
So far I have tried running
3rd/luamake/luamake -platform win32-x64
, which responds withunknown platform
. So I think I need to add a case to thedetect_platform.lua
if statement forwin32-x64
that specifies thelm.cc
to be a compiler that can compile for Windows... but again I have pretty much no idea what I am talking about. Your guidance would be greatly appreciated 🙂.Beta Was this translation helpful? Give feedback.
All reactions