robotcode 2.9.0.dev214__tar.gz → 2.9.0.dev264__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -340,7 +340,7 @@ bundled/libs
340
340
  .kilocode/
341
341
 
342
342
  # .agents
343
- .agents/
343
+ #.agents/
344
344
  skills-lock.json
345
345
  #.claude
346
346
 
@@ -17,6 +17,15 @@ All notable changes to this project will be documented in this file. See [conven
17
17
 
18
18
  #### Language Server
19
19
 
20
+ - Serve IDE clients that run the server in WSL ([cb27b3f](https://github.com/robotcodedev/robotcode/commit/cb27b3f87a50d0334a43543b1abad6cfa385b622))
21
+
22
+ The language server and test discovery can now translate file locations
23
+ between an IDE on Windows and a WSL distribution, and in TCP mode the server
24
+ can serve one client and end with its connection; only the PyCharm plugin
25
+ uses these internal options. In stdio mode the server now keeps its standard
26
+ output for the protocol, so a library that prints while it loads can no
27
+ longer break the connection, and it ends when its standard input closes.
28
+
20
29
  - Edit Markdown suites like Robot Framework files ([a5264d2](https://github.com/robotcodedev/robotcode/commit/a5264d2ea2c4a076cea94ebbca9cb7969f6c2681))
21
30
 
22
31
  Inside the robot code blocks of a Markdown suite, the editor offers what
@@ -28,6 +37,35 @@ All notable changes to this project will be documented in this file. See [conven
28
37
 
29
38
  #### PyCharm
30
39
 
40
+ - Run and debug tests with WSL interpreters ([26d51a5](https://github.com/robotcodedev/robotcode/commit/26d51a5700e884af7c30ced87a168be266f5565b))
41
+
42
+ Robot Framework runs and debug sessions now work with WSL interpreters, both
43
+ an interpreter added "On WSL" and, from PyCharm 2026.3 on, a WSL Python added
44
+ as a local interpreter, for projects inside WSL and on Windows drives.
45
+ Breakpoints, stepping, "Attach Python", the results tree, the gutter states and
46
+ the output files all refer to the project's files as PyCharm shows them.
47
+
48
+ - Support WSL interpreters for editor features and test discovery ([8330c56](https://github.com/robotcodedev/robotcode/commit/8330c56af40ce1b8d798a572310ad61e9653d745))
49
+
50
+ With a WSL interpreter, the language server and test discovery of a module
51
+ now run inside the interpreter's distribution, so completion, diagnostics,
52
+ navigation, rename, quick fixes and run markers work in projects inside WSL
53
+ and on Windows drives. RobotCode copies its bundled tools into the
54
+ distribution once per version. The new Mode setting on the Language Server
55
+ page chooses how PyCharm connects to the server. Robot Framework runs still
56
+ need a local interpreter.
57
+
58
+ - Make each module a Robot Framework project of its own ([18be266](https://github.com/robotcodedev/robotcode/commit/18be26618ca8b1ec1ab2a16d109eb7e22f3dd758))
59
+
60
+ In a PyCharm project with several modules, each module now gets its own
61
+ RobotCode language server, test discovery and configuration profile
62
+ selection. They run with the module's Python interpreter in the module's
63
+ folder, so that its robot.toml and roots apply, as each workspace folder
64
+ does in VS Code. Runs from the gutter and the context menus run in the
65
+ module of what they run, and Robot files outside every module are served
66
+ as in VS Code. The "Module for RobotCode" setting and its notification
67
+ are gone. Needs LSP4IJ 0.30.
68
+
31
69
  - Debug the Python code of libraries with "Attach Python" ([cb3354c](https://github.com/robotcodedev/robotcode/commit/cb3354cf9faa195d2b74c196f38f33698689ac46))
32
70
 
33
71
  A Debug run of a Robot Framework run configuration can now also stop at Python
@@ -48,6 +86,13 @@ All notable changes to this project will be documented in this file. See [conven
48
86
 
49
87
  #### REPL
50
88
 
89
+ - Mark deprecated keywords in the JSON output of robotcode doc ([7b901c3](https://github.com/robotcodedev/robotcode/commit/7b901c34ef1912d98b8078e28d3b049a190070ce))
90
+
91
+ With `--format json`, `robotcode doc lib`, `doc keywords` and `doc keyword`
92
+ give a deprecated keyword `"deprecated": true`, so tools and agents can
93
+ leave such keywords out or explain a deprecation hint without reading the
94
+ documentation text.
95
+
51
96
  - Show the value of a variable typed on its own ([683f754](https://github.com/robotcodedev/robotcode/commit/683f754d3214b0755f23e82c5cdaad61ae27131a))
52
97
 
53
98
  Typing `${x}` at the `robotcode repl` prompt failed with `Keyword name cannot be empty.` and marked the session as failed. Now a variable alone, also with item access, nested or as inline Python like `${{len($items)}}`, shows its value as `=> <value>`, at the `>>>` and `(rdb)` prompts and through `robotcode session send`. It is no keyword call, so the output files, `${_}` and `.save` don't see it, and Ctrl-C stops an expression that runs too long.
@@ -63,6 +108,14 @@ All notable changes to this project will be documented in this file. See [conven
63
108
 
64
109
  #### Robot
65
110
 
111
+ - Give failed imports their own diagnostic codes ([a8593e0](https://github.com/robotcodedev/robotcode/commit/a8593e029a4dac2f17f5cece0c8038944e9da434))
112
+
113
+ A failed `Library`, `Resource` or `Variables` import was reported as
114
+ `DataError`, like a wrong number of keyword arguments. It now gets
115
+ `LibraryNotFound`, `ResourceNotFound` or `VariablesNotFound` when its file,
116
+ module or class can't be found, and `LibraryImportFailed`,
117
+ `ResourceImportFailed` or `VariablesImportFailed` for other failures.
118
+
66
119
  - Read Markdown suites like Robot Framework ([8f4a660](https://github.com/robotcodedev/robotcode/commit/8f4a660ebca82040ef3631d38677d43f204f2f3c))
67
120
 
68
121
  With Robot Framework 7.5.1 or newer, RobotCode reads the Markdown files
@@ -152,6 +205,13 @@ All notable changes to this project will be documented in this file. See [conven
152
205
 
153
206
  #### PyCharm
154
207
 
208
+ - Give a local run the roots of its module as IDE paths ([8644b48](https://github.com/robotcodedev/robotcode/commit/8644b487fd7542f42c4b77650f48fe5af0d65e57))
209
+
210
+ A run with a local interpreter in a module whose interpreter is a WSL
211
+ interpreter got the content and source roots of the Python path as paths
212
+ inside the distribution, so libraries in those roots were not found. It
213
+ gets them as the IDE shows them again.
214
+
155
215
  - Make "Attach Python" work in PyCharm 2026.3 ([ea0f4b8](https://github.com/robotcodedev/robotcode/commit/ea0f4b837417355080502b76523c94b9c6360f85))
156
216
 
157
217
  A Debug run with "Attach Python" now also starts in PyCharm 2026.3, whose
@@ -244,6 +304,30 @@ All notable changes to this project will be documented in this file. See [conven
244
304
 
245
305
  #### Robot
246
306
 
307
+ - Fail the import of a resource file that Robot Framework refuses ([89738b7](https://github.com/robotcodedev/robotcode/commit/89738b745f5b6e74ad223679009e5b71d2fdd9a5))
308
+
309
+ A resource file with a Test Cases or Tasks section, and from Robot Framework
310
+ 6.1 on one with an unrecognised section header, is now reported at its import
311
+ with ResourceImportFailed and Robot Framework's message. Its keywords are no
312
+ longer found, so a call that passed in the editor but failed in the run is
313
+ reported there too.
314
+
315
+ - Load a variable file that failed again in the next session ([039ee37](https://github.com/robotcodedev/robotcode/commit/039ee37f6a2c7fed916f763a745ad011a4c22359))
316
+
317
+ A variable file that failed to load, for example because a module it
318
+ imports or a file its `get_variables` reads was still missing, kept its
319
+ error in every later session until the cache was deleted. It is now
320
+ loaded again, as a library already was, and such a failure no longer
321
+ makes other suites that import the same file miss the analysis cache.
322
+
323
+ - Show the reason of a deprecated keyword as Robot Framework does ([481bb47](https://github.com/robotcodedev/robotcode/commit/481bb47bc07e1cf57600325943a32ccf30045115))
324
+
325
+ The hint on a call of a deprecated keyword showed a wrong or no reason for
326
+ most libraries, for example `is deprecated: !!.` for AppiumLibrary's
327
+ `*DEPRECATED!!* Use ...`. It now shows the reason Robot Framework warns
328
+ with at run time, in the editor and in `robotcode analyze code`. BuiltIn's
329
+ deprecated keywords keep their reason.
330
+
247
331
  - Keep plain text in Robot-format documentation as written ([b00d267](https://github.com/robotcodedev/robotcode/commit/b00d267a7fbb3187de7ca728ead8011b3f196af0))
248
332
 
249
333
  Documentation written in Robot Framework's format now shows the same
@@ -284,6 +368,14 @@ All notable changes to this project will be documented in this file. See [conven
284
368
 
285
369
  #### Runner
286
370
 
371
+ - Show all lines of a test's message in results ([2b01395](https://github.com/robotcodedev/robotcode/commit/2b01395928f6025413ca787f2d67f3ff1af0694f))
372
+
373
+ `robotcode results show`, `summary --failed` and `diff` showed only the
374
+ first line of a test's message, also with `--message-chars 0`. They now
375
+ show as many whole lines as fit into `--message-chars`, with a count of
376
+ the lines left out; `results summary` takes `--message-chars` too, and
377
+ `results compare` shows the lines in one cell.
378
+
287
379
  - Write the output of results and discover in ASCII ([51b9b9b](https://github.com/robotcodedev/robotcode/commit/51b9b9bba0bfc9f1c0e3d8ea4252a8b4c3b8586e))
288
380
 
289
381
  On Windows, `robotcode results` stopped with exit code 128 and printed
@@ -344,6 +436,16 @@ All notable changes to this project will be documented in this file. See [conven
344
436
 
345
437
  ### <!-- 2 -->Documentation
346
438
 
439
+ #### Config
440
+
441
+ - Describe expr and if as simple queries, not a sandbox ([a61a4b1](https://github.com/robotcodedev/robotcode/commit/a61a4b16a4fe0aa1a43b3f6e8f78bfe2a6caed60))
442
+
443
+ The descriptions of `expr` and `if` in robot.toml no longer promise a
444
+ security restriction: the available names keep these expressions simple,
445
+ and the configuration must come from a trusted source like the rest of
446
+ the project.
447
+
448
+
347
449
  #### VS Code
348
450
 
349
451
  - Say that errors that end the REPL stay in its terminal ([2013cdc](https://github.com/robotcodedev/robotcode/commit/2013cdc7f5ecf5dc7fcbee8cb49aecdcd4f76460))
@@ -469,6 +571,15 @@ All notable changes to this project will be documented in this file. See [conven
469
571
  the pages of the new sitemap.
470
572
 
471
573
 
574
+ #### Contributing
575
+
576
+ - Apply the AI policy to security reports ([df65998](https://github.com/robotcodedev/robotcode/commit/df6599865d080fd94646e15dcdbba5834a3ac3ca))
577
+
578
+ Security reports name the AI tools they used, are reproduced against the
579
+ latest release, and explain their score; the maintainers set the final
580
+ severity, and the fast track follows that assessment.
581
+
582
+
472
583
 
473
584
  ### <!-- 4 -->Refactor
474
585
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: robotcode
3
- Version: 2.9.0-dev.214
3
+ Version: 2.9.0-dev.264
4
4
  Summary: Command line interface for RobotCode
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -34,35 +34,35 @@ Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
34
34
  Classifier: Topic :: Utilities
35
35
  Classifier: Typing :: Typed
36
36
  Requires-Python: >=3.10
37
- Requires-Dist: robotcode-core==2.9.0-dev.214
38
- Requires-Dist: robotcode-plugin==2.9.0-dev.214
39
- Requires-Dist: robotcode-robot==2.9.0-dev.214
37
+ Requires-Dist: robotcode-core==2.9.0-dev.264
38
+ Requires-Dist: robotcode-plugin==2.9.0-dev.264
39
+ Requires-Dist: robotcode-robot==2.9.0-dev.264
40
40
  Provides-Extra: all
41
41
  Requires-Dist: docutils; extra == 'all'
42
42
  Requires-Dist: pyyaml>=5.4; extra == 'all'
43
- Requires-Dist: robotcode-analyze==2.9.0-dev.214; extra == 'all'
44
- Requires-Dist: robotcode-debugger==2.9.0-dev.214; extra == 'all'
45
- Requires-Dist: robotcode-language-server==2.9.0-dev.214; extra == 'all'
46
- Requires-Dist: robotcode-repl-server==2.9.0-dev.214; extra == 'all'
47
- Requires-Dist: robotcode-repl==2.9.0-dev.214; extra == 'all'
48
- Requires-Dist: robotcode-runner==2.9.0-dev.214; extra == 'all'
43
+ Requires-Dist: robotcode-analyze==2.9.0-dev.264; extra == 'all'
44
+ Requires-Dist: robotcode-debugger==2.9.0-dev.264; extra == 'all'
45
+ Requires-Dist: robotcode-language-server==2.9.0-dev.264; extra == 'all'
46
+ Requires-Dist: robotcode-repl-server==2.9.0-dev.264; extra == 'all'
47
+ Requires-Dist: robotcode-repl==2.9.0-dev.264; extra == 'all'
48
+ Requires-Dist: robotcode-runner==2.9.0-dev.264; extra == 'all'
49
49
  Requires-Dist: robotframework-robocop>=6.0.0; extra == 'all'
50
50
  Provides-Extra: analyze
51
- Requires-Dist: robotcode-analyze==2.9.0-dev.214; extra == 'analyze'
51
+ Requires-Dist: robotcode-analyze==2.9.0-dev.264; extra == 'analyze'
52
52
  Provides-Extra: debugger
53
- Requires-Dist: robotcode-debugger==2.9.0-dev.214; extra == 'debugger'
53
+ Requires-Dist: robotcode-debugger==2.9.0-dev.264; extra == 'debugger'
54
54
  Provides-Extra: languageserver
55
- Requires-Dist: robotcode-language-server==2.9.0-dev.214; extra == 'languageserver'
55
+ Requires-Dist: robotcode-language-server==2.9.0-dev.264; extra == 'languageserver'
56
56
  Provides-Extra: lint
57
57
  Requires-Dist: robotframework-robocop>=2.0.0; extra == 'lint'
58
58
  Provides-Extra: repl
59
- Requires-Dist: robotcode-repl==2.9.0-dev.214; extra == 'repl'
59
+ Requires-Dist: robotcode-repl==2.9.0-dev.264; extra == 'repl'
60
60
  Provides-Extra: replserver
61
- Requires-Dist: robotcode-repl-server==2.9.0-dev.214; extra == 'replserver'
61
+ Requires-Dist: robotcode-repl-server==2.9.0-dev.264; extra == 'replserver'
62
62
  Provides-Extra: rest
63
63
  Requires-Dist: docutils; extra == 'rest'
64
64
  Provides-Extra: runner
65
- Requires-Dist: robotcode-runner==2.9.0-dev.214; extra == 'runner'
65
+ Requires-Dist: robotcode-runner==2.9.0-dev.264; extra == 'runner'
66
66
  Provides-Extra: yaml
67
67
  Requires-Dist: pyyaml>=5.4; extra == 'yaml'
68
68
  Description-Content-Type: text/markdown
@@ -49,26 +49,26 @@ classifiers = [
49
49
  "Framework :: Robot Framework :: Tool",
50
50
  ]
51
51
  requires-python = ">=3.10"
52
- dependencies = ["robotcode-core==2.9.0-dev.214", "robotcode-plugin==2.9.0-dev.214", "robotcode-robot==2.9.0-dev.214"]
52
+ dependencies = ["robotcode-core==2.9.0-dev.264", "robotcode-plugin==2.9.0-dev.264", "robotcode-robot==2.9.0-dev.264"]
53
53
  dynamic = ["version"]
54
54
 
55
55
  [project.optional-dependencies]
56
- debugger = ["robotcode-debugger==2.9.0-dev.214"]
57
- languageserver = ["robotcode-language-server==2.9.0-dev.214"]
58
- runner = ["robotcode-runner==2.9.0-dev.214"]
59
- analyze = ["robotcode-analyze==2.9.0-dev.214"]
56
+ debugger = ["robotcode-debugger==2.9.0-dev.264"]
57
+ languageserver = ["robotcode-language-server==2.9.0-dev.264"]
58
+ runner = ["robotcode-runner==2.9.0-dev.264"]
59
+ analyze = ["robotcode-analyze==2.9.0-dev.264"]
60
60
  yaml = ["PyYAML>=5.4"]
61
61
  lint = ["robotframework-robocop>=2.0.0"]
62
62
  rest = ["docutils"]
63
- repl = ["robotcode-repl==2.9.0-dev.214"]
64
- replserver = ["robotcode-repl-server==2.9.0-dev.214"]
63
+ repl = ["robotcode-repl==2.9.0-dev.264"]
64
+ replserver = ["robotcode-repl-server==2.9.0-dev.264"]
65
65
  all = [
66
- "robotcode-debugger==2.9.0-dev.214",
67
- "robotcode-language-server==2.9.0-dev.214",
68
- "robotcode-runner==2.9.0-dev.214",
69
- "robotcode-analyze==2.9.0-dev.214",
70
- "robotcode-repl==2.9.0-dev.214",
71
- "robotcode-repl-server==2.9.0-dev.214",
66
+ "robotcode-debugger==2.9.0-dev.264",
67
+ "robotcode-language-server==2.9.0-dev.264",
68
+ "robotcode-runner==2.9.0-dev.264",
69
+ "robotcode-analyze==2.9.0-dev.264",
70
+ "robotcode-repl==2.9.0-dev.264",
71
+ "robotcode-repl-server==2.9.0-dev.264",
72
72
  "PyYAML>=5.4",
73
73
  "robotframework-robocop>=6.0.0",
74
74
  "docutils"
@@ -8,6 +8,7 @@ from typing import IO, Any, List, Literal, Mapping, Optional
8
8
 
9
9
  import click
10
10
 
11
+ from robotcode.core.uri import PathMapping, set_path_mappings
11
12
  from robotcode.core.utils.cli import show_hidden_arguments
12
13
  from robotcode.core.utils.logging import LoggingDescriptor
13
14
  from robotcode.plugin import (
@@ -66,6 +67,16 @@ def _warn_about_ignored_wrapper(ctx: click.Context, app: Application) -> None:
66
67
  app.warning(f"Ignoring --wrapper: '{ctx.invoked_subcommand}' does not execute Robot Framework.")
67
68
 
68
69
 
70
+ def _parse_path_mappings(ctx: click.Context, param: click.Parameter, values: tuple[str, ...]) -> List[PathMapping]:
71
+ result = []
72
+ for value in values:
73
+ client_root, sep, local_root = value.partition("=")
74
+ if not sep or not client_root or not local_root:
75
+ raise click.BadParameter(f"'{value}' is not of the form CLIENT_URI_ROOT=LOCAL_PATH_ROOT.", ctx, param)
76
+ result.append(PathMapping(client_root, local_root))
77
+ return result
78
+
79
+
69
80
  def _set_output_options(app: Application, color: Optional[bool], pager: Optional[bool]) -> None:
70
81
  """Set the colour and pager choice of `app` from `--color/--no-color` and `--pager/--no-pager`."""
71
82
  if color is None:
@@ -372,6 +383,16 @@ class RobotCodeGroup(AliasedGroup):
372
383
  type=str,
373
384
  help="Path to the launcher script. This is an internal option.",
374
385
  )
386
+ @click.option(
387
+ "--path-mapping",
388
+ "path_mappings",
389
+ metavar="CLIENT_URI_ROOT=LOCAL_PATH_ROOT",
390
+ multiple=True,
391
+ hidden=show_hidden_arguments(),
392
+ callback=_parse_path_mappings,
393
+ help="Maps the file URIs of the client below CLIENT_URI_ROOT to the local paths below LOCAL_PATH_ROOT, and back. "
394
+ "**This is an internal option for IDE clients**",
395
+ )
375
396
  @click.option(
376
397
  "--debugpy",
377
398
  is_flag=True,
@@ -422,6 +443,7 @@ def robotcode(
422
443
  wrapper: Optional[str] = None,
423
444
  no_wrapper: bool = False,
424
445
  launcher_script: Optional[str] = None,
446
+ path_mappings: Optional[List[PathMapping]] = None,
425
447
  debugpy: bool = False,
426
448
  debugpy_port: int = 5678,
427
449
  debugpy_wait_for_client: bool = False,
@@ -447,6 +469,7 @@ def robotcode(
447
469
  app.config.output_format = format
448
470
  app.config.launcher_script = launcher_script
449
471
  app.config.default_paths = default_path
472
+ set_path_mappings(path_mappings or [])
450
473
  app.config.log_enabled = log
451
474
  app.config.log_level = log_level
452
475
  app.config.log_calls = log_calls
@@ -0,0 +1 @@
1
+ __version__ = "2.9.0-dev.264"
@@ -1 +0,0 @@
1
- __version__ = "2.9.0-dev.214"