Skip to content

Commit f7548a8

Browse files
committed
remove debuggers
1 parent f86be3a commit f7548a8

13 files changed

Lines changed: 157 additions & 441 deletions

File tree

pkgs/dap-cpp/default.nix

Lines changed: 0 additions & 33 deletions
This file was deleted.

pkgs/dap-cpp/messages.nix

Lines changed: 0 additions & 46 deletions
This file was deleted.

pkgs/dapPython/default.nix

Lines changed: 0 additions & 24 deletions
This file was deleted.

pkgs/dapPython/wrapper.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

pkgs/historical-modules/default.nix

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ let
7474
displayVersion = "3";
7575
};
7676
}
77+
{
78+
moduleId = "dart-3.8";
79+
commit = "ae6ed05c623804560afd1cf3d80d13b6170d5c24";
80+
overrides = {
81+
displayVersion = "3.8";
82+
};
83+
}
7784
{
7885
moduleId = "deno-1";
7986
commit = "4327245815e8500233ed3af1cbb674bd147f673b";
@@ -263,10 +270,12 @@ let
263270
};
264271
}
265272
{
266-
moduleId = "dart-3.8";
273+
moduleId = "go-1.24";
267274
commit = "ae6ed05c623804560afd1cf3d80d13b6170d5c24";
268275
overrides = {
269-
displayVersion = "3.8";
276+
# /nix/store/...-replit-module-go-1.21
277+
# .runners["go-run"].displayVersion = "1...";
278+
displayVersion = "1.24";
270279
};
271280
}
272281
{
@@ -279,11 +288,11 @@ let
279288
];
280289

281290
moduleFromHistory =
282-
{
283-
moduleId,
284-
commit,
285-
deployment ? false,
286-
overrides,
291+
{ moduleId
292+
, commit
293+
, deployment ? false
294+
, overrides
295+
,
287296
}:
288297
let
289298
flake = getFlake "github:replit/nixmodules/${commit}";
@@ -301,24 +310,30 @@ let
301310
'';
302311
};
303312

304-
modules = foldl' (
305-
acc: module:
306-
acc
307-
// ({
308-
${module.moduleId} = moduleFromHistory module;
309-
})
310-
) { } historicalModulesList;
313+
modules = foldl'
314+
(
315+
acc: module:
316+
acc
317+
// ({
318+
${module.moduleId} = moduleFromHistory module;
319+
})
320+
)
321+
{ }
322+
historicalModulesList;
311323

312-
deploymentModules = foldl' (
313-
acc: module:
314-
acc
315-
// ({
316-
${module.moduleId} = moduleFromHistory {
317-
inherit (module) moduleId commit overrides;
318-
deployment = true;
319-
};
320-
})
321-
) { } historicalModulesList;
324+
deploymentModules = foldl'
325+
(
326+
acc: module:
327+
acc
328+
// ({
329+
${module.moduleId} = moduleFromHistory {
330+
inherit (module) moduleId commit overrides;
331+
deployment = true;
332+
};
333+
})
334+
)
335+
{ }
336+
historicalModulesList;
322337

323338
in
324339
{

pkgs/moduleit/example.nix

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ in
3232
runners.nodeJS = {
3333
name = "Node.js";
3434
language = "javascript";
35-
extensions = [ ".js" ".ts" ".jsx" ".tsx" ];
35+
extensions = [
36+
".js"
37+
".ts"
38+
".jsx"
39+
".tsx"
40+
];
3641
start = "${pkgs.nodejs_20}/bin/node $file";
3742
compile = {
38-
args = [ "tsc" "$file" ];
43+
args = [
44+
"tsc"
45+
"$file"
46+
];
3947
env = {
4048
FOO = "BAR";
4149
};
@@ -49,53 +57,15 @@ in
4957
};
5058
};
5159

52-
debuggers.nodeDAP = {
53-
name = "Node DAP";
54-
language = "javascript";
55-
filePattern = "*.{js,jsx,ts,tsx}";
56-
transport = "localhost:0";
57-
fileParam = true;
58-
start = "dap-node";
59-
initializeMessage = {
60-
command = "initialize";
61-
type = "request";
62-
arguments = {
63-
clientID = "replit";
64-
clientName = "replit.com";
65-
adapterID = "dap-node";
66-
columnsStartAt1 = true;
67-
linesStartAt1 = true;
68-
locale = "en-us";
69-
pathFormat = "path";
70-
supportsInvalidatedEvent = true;
71-
supportsProgressReporting = true;
72-
supportsRunInTerminalRequest = true;
73-
supportsVariablePaging = true;
74-
supportsVariableType = true;
75-
};
76-
};
77-
launchMessage = {
78-
command = "launch";
79-
type = "request";
80-
arguments = {
81-
args = [ ];
82-
console = "externalTerminal";
83-
cwd = ".";
84-
environment = [ ];
85-
pauseForSourceMap = false;
86-
program = "$file";
87-
request = "launch";
88-
sourceMaps = true;
89-
stopOnEntry = false;
90-
type = "pwa-node";
91-
};
92-
};
93-
};
94-
9560
languageServers.tsServer = {
9661
name = "TypeScript Language Server";
9762
language = "javascript";
98-
extensions = [ ".js" ".ts" ".jsx" ".tsx" ];
63+
extensions = [
64+
".js"
65+
".ts"
66+
".jsx"
67+
".tsx"
68+
];
9969
start = "${typescript-language-server}/bin/typescript-language-server --stdio";
10070
};
10171

@@ -108,7 +78,10 @@ in
10878
enabledForHosting = false;
10979
};
11080
afterInstall = {
111-
args = [ "echo" "installed" ];
81+
args = [
82+
"echo"
83+
"installed"
84+
];
11285
};
11386
};
11487

pkgs/modules/c/default.nix

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ in
1717
name = "C Tools (with Clang)";
1818
displayVersion = clang-version;
1919
description = ''
20-
Tools for working with C programming language. Includes Clang compiler, GDB debugger, and ccls language server.
20+
Tools for working with C programming language. Includes Clang compiler, and ccls language server.
2121
'';
2222

2323
replit.packages = [
@@ -51,27 +51,4 @@ in
5151
language = "c";
5252
start = "${pkgs.ccls}/bin/ccls";
5353
};
54-
55-
replit.dev.debuggers.gdb-project = {
56-
name = "GDB: Project";
57-
language = "c";
58-
start = "${dap-cpp}/bin/dap-cpp";
59-
fileParam = false;
60-
compile = "${clang-compile}/bin/clang-compile main.c c all debug";
61-
transport = "stdio";
62-
initializeMessage = dap-cpp-messages.dapInitializeMessage;
63-
launchMessage = dap-cpp-messages.dapLaunchMessage "./main.c.bin";
64-
};
65-
66-
# replit.debuggers.gdb-single = {
67-
# name = "GDB: Single File";
68-
# language = "c";
69-
# extensions = run-extensions;
70-
# start = "${dap-cpp}/bin/dap-cpp";
71-
# fileParam = true;
72-
# compile = "${clang-compile}/bin/clang-compile $file c single debug";
73-
# transport = "stdio";
74-
# initializeMessage = dapInitializeMessage;
75-
# launchMessage = dapLaunchMessage "./$file.bin";
76-
# };
7754
}

0 commit comments

Comments
 (0)