-
Notifications
You must be signed in to change notification settings - Fork 15
/
ubloxcfg.code-workspace
393 lines (382 loc) · 16.1 KB
/
ubloxcfg.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
{
"folders": [
{ "path": ".", "name": "ubloxcfg" }
],
"settings": {
"editor.detectIndentation": false,
"editor.tabSize": 4, // Note: only active if editor.-
"editor.insertSpaces": true, // detectIndentation is false!
//"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
// Leave big brother in the dark, mainly settings from @tag:usesOnlineServices
"telemetry.enableTelemetry": false,
"gitlens.telemetry.enabled": false,
"redhat.telemetry.enabled": false,
"telemetry.enableCrashReporter": false,
"telemetry.telemetrylevel": "off",
"workbench.enableExperiments": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"npm.fetchOnlinePackageInfo": false,
// Exclude files and folders from explorer (it automatically excludes .git)
"files.exclude": {
".ackrc": true, // config file for ack(1p)
".gitattributes": true, // git config
//".gitignore": true, // git config
".vscode-cache": true, // Intellisense cache
"**/*~": true, // backup files
".vstags": true,
"core": true // Core dumps
},
// Exclude things from search (this automatically uses files.exclude + what you add here)
"search.exclude": {
"output": true,
"tmp": true,
"build": true
},
// Exclude some things from the files watcher
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/refs/**": true,
"**/.git/logs/**": true,
"**/.git/subtree-cache/**": true,
"**/.git/worktrees/**": true,
"**/.vscode-cache": true,
"**/output/**": true,
"**/build/**": true,
},
// Microsoft C++ extension (ms-vscode.cpptools)
"C_Cpp.intelliSenseCachePath": "${workspaceFolder}/.vscode-cache",
// defaults for .vscode/c_cpp_properties.json (which makes that file optional)
// see .vscode/c_cpp_properties.json-example for details
// https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp,
// https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference)
"C_Cpp.default.includePath": [ "${workspaceFolder}/**" ], // do no add more here, it confuses IntelliSense
// no defines required, it should use gen/make_defines.h and std_build.h
"C_Cpp.default.defines": [ "FF_BUILD_DEBUG" ],
//"C_Cpp.default.compileCommands": "",
//"C_Cpp.default.forcedIncludes": [ ],
"C_Cpp.default.intelliSenseMode": "gcc-x64",
"C_Cpp.default.compilerPath": "/usr/bin/gcc",
"C_Cpp.default.cStandard": "gnu99",
"C_Cpp.default.cppStandard": "gnu++17",
"C_Cpp.default.browse.path": [ "${workspaceFolder}/**" ],
//"C_Cpp.default.configurationProvider": "b2.catkin_tools",
"C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode-cache/browse.db",
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": false,
//"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 120 }",
"editor.formatOnSave": false,
// Help VSCode to recognise some unusually named files correctly
"files.associations": {
"*.tcc": "cpp",
"fstream": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"bit": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"thread": "cpp",
"type_traits": "cpp",
"tuple": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"utility": "cpp",
"variant": "cpp",
"any": "cpp",
"cinttypes": "cpp",
"codecvt": "cpp",
"compare": "cpp",
"concepts": "cpp",
"forward_list": "cpp",
"algorithm": "cpp",
"iterator": "cpp",
"memory_resource": "cpp",
"random": "cpp",
"regex": "cpp",
"numbers": "cpp",
"ranges": "cpp",
"semaphore": "cpp",
"stop_token": "cpp",
"cfenv": "cpp",
"valarray": "cpp",
"shared_mutex": "cpp",
"termios.h": "c"
},
// Automatically detected tasks (e.g. for .c files) won't work for us
"task.autoDetect": "off",
"typescript.tsc.autoDetect": "off",
"grunt.autoDetect": "off",
"gulp.autoDetect": "off",
"jake.autoDetect": "off",
"npm.autoDetect": "off",
"cSpell.words": [
"Blabla",
"Kehl",
"NOGDI",
"NUMOF",
"Nmea",
"Rtcm",
"UBLOXCFG",
"blox",
"oinkzwurgl",
"stringification"
],
"cmake.configureOnOpen": false,
"python.autoComplete.extraPaths": [
"${workspaceFolder}/sources/poky/bitbake/lib",
"${workspaceFolder}/sources/poky/meta/lib"
],
"python.analysis.extraPaths": [
"/home/flip/core/sw/gnss/misc/scripts",
"${workspaceFolder}/scripts",
"/opt/ros/noetic/lib/python3/dist-packages",
"${workspaceFolder}/sources/poky/bitbake/lib",
"${workspaceFolder}/sources/poky/meta/lib"
],
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"gitlens.codeLens.symbolScopes": [
"!Module"
],
"editor.formatOnType": true,
"editor.wordBasedSuggestions": "off",
"files.trimTrailingWhitespace": false
},
"[shellscript]": {
"files.eol": "\n",
"files.trimTrailingWhitespace": false
}
},
// Essential recommended and not recommended extensions. See the wiki for more.
"extensions": {
"recommendations": [
"ms-vscode.cpptools",
"mhutchie.git-graph",
"maattdd.gitless"
],
"unwantedRecommendations": [
"austin.code-gnu-global", // conflicts with "ms-vscode.cpptools" (?)
]
},
// Build and test tasks. Users can add more tasks in .vscode/tasks.json.
"tasks": {
// https://code.visualstudio.com/docs/editor/tasks
// https://code.visualstudio.com/docs/editor/tasks-appendix
"version": "2.0.0",
// Defaults for all tasks
"options": {
"cwd": "${workspaceFolder}",
"shell": { "executable": "/bin/bash", "args": [ "-c" ] },
"setupCommands": [
{ "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true },
{ "text": "handle SIGPIPE nostop noprint pass", "description": "ignore SIGPIPE", "ignoreFailures": true }
]
},
"problemMatcher": "$gcc",
"type": "shell",
// Tasks definitions
"tasks": [
// -----------------------------------------------------------------------------------------
{
"label": "make all",
"group":{ "kind": "build", "isDefault": true },
"dependsOn": [ "make clean", "make test_m32", "make test_m64", "make cfgtool-release", "make cfggui-release" ],
"dependsOrder": "sequence"
},
{
"label": "make test_m32-release",
"group": "build",
"command": "make", "args": [ "output/test_m32-release" ]
},
{
"label": "make test_m32-debug",
"group": "build",
"command": "make", "args": [ "output/test_m32-debug" ]
},
{
"label": "make test_m64-release",
"group": "build",
"command": "make", "args": [ "output/test_m64-release" ]
},
{
"label": "make test_m64-debug",
"group": "build",
"command": "make", "args": [ "output/test_m64-debug" ]
},
{
"label": "make cfgtool-release",
"group": "build",
"command": "make", "args": [ "output/cfgtool-release" ]
},
{
"label": "make cfgtool-debug",
"group": "build",
"command": "make", "args": [ "-k", "output/cfgtool-debug" ]
},
{
"label": "make cfggui-release",
"group": "build",
"command": "make", "args": [ "-k", "-j8", "-k", "output/cfggui-release" ]
},
{
"label": "make cfggui-debug",
"group": "build",
"command": "make", "args": [ "-j8", "-k", "output/cfggui-debug" ]
},
{
"label": "make clean",
"group": "build",
"command": "make", "args": [ "clean" ]
},
// -----------------------------------------------------------------------------------------
{
"label": "test",
"group":{ "kind": "test","isDefault": true },
"dependsOn": [ "make clean", "test test_m32", "test test_m64" ],
"dependsOrder": "sequence"
},
{
"label": "test test_m32",
"group": "test",
"command": "output/test_m32", "args": [ ],
"dependsOn": "make test_m32"
},
{
"label": "test test_m64",
"group": "test",
"command": "output/test_m64", "args": [ ],
"dependsOn": "make test_m64"
},
// see more useful things in .vscode/tasks.json-example
// -----------------------------------------------------------------------------------------
{
"label": "debug workspaceFolder path",
"group": "build",
"command": "echo ${workspaceFolder} && readlink -f ${workspaceFolder}"
}
],
// Input variables
"inputs": [
// https://code.visualstudio.com/docs/editor/variables-reference#_input-variables
]
},
// Launch (debugging)
"launch": {
// https://code.visualstudio.com/docs/cpp/launch-json-reference
"configurations": [
{
"name": "debug test_m32",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": false,
"preLaunchTask" : "make test_m32-debug",
"program": "${workspaceFolder}/output/test_m32-debug",
"args": [ ],
"cwd": "${workspaceFolder}"
},
{
"name": "debug test_m64",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": true,
"preLaunchTask" : "make test_m64-debug",
"program": "${workspaceFolder}/output/test_m64-debug",
"args": [ ],
"cwd": "${workspaceFolder}"
},
{
"name": "debug cfgtool cfg2ubx",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": false,
"preLaunchTask" : "make cfgtool-debug",
"program": "${workspaceFolder}/output/cfgtool-debug",
"args": [ "-v", "-i", "test_cfg2ubx.txt", "cfg2ubx", "-l", "ram" ],
"cwd": "${workspaceFolder}"
},
{
"name": "debug cfgtool dump",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": false,
"preLaunchTask" : "make cfgtool-debug",
"program": "${workspaceFolder}/output/cfgtool-debug",
"args": [ "-v", "-p", "tcp://fry:20001", "dump" ],
"cwd": "${workspaceFolder}"
},
{
"name": "debug cfgtool parse",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": false,
"preLaunchTask" : "make cfgtool-debug",
"program": "${workspaceFolder}/output/cfgtool-debug",
"args": [ "-v", "-i", "tmp/fplog1", "parse", "-x", "-e" ],
"cwd": "${workspaceFolder}"
},
{
"name": "debug cfggui",
"type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath" : "gdb",
"stopAtEntry": false,
"preLaunchTask": "make cfggui-debug",
"program": "${workspaceFolder}/output/cfggui-debug",
"args": [ ],
"cwd": "${workspaceFolder}",
//"miDebuggerArgs": "-ex source .gdbinit", // nope... :-/
"setupCommands": [
{ "text": "-enable-pretty-printing", "description": "enable pretty printing", "ignoreFailures": true }, // needs setup code in ~/.gdbinit!
{ "text": "handle SIGPIPE nostop noprint pass", "description": "ignore SIGPIPE", "ignoreFailures": true },
{ "text": "source ${workspaceFolder}/.gdbinit", "description": "load local .gdbinit", "ignoreFailures": false }
// ubloxcfg/.gdbinit for more...
// //{ "text": "add-natvis ${workspaceFolder}/3rdparty/imgui/imgui.natvis", "description": "imgui natvis", "ignoreFailures": true }
// // "-exec info skip" to show in debug console
// { "text": "skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+", "description": "skip trivial ImGui functions", "ignoreFailures": true },
// { "text": "skip -rfunction Ff::Vec2::.+", "description": "skip trivial Ff functions", "ignoreFailures": true },
// // https://sourceware.org/gdb/onlinedocs/gdb/Skipping-Over-Functions-and-Files.html
// // FIXME: doesn't work :-(
// { "text": "skip -rfunction ^std::__cxx11::(allocator|basic_string)<.*>::", "description": "skip string ctor/dtor", "ignoreFailures": true },
// { "text": "skip -rfunction ^std::__cxx11::([a-zA-z0-9_]+)<.*>::", "description": "skip std ctor/dtor", "ignoreFailures": true },
]
}
// see more useful things in .vscode/launch.json-example
],
"compounds": []
}
}