robotcode-robot 0.97.0__tar.gz → 0.98.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/PKG-INFO +2 -2
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/pyproject.toml +1 -1
- robotcode_robot-0.98.0/src/robotcode/robot/__version__.py +1 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/namespace.py +32 -2
- robotcode_robot-0.97.0/src/robotcode/robot/__version__.py +0 -1
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/.gitignore +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/LICENSE.txt +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/README.md +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/__init__.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/config/__init__.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/config/loader.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/config/model.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/config/utils.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/__init__.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/data_cache.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/diagnostics_modifier.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/entities.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/errors.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/imports_manager.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/keyword_finder.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/library_doc.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/namespace_analyzer.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/py.typed +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/__init__.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/ast.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/markdownformatter.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/match.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/robot_path.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/stubs.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/variables.py +0 -0
- {robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/visitor.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.98.0
|
4
4
|
Summary: Support classes for RobotCode for handling Robot Framework projects.
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
6
6
|
Project-URL: Donate, https://opencollective.com/robotcode
|
@@ -25,7 +25,7 @@ Classifier: Topic :: Utilities
|
|
25
25
|
Classifier: Typing :: Typed
|
26
26
|
Requires-Python: >=3.8
|
27
27
|
Requires-Dist: platformdirs<4.4.0,>=3.2.0
|
28
|
-
Requires-Dist: robotcode-core==0.
|
28
|
+
Requires-Dist: robotcode-core==0.98.0
|
29
29
|
Requires-Dist: robotframework>=4.1.0
|
30
30
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
31
31
|
Description-Content-Type: text/markdown
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.98.0"
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/namespace.py
RENAMED
@@ -44,6 +44,7 @@ from robotcode.core.lsp.types import (
|
|
44
44
|
from robotcode.core.text_document import TextDocument
|
45
45
|
from robotcode.core.uri import Uri
|
46
46
|
from robotcode.core.utils.logging import LoggingDescriptor
|
47
|
+
from robotcode.core.utils.path import same_file
|
47
48
|
|
48
49
|
from ..utils.ast import (
|
49
50
|
range_from_node,
|
@@ -1242,8 +1243,37 @@ class Namespace:
|
|
1242
1243
|
|
1243
1244
|
source = self.imports_manager.find_resource(value.name, base_dir, variables=variables)
|
1244
1245
|
|
1245
|
-
|
1246
|
+
allread_imported_resource = next(
|
1247
|
+
(
|
1248
|
+
v
|
1249
|
+
for k, v in self._resources.items()
|
1250
|
+
if v.library_doc.source is not None and same_file(v.library_doc.source, source)
|
1251
|
+
),
|
1252
|
+
None,
|
1253
|
+
)
|
1254
|
+
if allread_imported_resource is not None:
|
1246
1255
|
self._logger.debug(lambda: f"Resource '{value.name}' already imported.", context_name="import")
|
1256
|
+
if top_level:
|
1257
|
+
self.append_diagnostics(
|
1258
|
+
range=value.range,
|
1259
|
+
message=f"Resource '{value.name}' already imported.",
|
1260
|
+
severity=DiagnosticSeverity.INFORMATION,
|
1261
|
+
source=DIAGNOSTICS_SOURCE_NAME,
|
1262
|
+
related_information=(
|
1263
|
+
[
|
1264
|
+
DiagnosticRelatedInformation(
|
1265
|
+
location=Location(
|
1266
|
+
uri=str(Uri.from_path(allread_imported_resource.import_source)),
|
1267
|
+
range=allread_imported_resource.import_range,
|
1268
|
+
),
|
1269
|
+
message="",
|
1270
|
+
)
|
1271
|
+
]
|
1272
|
+
if allread_imported_resource.import_source
|
1273
|
+
else None
|
1274
|
+
),
|
1275
|
+
code=Error.RESOURCE_ALREADY_IMPORTED,
|
1276
|
+
)
|
1247
1277
|
return None
|
1248
1278
|
|
1249
1279
|
if self.source == source:
|
@@ -1453,7 +1483,7 @@ class Namespace:
|
|
1453
1483
|
allread_imported_resource = self._resources_files.get(entry.library_doc.source, None)
|
1454
1484
|
|
1455
1485
|
if allread_imported_resource is None and entry.library_doc.source != self.source:
|
1456
|
-
self._resources[entry.
|
1486
|
+
self._resources[entry.library_doc.source] = entry
|
1457
1487
|
self._resources_files[entry.library_doc.source] = entry
|
1458
1488
|
if entry.variables:
|
1459
1489
|
variables = self.get_suite_variables()
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.97.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/__init__.py
RENAMED
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/data_cache.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/entities.py
RENAMED
File without changes
|
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/imports_manager.py
RENAMED
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/keyword_finder.py
RENAMED
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/library_doc.py
RENAMED
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/diagnostics/model_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.97.0 → robotcode_robot-0.98.0}/src/robotcode/robot/utils/markdownformatter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|