Hello,
Anyone already tried opening ReactOS source code in Visual Studio Code?
I got a lot of errors about unknown keywords and I have no idea how to setup the include paths. Sometimes it does not see headers, sometimes sees 2 or more files with same name. Can anyone help with setting up this IDE?
Open Reactos code in Visual Studio Code
Moderator: Moderator Team
Re: Open Reactos code in Visual Studio Code
Don't use it like IDE, just edit code in it like with usual Notepad..
Re: Open Reactos code in Visual Studio Code
That's the point - to use IDE as IDE.
- Fraizeraust
- Posts: 234
- Joined: Thu Jan 05, 2017 11:46 am
- Location: Italy
- Contact:
Re: Open Reactos code in Visual Studio Code
Visual Studio Code is merely an editor which you can extend its functionality with plugins and whatnot. Don't expect it to be a fully fledged and complete IDE environment like Visual Studio hence no Microsoft Visual C++ (MSVC) compiler by default so no, you cannot use it as an IDE by this definition.
You can obtain it through a standalone Windows SDK in official Microsoft website though. Otherwise you can just use RosBE to compile ROS without a hassle.
You can obtain it through a standalone Windows SDK in official Microsoft website though. Otherwise you can just use RosBE to compile ROS without a hassle.
a.k.a. GeoB99 -- ReactOS Kernel developer -- My Wiki page
Re: Open Reactos code in Visual Studio Code
I know it does not include a compiler, but as an IDE it should highlight and conplete syntax. But it warns about unknown keywords actually.
Re: Open Reactos code in Visual Studio Code
Hello,
I guess VS Code is not yet ready to be a full-blown IDE, especially for ReactOS which has a lot of submodules with different include paths which can conflict each other, so if you want reliable completion, you should use a full-blown Visual Studio instead (or Eclipse/CodeBlocks if you are on Linux).
Anyways, I was able to build ReactOS directly from VSCode, here is the settings.json I used.
I guess VS Code is not yet ready to be a full-blown IDE, especially for ReactOS which has a lot of submodules with different include paths which can conflict each other, so if you want reliable completion, you should use a full-blown Visual Studio instead (or Eclipse/CodeBlocks if you are on Linux).
Anyways, I was able to build ReactOS directly from VSCode, here is the settings.json I used.
Code: Select all
{
"cmake.configureOnOpen": false,
"cmake.buildDirectory": "${workspaceFolder}/output-i686-mingw",
"cmake.clearOutputBeforeBuild": true,
"cmake.configureSettings": {
"ARCH": "i386",
"MINGW_TOOLCHAIN_PREFIX": "/opt/RosBE/i386/bin/i686-w64-mingw32-",
"KDBG": false,
"_WINKD_": true,
"GDB": true,
"SEPARATE_DBG": true
},
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake"
],
"C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools"
}
Who is online
Users browsing this forum: No registered users and 1 guest