diff --git a/dev/gen/omnisharp.json b/dev/gen/omnisharp.json new file mode 100644 index 000000000..4ad20ac8d --- /dev/null +++ b/dev/gen/omnisharp.json @@ -0,0 +1,54 @@ +{ + "FormattingOptions": { + "NewLine": "\n", + "UseTabs": false, + "TabSize": 3, + "IndentationSize": 3, + "SpacingAfterMethodDeclarationName": false, + "SpaceWithinMethodDeclarationParenthesis": false, + "SpaceBetweenEmptyMethodDeclarationParentheses": false, + "SpaceAfterMethodCallName": false, + "SpaceWithinMethodCallParentheses": false, + "SpaceBetweenEmptyMethodCallParentheses": false, + "SpaceAfterControlFlowStatementKeyword": true, + "SpaceWithinExpressionParentheses": false, + "SpaceWithinCastParentheses": false, + "SpaceWithinOtherParentheses": false, + "SpaceAfterCast": false, + "SpacesIgnoreAroundVariableDeclaration": false, + "SpaceBeforeOpenSquareBracket": false, + "SpaceBetweenEmptySquareBrackets": false, + "SpaceWithinSquareBrackets": false, + "SpaceAfterColonInBaseTypeDeclaration": true, + "SpaceAfterComma": true, + "SpaceAfterDot": false, + "SpaceAfterSemicolonsInForStatement": true, + "SpaceBeforeColonInBaseTypeDeclaration": true, + "SpaceBeforeComma": false, + "SpaceBeforeDot": false, + "SpaceBeforeSemicolonsInForStatement": false, + "SpacingAroundBinaryOperator": "single", + "IndentBraces": false, + "IndentBlock": true, + "IndentSwitchSection": true, + "IndentSwitchCaseSection": true, + "LabelPositioning": "oneLess", + "WrappingPreserveSingleLine": true, + "WrappingKeepStatementsOnSingleLine": true, + "NewLinesForBracesInTypes": false, + "NewLinesForBracesInMethods": false, + "NewLinesForBracesInProperties": false, + "NewLinesForBracesInAccessors": false, + "NewLinesForBracesInAnonymousMethods": false, + "NewLinesForBracesInControlBlocks": false, + "NewLinesForBracesInAnonymousTypes": false, + "NewLinesForBracesInObjectCollectionArrayInitializers": false, + "NewLinesForBracesInLambdaExpressionBody": false, + "NewLineForElse": false, + "NewLineForCatch": false, + "NewLineForFinally": false, + "NewLineForMembersInObjectInit": true, + "NewLineForMembersInAnonymousTypes": true, + "NewLineForClausesInQuery": true + } +} diff --git a/dev/john/vscode/c_cpp_properties.json b/dev/john/vscode/c_cpp_properties.json new file mode 100644 index 000000000..0646db05e --- /dev/null +++ b/dev/john/vscode/c_cpp_properties.json @@ -0,0 +1,107 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "/usr/include", + "/usr/local/include", + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" + ], + "defines": [], + "intelliSenseMode": "clang-x64", + "browse": { + "path": [ + "/usr/include", + "/usr/local/include", + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + }, + "cStandard": "c11", + "cppStandard": "c++17", + "compileCommands": "${workspaceFolder}/build/ninja_debug/compile_commands.json" + }, + { + "name": "Windows", + "intelliSenseMode": "clang-x64", + "includePath": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include" + ], + "defines": [ + "__linux__", + "__x86_64__" + ], + "browse": { + "path": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include/*" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + }, + "cStandard": "c11", + "cppStandard": "c++17" + }, + { + "name": "WindowsQuick", + "intelliSenseMode": "clang-x64", + "includePath": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include" + ], + "defines": [ + "__linux__", + "__x86_64__" + ], + "browse": { + "path": [ + "${workspaceRoot}/src" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "${workspaceRoot}/.vscode/browse.vc.db" + }, + "cStandard": "c11", + "cppStandard": "c++17" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/dev/john/vscode/launch.json b/dev/john/vscode/launch.json new file mode 100644 index 000000000..192d19213 --- /dev/null +++ b/dev/john/vscode/launch.json @@ -0,0 +1,399 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Spark Local", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceRoot}/build/ninja_debug/server/sparkd", + "args": [ + "run", + "test", + "-a", + "OutrightVanillaOrder" + ], + "stopAtEntry": false, + "cwd": "${workspaceRoot}/build/ninja_debug/server/", + "environment": [ + { "name": "TZ", "value": "America/Chicago" } + ], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + }, + { + "name": "SparkVM Launch", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "-a", + "[ilink3]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + }, + { + "description": "Skip STL", + "text": "skip -gfi /usr/include/c++/7/bits/*.h", + "ignoreFailures": true + }, + { + "description": "LD LIBRARY", + "text": "set env LD_LIBRARY_PATH=.", + "ignoreFailures": false + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceRoot}/build/ninja_debug/server/sparkd/sparkd", + "args": [ + "run" + ], + "stopAtEntry": false, + "cwd": "${workspaceRoot}/build/ninja_debug/src/server/sparkd", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + }, + { + "name": "Client Launch", + "type": "coreclr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net5.0-windows/Spark.exe", + "args": ["-configserver","http://titan:8000/config"], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "SDK Launch", + "type": "clr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net471/spark_sdk.exe", + "args": [ + "md", + "GLBX", + "Future", + "CL", + "CLZ9", + "--user=bts", + "--pass=" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Excel Launch", + "type": "clr", + "request": "launch", + "program": "C:/Program Files/Microsoft Office/Office14/EXCEL.EXE", + "args": [ + "${workspaceRoot}/build/Debug/bin/net471/spark_excel-addin64-packed.xll" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Client Tests", + "type": "clr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net471/sparkcmd.exe", + "args": [ + "test", + "ApiUpdateTests" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Client Attach", + "type": "clr", + "request": "attach", + "processId": "${command:pickProcess}" + }, + { + "name": "Spreader Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "[spreader]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Admin Service Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "args": [ + "test", + "[admin_service]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/src/server/sparkd/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Limiter Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "args": [ + "test", + "[limiter]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/src/server/sparkd/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "MD Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "[algo]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Skip STL", + "text": "skip -gfi /usr/include/c++/7/bits/*.h", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "SparkVM attach", + "type": "cppdbg", + "request": "attach", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "processId": "${command:pickRemoteProcess}", + "MIMode": "gdb", + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Python", + "type": "python", + "request": "launch", + "stopOnEntry": false, + "python": "${command:python.interpreterPath}", + "program": "${file}", + "cwd": "${workspaceRoot}", + "env": {}, + "envFile": "${workspaceRoot}/.env", + "args": [ + "DEBUG" + ], + "debugOptions": [ + "WaitOnAbnormalExit", + "WaitOnNormalExit", + "RedirectOutput" + ] + }, + { + "name": ".NET Core Remote Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickRemoteProcess}", + "pipeTransport": { + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/home/bts/vsdbg/vsdbg", + "pipeCwd": "${workspaceRoot}", + "quoteArgs": true + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + }, + "justMyCode": true + }, + { + "name": ".NET Core Remote Launch", + "type": "coreclr", + "request": "launch", + "program": "/usr/bin/dotnet", + "args": [ + "sparkcmd.dll", + "test", + "test_join_create_and_takeout_market" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server", + "pipeTransport": { + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/home/bts/vsdbg/vsdbg", + "pipeCwd": "${workspaceRoot}", + "quoteArgs": true + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + }, + "justMyCode": false + }, + ] +} diff --git a/dev/john/vscode/settings.json b/dev/john/vscode/settings.json new file mode 100644 index 000000000..d1fead2bc --- /dev/null +++ b/dev/john/vscode/settings.json @@ -0,0 +1,16 @@ +{ + "files.associations": { + "utility": "cpp", + "initializer_list": "cpp", + "list": "cpp", + "type_traits": "cpp", + "vector": "cpp", + "xhash": "cpp", + "xstring": "cpp", + "system_error": "cpp", + "array": "cpp", + "string_view": "cpp", + "xutility": "cpp", + "*.ipp": "cpp" + } +} diff --git a/dev/john/vscode/tasks.json b/dev/john/vscode/tasks.json new file mode 100644 index 000000000..db0a3719c --- /dev/null +++ b/dev/john/vscode/tasks.json @@ -0,0 +1,63 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "client_build", + "type": "shell", + "command": ".\\tools\\buildspark.cmd", + "problemMatcher":"$msCompile", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "group": "build" + }, + { + "label": "server_build", + "type": "shell", + "command": ".\\tools\\buildsparkd.cmd", + "problemMatcher": { + "base": "$gcc", + "owner": "cpp", + "fileLocation": [ + "relative", + "${workspaceFolder}" + ], + "pattern": { + "regexp": "(.?)(home)(.?)(bts)(.?)(spark)(.?)(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)", + "file": 8, + "line": 9, + "column": 10, + "severity": 11, + "message": 12 + } + }, + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "new" + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "linux build (Debug)", + "type": "shell", + "command": "cd build/ninja_debug; time ninja", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$gcc" + ] + } + ] +} \ No newline at end of file diff --git a/dev/taha/vscode/c_cpp_properties.json b/dev/taha/vscode/c_cpp_properties.json new file mode 100644 index 000000000..0646db05e --- /dev/null +++ b/dev/taha/vscode/c_cpp_properties.json @@ -0,0 +1,107 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "/usr/include", + "/usr/local/include", + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" + ], + "defines": [], + "intelliSenseMode": "clang-x64", + "browse": { + "path": [ + "/usr/include", + "/usr/local/include", + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + }, + "cStandard": "c11", + "cppStandard": "c++17", + "compileCommands": "${workspaceFolder}/build/ninja_debug/compile_commands.json" + }, + { + "name": "Windows", + "intelliSenseMode": "clang-x64", + "includePath": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include" + ], + "defines": [ + "__linux__", + "__x86_64__" + ], + "browse": { + "path": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include/*" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "" + }, + "cStandard": "c11", + "cppStandard": "c++17" + }, + { + "name": "WindowsQuick", + "intelliSenseMode": "clang-x64", + "includePath": [ + "${workspaceRoot}/src", + "${workspaceRoot}/build/src", + "${workspaceRoot}/build/ninja_debug/src", + "${workspaceRoot}/externals/windows/include", + "${workspaceRoot}/externals/linux/include", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu/c++/6", + "${workspaceRoot}/externals/windows/vscode/usr/include/c++/6/backward", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include", + "${workspaceRoot}/externals/windows/vscode/usr/local/include", + "${workspaceRoot}/externals/windows/vscode/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed", + "${workspaceRoot}/externals/windows/vscode/usr/include/x86_64-linux-gnu", + "${workspaceRoot}/externals/windows/vscode/usr/include" + ], + "defines": [ + "__linux__", + "__x86_64__" + ], + "browse": { + "path": [ + "${workspaceRoot}/src" + ], + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "${workspaceRoot}/.vscode/browse.vc.db" + }, + "cStandard": "c11", + "cppStandard": "c++17" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/dev/taha/vscode/launch.json b/dev/taha/vscode/launch.json new file mode 100644 index 000000000..4b43267cd --- /dev/null +++ b/dev/taha/vscode/launch.json @@ -0,0 +1,399 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Spark Local", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceRoot}/build/ninja_debug/server/sparkd", + "args": [ + "run", + "test", + "-a", + "OutrightVanillaOrder" + ], + "stopAtEntry": false, + "cwd": "${workspaceRoot}/build/ninja_debug/server/", + "environment": [ + { "name": "TZ", "value": "America/Chicago" } + ], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + }, + { + "name": "SparkVM Launch", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "-a", + "[ilink3]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + }, + { + "description": "Skip STL", + "text": "skip -gfi /usr/include/c++/7/bits/*.h", + "ignoreFailures": true + }, + { + "description": "LD LIBRARY", + "text": "set env LD_LIBRARY_PATH=.", + "ignoreFailures": false + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceRoot}/build/ninja_debug/server/sparkd/sparkd", + "args": [ + "run" + ], + "stopAtEntry": false, + "cwd": "${workspaceRoot}/build/ninja_debug/src/server/sparkd", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + }, + { + "name": "Client Launch", + "type": "clr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net471/spark.exe", + "args": [], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "SDK Launch", + "type": "clr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net471/spark_sdk.exe", + "args": [ + "md", + "GLBX", + "Future", + "CL", + "CLZ9", + "--user=bts", + "--pass=" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Excel Launch", + "type": "clr", + "request": "launch", + "program": "C:/Program Files/Microsoft Office/Office14/EXCEL.EXE", + "args": [ + "${workspaceRoot}/build/Debug/bin/net471/spark_excel-addin64-packed.xll" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Client Tests", + "type": "clr", + "request": "launch", + "program": "${workspaceRoot}/build/Debug/bin/net471/sparkcmd.exe", + "args": [ + "test", + "ApiUpdateTests" + ], + "cwd": "${workspaceRoot}", + "stopAtEntry": false, + "externalConsole": true, + "requireExactSource": false + }, + { + "name": "Client Attach", + "type": "clr", + "request": "attach", + "processId": "${command:pickProcess}" + }, + { + "name": "Spreader Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "[spreader]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Admin Service Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "args": [ + "test", + "[admin_service]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/src/server/sparkd/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Limiter Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "args": [ + "test", + "[limiter]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/src/server/sparkd/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "enable pretty-printer", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "MD Tests", + "type": "cppdbg", + "request": "launch", + "program": "/home/bts/spark/build/ninja_debug/server/sparkd", + "args": [ + "test", + "[algo]" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server/", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "", + "logging": { + "engineLogging": false + }, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Skip STL", + "text": "skip -gfi /usr/include/c++/7/bits/*.h", + "ignoreFailures": true + } + ], + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "SparkVM attach", + "type": "cppdbg", + "request": "attach", + "program": "/home/bts/spark/build/ninja_debug/src/server/sparkd/sparkd", + "processId": "${command:pickRemoteProcess}", + "MIMode": "gdb", + "pipeTransport": { + "pipeCwd": "${workspaceRoot}", + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/usr/bin/gdb" + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + } + }, + { + "name": "Python", + "type": "python", + "request": "launch", + "stopOnEntry": false, + "pythonPath": "${config:python.pythonPath}", + "program": "${file}", + "cwd": "${workspaceRoot}", + "env": {}, + "envFile": "${workspaceRoot}/.env", + "args": [ + "DEBUG" + ], + "debugOptions": [ + "WaitOnAbnormalExit", + "WaitOnNormalExit", + "RedirectOutput" + ] + }, + { + "name": ".NET Core Remote Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickRemoteProcess}", + "pipeTransport": { + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/home/bts/vsdbg/vsdbg", + "pipeCwd": "${workspaceRoot}", + "quoteArgs": true + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + }, + "justMyCode": true + }, + { + "name": ".NET Core Remote Launch", + "type": "coreclr", + "request": "launch", + "program": "/usr/bin/dotnet", + "args": [ + "sparkcmd.dll", + "test", + "test_join_create_and_takeout_market" + ], + "stopAtEntry": false, + "cwd": "/home/bts/spark/build/ninja_debug/server", + "pipeTransport": { + "pipeProgram": "c:\\program files\\git\\usr\\bin\\ssh.exe", + "pipeArgs": [ + "bts@sparkvm" + ], + "debuggerPath": "/home/bts/vsdbg/vsdbg", + "pipeCwd": "${workspaceRoot}", + "quoteArgs": true + }, + "sourceFileMap": { + "/home/bts/spark/": "${workspaceRoot}" + }, + "justMyCode": false + }, + ] +} \ No newline at end of file diff --git a/dev/taha/vscode/settings.json b/dev/taha/vscode/settings.json new file mode 100644 index 000000000..03b5c4f47 --- /dev/null +++ b/dev/taha/vscode/settings.json @@ -0,0 +1,16 @@ +{ +"files.associations": { + "utility": "cpp", + "initializer_list": "cpp", + "list": "cpp", + "type_traits": "cpp", + "vector": "cpp", + "xhash": "cpp", + "xstring": "cpp", + "system_error": "cpp", + "array": "cpp", + "string_view": "cpp" + "xutility": "cpp", + "*.ipp": "cpp" +} +} \ No newline at end of file diff --git a/dev/taha/vscode/tasks.json b/dev/taha/vscode/tasks.json new file mode 100644 index 000000000..db0a3719c --- /dev/null +++ b/dev/taha/vscode/tasks.json @@ -0,0 +1,63 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "client_build", + "type": "shell", + "command": ".\\tools\\buildspark.cmd", + "problemMatcher":"$msCompile", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "group": "build" + }, + { + "label": "server_build", + "type": "shell", + "command": ".\\tools\\buildsparkd.cmd", + "problemMatcher": { + "base": "$gcc", + "owner": "cpp", + "fileLocation": [ + "relative", + "${workspaceFolder}" + ], + "pattern": { + "regexp": "(.?)(home)(.?)(bts)(.?)(spark)(.?)(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)", + "file": 8, + "line": 9, + "column": 10, + "severity": 11, + "message": 12 + } + }, + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "new" + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "linux build (Debug)", + "type": "shell", + "command": "cd build/ninja_debug; time ninja", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$gcc" + ] + } + ] +} \ No newline at end of file