Log the error instead of throwing.
This commit is contained in:
Vendored
+22
-120
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visicat t: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|
||||||
@@ -21,34 +21,6 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
// Resolved by CMake Tools:
|
// Resolved by CMake Tools:
|
||||||
"program": "${command:cmake.launchTargetPath}",
|
"program": "${command:cmake.launchTargetPath}",
|
||||||
"args": [
|
|
||||||
"hw:M2",
|
|
||||||
"hw:M2"
|
|
||||||
],
|
|
||||||
"stopAtEntry": false,
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"environment": [
|
|
||||||
{
|
|
||||||
"name": "PATH",
|
|
||||||
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"externalConsole": false,
|
|
||||||
"MIMode": "gdb",
|
|
||||||
"setupCommands": [
|
|
||||||
{
|
|
||||||
"description": "Enable pretty-printing for gdb",
|
|
||||||
"text": "-enable-pretty-printing",
|
|
||||||
"ignoreFailures": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "(gdb) external console",
|
|
||||||
"type": "cppdbg",
|
|
||||||
"request": "launch",
|
|
||||||
// Resolved by CMake Tools:
|
|
||||||
"program": "${command:cmake.launchTargetPath}",
|
|
||||||
"args": [ ],
|
"args": [ ],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
@@ -58,7 +30,7 @@
|
|||||||
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"externalConsole": true,
|
"externalConsole": false,
|
||||||
"MIMode": "gdb",
|
"MIMode": "gdb",
|
||||||
"setupCommands": [
|
"setupCommands": [
|
||||||
{
|
{
|
||||||
@@ -104,7 +76,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
// Resolved by CMake Tools:
|
// Resolved by CMake Tools:
|
||||||
"program": "${command:cmake.launchTargetPath}",
|
"program": "${command:cmake.launchTargetPath}",
|
||||||
"args": [ "/etc/pipedal/config", "${workspaceFolder}/vite/dist", "-port", "0.0.0.0:8080", "-log-level","debug" ],
|
"args": [ "/etc/pipedal/config", "/etc/pipedal/react", "-port", "0.0.0.0:8080" ],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"environment": [
|
"environment": [
|
||||||
@@ -115,8 +87,7 @@
|
|||||||
{
|
{
|
||||||
"name": "LD_LIBRARY_PATH",
|
"name": "LD_LIBRARY_PATH",
|
||||||
"value": "/usr/local/lib/aarch64-linux-gnu"
|
"value": "/usr/local/lib/aarch64-linux-gnu"
|
||||||
},
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"externalConsole": false,
|
"externalConsole": false,
|
||||||
"MIMode": "gdb",
|
"MIMode": "gdb",
|
||||||
@@ -141,11 +112,7 @@
|
|||||||
//"[json_variants]" // subtest of your choice, or none to run all of the tests.
|
//"[json_variants]" // subtest of your choice, or none to run all of the tests.
|
||||||
//"[inverting_mutex_test]"
|
//"[inverting_mutex_test]"
|
||||||
// "[utf8_to_utf32]"
|
// "[utf8_to_utf32]"
|
||||||
//"[pipedal_alsa_test]"
|
"[wifi_channels_test]"
|
||||||
// "[wifi_channels_test]"
|
|
||||||
// "[locale]"
|
|
||||||
//"[mod_gui_init]"
|
|
||||||
"[mod_gui_templates]"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
@@ -180,7 +147,7 @@
|
|||||||
"args": [
|
"args": [
|
||||||
//"[Dev]" -- all dev-machine tests.
|
//"[Dev]" -- all dev-machine tests.
|
||||||
//"[promise]" // subtest of your choice, or none to run all of the tests.
|
//"[promise]" // subtest of your choice, or none to run all of the tests.
|
||||||
"[json_variants]"
|
"[atom_converter]"
|
||||||
],
|
],
|
||||||
|
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
@@ -238,84 +205,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "(gdb) pipedalProfilePlugin",
|
|
||||||
"type": "cppdbg",
|
|
||||||
"request": "launch",
|
|
||||||
// Resolved by CMake Tools:
|
|
||||||
"program": "${command:cmake.launchTargetPath}",
|
|
||||||
|
|
||||||
"args": [
|
|
||||||
"--no-profile", "-w",
|
|
||||||
// "TooB NAM"
|
|
||||||
"--preset-file", "/tmp/namPreset.preset"
|
|
||||||
],
|
|
||||||
|
|
||||||
"stopAtEntry": false,
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"environment": [
|
|
||||||
{
|
|
||||||
"name": "PATH",
|
|
||||||
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "OTHER_VALUE",
|
|
||||||
"value": "Something something"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"externalConsole": false,
|
|
||||||
"MIMode": "gdb",
|
|
||||||
"setupCommands": [
|
|
||||||
{
|
|
||||||
"description": "Enable pretty-printing for gdb",
|
|
||||||
"text": "-enable-pretty-printing",
|
|
||||||
"ignoreFailures": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "(gdb) pipedalconfigX",
|
|
||||||
"type": "cppdbg",
|
|
||||||
"request": "launch",
|
|
||||||
// Resolved by CMake Tools:
|
|
||||||
"program": "/home/robin/src/pipedal/build/src/pipedalconfig",
|
|
||||||
"args": [
|
|
||||||
"--nosudo", // run without sudo (which will fail because of perms, but allow us to debug deeper into install code.)
|
|
||||||
//"--get-current-port"
|
|
||||||
// "--uninstall"
|
|
||||||
//"--enable-p2p" , "CA", "PiPedalTest","12345678","14"
|
|
||||||
// "--alsa-devices"
|
|
||||||
"--prefix", "/usr",
|
|
||||||
"--install", "--port", "0"
|
|
||||||
],
|
|
||||||
"stopAtEntry": false,
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"environment": [
|
|
||||||
{
|
|
||||||
"name": "PATH",
|
|
||||||
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ASAN_OPTIONS",
|
|
||||||
"value": "detect_leaks=0"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "OTHER_VALUE",
|
|
||||||
"value": "Something something"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"externalConsole": false,
|
|
||||||
"MIMode": "gdb",
|
|
||||||
"setupCommands": [
|
|
||||||
{
|
|
||||||
"description": "Enable pretty-printing for gdb",
|
|
||||||
"text": "-enable-pretty-printing",
|
|
||||||
"ignoreFailures": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "(gdb) processCopyrights Launch",
|
"name": "(gdb) processCopyrights Launch",
|
||||||
@@ -362,13 +251,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "(gdb) pipedal_alsa_check",
|
"name": "(gdb) pipedalconfig",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
// Resolved by CMake Tools:
|
// Resolved by CMake Tools:
|
||||||
"program": "${command:cmake.launchTargetPath}",
|
"program": "${command:cmake.launchTargetPath}",
|
||||||
"args": [
|
"args": [
|
||||||
//"hw:M2"
|
"--nosudo", // run without sudo (which will fail because of perms, but allow us to debug deeper into install code.)
|
||||||
|
//"--get-current-port"
|
||||||
|
// "--uninstall"
|
||||||
|
//"--enable-p2p" , "CA", "PiPedalTest","12345678","14"
|
||||||
|
"--list-p2p-channels"
|
||||||
],
|
],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
@@ -376,6 +269,15 @@
|
|||||||
{
|
{
|
||||||
"name": "PATH",
|
"name": "PATH",
|
||||||
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
"value": "$PATH:${command:cmake.launchTargetDirectory}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ASAN_OPTIONS",
|
||||||
|
"value": "detect_leaks=0"
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "OTHER_VALUE",
|
||||||
|
"value": "Something something"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"externalConsole": false,
|
"externalConsole": false,
|
||||||
|
|||||||
+7
-2
@@ -277,8 +277,13 @@ int main(int argc, char *argv[])
|
|||||||
const std::filesystem::path webTempDirectory = "/var/pipedal/web_temp";
|
const std::filesystem::path webTempDirectory = "/var/pipedal/web_temp";
|
||||||
if (!webTempDirectory.empty())
|
if (!webTempDirectory.empty())
|
||||||
{
|
{
|
||||||
std::filesystem::remove_all(webTempDirectory); //// user must belong to the pipedald grop when debugging.
|
try {
|
||||||
std::filesystem::create_directories(webTempDirectory);
|
std::filesystem::remove_all(webTempDirectory); //// user must belong to the pipedald grop when debugging.
|
||||||
|
std::filesystem::create_directories(webTempDirectory);
|
||||||
|
}
|
||||||
|
catch (const std::exception e) {
|
||||||
|
Lv2Log::warning(e.what());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure AudiDirectoryInfo to use the correct directories.
|
// configure AudiDirectoryInfo to use the correct directories.
|
||||||
|
|||||||
Reference in New Issue
Block a user