robotcode 2.9.0.dev230__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.
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/CHANGELOG.md +88 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/PKG-INFO +16 -16
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/pyproject.toml +13 -13
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/__init__.py +23 -0
- robotcode-2.9.0.dev264/src/robotcode/cli/__version__.py +1 -0
- robotcode-2.9.0.dev230/src/robotcode/cli/__version__.py +0 -1
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/.gitignore +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/LICENSE.txt +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/README.md +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/hatch.toml +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/__main__.py +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/commands/__init__.py +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/commands/config.py +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/commands/profiles.py +0 -0
- {robotcode-2.9.0.dev230 → robotcode-2.9.0.dev264}/src/robotcode/cli/py.typed +0 -0
|
@@ -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
|
|
@@ -70,6 +108,14 @@ All notable changes to this project will be documented in this file. See [conven
|
|
|
70
108
|
|
|
71
109
|
#### Robot
|
|
72
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
|
+
|
|
73
119
|
- Read Markdown suites like Robot Framework ([8f4a660](https://github.com/robotcodedev/robotcode/commit/8f4a660ebca82040ef3631d38677d43f204f2f3c))
|
|
74
120
|
|
|
75
121
|
With Robot Framework 7.5.1 or newer, RobotCode reads the Markdown files
|
|
@@ -159,6 +205,13 @@ All notable changes to this project will be documented in this file. See [conven
|
|
|
159
205
|
|
|
160
206
|
#### PyCharm
|
|
161
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
|
+
|
|
162
215
|
- Make "Attach Python" work in PyCharm 2026.3 ([ea0f4b8](https://github.com/robotcodedev/robotcode/commit/ea0f4b837417355080502b76523c94b9c6360f85))
|
|
163
216
|
|
|
164
217
|
A Debug run with "Attach Python" now also starts in PyCharm 2026.3, whose
|
|
@@ -251,6 +304,22 @@ All notable changes to this project will be documented in this file. See [conven
|
|
|
251
304
|
|
|
252
305
|
#### Robot
|
|
253
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
|
+
|
|
254
323
|
- Show the reason of a deprecated keyword as Robot Framework does ([481bb47](https://github.com/robotcodedev/robotcode/commit/481bb47bc07e1cf57600325943a32ccf30045115))
|
|
255
324
|
|
|
256
325
|
The hint on a call of a deprecated keyword showed a wrong or no reason for
|
|
@@ -367,6 +436,16 @@ All notable changes to this project will be documented in this file. See [conven
|
|
|
367
436
|
|
|
368
437
|
### <!-- 2 -->Documentation
|
|
369
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
|
+
|
|
370
449
|
#### VS Code
|
|
371
450
|
|
|
372
451
|
- Say that errors that end the REPL stay in its terminal ([2013cdc](https://github.com/robotcodedev/robotcode/commit/2013cdc7f5ecf5dc7fcbee8cb49aecdcd4f76460))
|
|
@@ -492,6 +571,15 @@ All notable changes to this project will be documented in this file. See [conven
|
|
|
492
571
|
the pages of the new sitemap.
|
|
493
572
|
|
|
494
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
|
+
|
|
495
583
|
|
|
496
584
|
### <!-- 4 -->Refactor
|
|
497
585
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: robotcode
|
|
3
|
-
Version: 2.9.0-dev.
|
|
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.
|
|
38
|
-
Requires-Dist: robotcode-plugin==2.9.0-dev.
|
|
39
|
-
Requires-Dist: robotcode-robot==2.9.0-dev.
|
|
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.
|
|
44
|
-
Requires-Dist: robotcode-debugger==2.9.0-dev.
|
|
45
|
-
Requires-Dist: robotcode-language-server==2.9.0-dev.
|
|
46
|
-
Requires-Dist: robotcode-repl-server==2.9.0-dev.
|
|
47
|
-
Requires-Dist: robotcode-repl==2.9.0-dev.
|
|
48
|
-
Requires-Dist: robotcode-runner==2.9.0-dev.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
57
|
-
languageserver = ["robotcode-language-server==2.9.0-dev.
|
|
58
|
-
runner = ["robotcode-runner==2.9.0-dev.
|
|
59
|
-
analyze = ["robotcode-analyze==2.9.0-dev.
|
|
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.
|
|
64
|
-
replserver = ["robotcode-repl-server==2.9.0-dev.
|
|
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.
|
|
67
|
-
"robotcode-language-server==2.9.0-dev.
|
|
68
|
-
"robotcode-runner==2.9.0-dev.
|
|
69
|
-
"robotcode-analyze==2.9.0-dev.
|
|
70
|
-
"robotcode-repl==2.9.0-dev.
|
|
71
|
-
"robotcode-repl-server==2.9.0-dev.
|
|
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.230"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|