如何配置 VSCode 以使用 SCIP 优化软件
How to configure VSCode to work with SCIP Optimization software
我正在尝试从 sublime text 迁移到 VSCode,我想知道如何配置 VSCode 以正确使用 SCIP。
我的 c_cpp_properties.json 文件如下所示:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Library/scip7/scip/",
"/Library/scip7/scip/src"
],
"defines": [],
"macFrameworkPath": [],
"compilerPath": "/usr/local/bin/gcc-9",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
我能够让代码完成工作,但我在 VScode 终端的“问题”选项卡中遇到这些错误
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/morpheus/main.cpp)
cannot open source file "scip/config.h" (dependency of "/Users/morpheus/main.cpp")
这不会严重影响开发,但我想知道是否有简单的修复方法。
据我所知(我不是 VScode 专业人士),如果您不使用 **
,则包含路径不是递归的。看起来 scip 不在您的 workspaceFolder 中,对吗?
您可以尝试使用 "/Library/scip7/scip/src/**"
看看是否能解决您的问题?
编辑:好的最后希望:我只是 post 我自己的适合我的配置。注意我这里的$workspaceFolder
是scip源码目录
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}",
"${workspaceFolder}/src",
"${workspaceFolder}/src/scip",
"${workspaceFolder}/src/lpi"
],
"defines": [
"SOPLEX_WITH_GMP",
"SCIP_WITH_GMP",
"SCIP_WITH_ZIMPL"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}/src"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++11"
}
],
"version": 4
}
我正在尝试从 sublime text 迁移到 VSCode,我想知道如何配置 VSCode 以正确使用 SCIP。
我的 c_cpp_properties.json 文件如下所示:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Library/scip7/scip/",
"/Library/scip7/scip/src"
],
"defines": [],
"macFrameworkPath": [],
"compilerPath": "/usr/local/bin/gcc-9",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
我能够让代码完成工作,但我在 VScode 终端的“问题”选项卡中遇到这些错误
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/morpheus/main.cpp)
cannot open source file "scip/config.h" (dependency of "/Users/morpheus/main.cpp")
这不会严重影响开发,但我想知道是否有简单的修复方法。
据我所知(我不是 VScode 专业人士),如果您不使用 **
,则包含路径不是递归的。看起来 scip 不在您的 workspaceFolder 中,对吗?
您可以尝试使用 "/Library/scip7/scip/src/**"
看看是否能解决您的问题?
编辑:好的最后希望:我只是 post 我自己的适合我的配置。注意我这里的$workspaceFolder
是scip源码目录
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}",
"${workspaceFolder}/src",
"${workspaceFolder}/src/scip",
"${workspaceFolder}/src/lpi"
],
"defines": [
"SOPLEX_WITH_GMP",
"SCIP_WITH_GMP",
"SCIP_WITH_ZIMPL"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}/src"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++11"
}
],
"version": 4
}