Skip to content

Commit 8388541

Browse files
committed
Add vscode settings for local dkcoder dev
1 parent d434329 commit 8388541

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22
/_build/dksdk-cmd-exe.log
33
# ./dk dksdk.android.studio.download
44
/.ci/local/share/Android Studio.app/
5+
6+
# ./dk DkRun
7+
/#s/
8+
/_build/
9+
/.merlin
10+
/.z-dk-dune-project
11+
/dune-workspace

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"cmake.configureOnOpen": false,
3+
"ocaml.sandbox": {
4+
"kind": "custom",
5+
// SYNC: src/DkStd_Std/README.md, .vscode/settings.json, cmake/scripts/dkcoder/project/init.cmake
6+
"template": "${firstWorkspaceFolder}/dk.cmd DkRun_V2_2.RunQuiet --log-level ERROR --fixed-length-modules false -- MlStd_Std.Exec --merlin -- $prog $args"
7+
},
38
"psi-header.config": {
49
"forceToTop": true,
510
"blankLinesAfter": 1

cmake/scripts/dkcoder/project/init.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ macro(dkcoder_project_init)
116116

117117
set(init_OPTIONS)
118118
# all DkStd_Std commands must run in old versions of DkCoder. Confer dkcoder/src/DkStd_Std/README.md
119+
# SYNC: src/DkStd_Std/README.md, .vscode/settings.json, cmake/scripts/dkcoder/project/init.cmake
119120
set(dk_run DkRun_V2_2.RunAway)
120121
if(NOT ARG_QUIET)
121122
string(APPEND init_OPTIONS " -verbose")

src/DkStd_Std/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ because it is a source code compile, and because `./dk` has a TTL-cache
55
based upgrade mechanism.
66

77
That also means that the `Dk` library must run in old versions of DkCoder.
8-
That old version is DkCoder 2.2, and is hardcoded into
8+
<!-- SYNC: src/DkStd_Std/README.md, .vscode/settings.json, cmake/scripts/dkcoder/project/init.cmake -->
9+
That old version is DkCoder 2.2, and `DkRun_V2_2` is hardcoded into
910
[cmake/scripts/dkcoder/project/init.cmake:dkcoder_project_init](../../cmake/scripts/dkcoder/project/init.cmake#dkcoder_project_init)
11+
and (less important) in [.vscode/settings.json](../../.vscode/settings.json).
1012

1113
The unresolved difficulty is that `dk.sqlite3` metadata is not yet
1214
backwards-compatible. Backwards-compatibility is required.

0 commit comments

Comments
 (0)