gliviu / autocomplete-robot-framework Goto Github PK
View Code? Open in Web Editor NEWAn autocomplete-plus provider for Robot Framework
Home Page: https://atom.io/packages/autocomplete-robot-framework
License: MIT License
An autocomplete-plus provider for Robot Framework
Home Page: https://atom.io/packages/autocomplete-robot-framework
License: MIT License
Autocomplete for selenium2library and also SeleniumLibrary stopped working after update to version 3+.
I have in test data this kind of remote library import:
Library Remote http://192.168.x.y:8270 WITH NAME MySpecialLibrary
It fails in Reload autocomplete data
like this:
File: MySpecial_test.robot
Status: Parsed/Ok
Path: C:\repos\MySpecialLibrary\src\acceptance_tests\MySpecial_test.robot
Libraries
BuiltIn
Status: Loaded
Source: C:\Python27\lib\site-packages\robot\libraries\BuiltIn.py
Libdoc: C:\Users\MY~1\AppData\Local\Temp\robot-lib-cache\BuiltIn.xml
Remote
Status: Errors occurred during loading
Error:
Unexpected error: Getting keyword names from library 'Remote' failed: Calling dynamic method 'get_keyword_names' failed: Connecting remote server at http://127.0.0.1:8270 failed: [Errno 10061] No connection could be made because the target machine actively refused it, Traceback (most recent call last):
File "C:\Users\my_name\.atom\packages\autocomplete-robot-framework\lib\library_cache.py", line 154, in _store_libraries
xml_libdoc_path = _generate_libdoc_xml(library_name, cache_dir)
File "C:\Users\my_name\.atom\packages\autocomplete-robot-framework\lib\library_cache.py", line 125, in _generate_libdoc_xml
libdoc = LibraryDocumentation(library_or_resource=library_name)
File "C:\Python27\lib\site-packages\robot\libdocpkg\__init__.py", line 35, in LibraryDocumentation
libdoc = builder.build(library_or_resource)
File "C:\Python27\lib\site-packages\robot\libdocpkg\robotbuilder.py", line 32, in build
lib = TestLibrary(name, args)
File "C:\Python27\lib\site-packages\robot\running\testlibraries.py", line 54, in TestLibrary
lib.create_handlers()
File "C:\Python27\lib\site-packages\robot\running\testlibraries.py", line 100, in create_handlers
self._create_handlers(self.get_instance())
File "C:\Python27\lib\site-packages\robot\running\testlibraries.py", line 222, in _create_handlers
% (self.name, message), details)
DataError: Getting keyword names from library 'Remote' failed: Calling dynamic method 'get_keyword_names' failed: Connecting remote server at http://127.0.0.1:8270 failed: [Errno 10061] No connection could be made because the target machine actively refused it
Source: n/a
Libdoc: n/a
Resources
No resources imported
If I create xml from library locally and change library import to Library MySpecialLibrary
it works OK.
Versions:
autocomplete-robot-framework 3.4.0
atom 1.25.0 x64
robotframework 3.0.2
Python 2.7.13
Windows 10
Hi!
I just started to use this plugin and its amazing.
I noticed that XML library that is included as standard in RF is not suggesting anything.
I am using RF 3.2.2
Could you take a look?
Thanks,
Edd
When a keyword contains a special character (like the french ones é è ê à ...) the autocomplete list becomes empty just when that character is typed.
For example, with a keyword "The é char is here". When "The" is typed (with or without Ctrl+Space), the list contains keywords. But just when the "é" is typed the list becomes empty although there is a keyword containing the typed string.
Arguments to path.basename
must be strings
Object.basename (C:\Users\rufo0618\AppData\Local\atom\app-1.39.1\resources\app.asar\src\electron-shims.js:34:10)
getKeywordSuggestions (C:\Users\rufo0618\.atom\packages\autocomplete-robot-framework\lib\autocomplete.js:116:41)
Object.getSuggestions (C:\Users\rufo0618\.atom\packages\autocomplete-robot-framework\lib\autocomplete.js:17:28)
<unknown> (C:\Users\rufo0618\.atom\packages\autocomplete-robot-framework\lib\autocomplete-plus-provider.js:438:40)
Promise (null:null:null)
Object.getSuggestions (C:\Users\rufo0618\.atom\packages\autocomplete-robot-framework\lib\autocomplete-plus-provider.js:434:12)
Hello,
I generated libdoc xml file for my library and pasted it inside fallback libraries directory. The names of keywords with embedded arguments contain "
which get converted to "
during libdoc generation. The autocomplete suggests keywords with "
instead of "
because of this. Can you please add support to convert html entities to equivalent ascii characters?
Intended autocomplete: calculate sum of "${number_1}" and "${number_2}"
XML File
<?xml version="1.0" encoding="UTF-8"?>
<keywordspec name="keywords" type="resource" format="ROBOT" generated="20200228 14:21:07">
<version></version>
<scope></scope>
<namedargs>yes</namedargs>
<doc>Documentation for resource file ``keywords``.</doc>
<kw name="calculate sum of "${number_1}" and "${number_2}"">
<arguments>
</arguments>
<doc>| *Description* | Return the sum of two numbers |
| *Arguments* | number_1, number_2 |
| *Usage* | calculate sum of "${number_1}" and "${number_2}" |
| *Returns* | Integer value as sum |
| *Author* | Name (cec) |</doc>
<tags>
<tag>example</tag>
</tags>
</kw>
</keywordspec>
When auto-complete try to show the inside value, this warning shows in the dev tool console:
TrustedTypes policy dompurify could not be created
ps. every time i type something this "TrustedTypes" pop up in console again
And it's not auto-completing and literally working... Any advice?
Windows 10 Pro
ps. Turned off adguard, bitdefender total security (in case if it is)
https://i.imgur.com/TMcCP0T.png
edit1:
RF 4.0
edit2:
Library manager: {
"BuiltIn": {
"name": "BuiltIn",
"status": "success",
"xmlLibdocPath": "C:\Users\dabko\AppData\Local\Temp\robot-lib-cache\BuiltIn.xml",
"sourcePath": "C:\Users\dabko\AppData\Local\Programs\Python\Python39\lib\site-packages\robot\libraries\BuiltIn.py"
},
"Collections": {
"name": "Collections",
"status": "success",
"xmlLibdocPath": "C:\Users\dabko\AppData\Local\Temp\robot-lib-cache\Collections.xml",
"sourcePath": "C:\Users\dabko\AppData\Local\Programs\Python\Python39\lib\site-packages\robot\libraries\Collections.py"
},
"DatabaseLibrary": {
"name": "DatabaseLibrary",
"status": "success",
"xmlLibdocPath": "C:\Users\dabko\AppData\Local\Temp\robot-lib-cache\DatabaseLibrary.xml",
"sourcePath": "C:\Users\dabko\AppData\Local\Programs\Python\Python39\lib\site-packages\DatabaseLibrary\init.py"
},
"Browser": {
"name": "Browser",
"status": "success",
"xmlLibdocPath": "C:\Users\dabko\AppData\Local\Temp\robot-lib-cache\Browser.xml",
"sourcePath": "C:\Users\dabko\AppData\Local\Programs\Python\Python39\lib\site-packages\Browser\init.py"
}
}
[Enter steps to reproduce:]
Atom: 1.38.2 ia32
Electron: 2.0.18
OS: Unknown Windows version
Thrown From: autocomplete-robot-framework package 3.6.0
Failed to activate the autocomplete-robot-framework package
At Arguments to CompositeDisposable.add must have a .dispose() method
TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
at assertDisposable (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:1210129)
at CompositeDisposable.add (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:1211097)
at Object.consumeProvider (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:162220)
at Object.consumeProvider_2 (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:161918)
at Provider.t.exports.Provider.provide (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:14:1116477)
at ServiceHub.t.exports.ServiceHub.provide (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3534008)
at Package.activateServices (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3542194)
at Package.activateNow (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3539249)
at measure (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3538573)
at Package.measure (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3536204)
at activationPromise.activationPromise.Promise (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3538433)
at new Promise (<anonymous>)
at Package.activate (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:3538376)
at PackageManager.activatePackage (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:381112)
at ~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:934678
at r (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:11:929284)
at n (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:14:1119384)
at e.bufferStream (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:14:1119472)
at Socket.e.on (~/AppData/Local/atom/app-1.38.2/resources/app/static/<embedded>:14:1118140)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
-7:15.9.0 editor:select-to-first-character-of-line (input.hidden-input)
-6:50.8.0 core:backspace (input.hidden-input)
-6:46 editor:select-to-first-character-of-line (input.hidden-input)
-6:26.7.0 Robot Framework:Show autocomplete status (input.hidden-input)
-3:39.2.0 Robot Framework:Print autocomplete debug info (pre.native-key-bindings)
-3:31.3.0 script:run-by-line-number (pre.native-key-bindings)
-2:27.6.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui.find-visible)
-2:24.6.0 script:run-by-line-number (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui.find-visible)
18x -2:19.4.0 intentions:highlight (input.hidden-input)
2x -2:09.4.0 editor:select-to-first-character-of-line (input.hidden-input)
3x -1:59.3.0 core:backspace (input.hidden-input)
-1:57.2.0 core:delete (input.hidden-input)
-1:56.9.0 intentions:highlight (input.hidden-input)
-1:56.8.0 core:save (input.hidden-input)
-1:54.9.0 intentions:highlight (input.hidden-input)
-1:54.7.0 core:save (input.hidden-input)
autocomplete-python 1.14.1
autocomplete-robot-framework 3.6.0
busy-signal 2.0.1
git-diff-details 1.4.0
highlight-selected 0.16.0
hyperclick 0.1.5
hyperclick-robot-framework 1.9.0
intentions 1.1.5
language-robot-framework 2.4.0
linter 2.3.0
linter-python-pep8 0.2.0
linter-ui-default 1.7.1
minimap 4.29.9
minimap-cursorline 0.2.0
minimap-find-and-replace 4.5.2
minimap-git-diff 4.3.1
minimap-highlight-selected 4.6.1
minimap-selection 4.5.0
pretty-json 2.1.2
python-autopep8 0.1.3
python-tools 0.6.9
script 3.18.1
split-diff 1.6.0
Unfortunately this package does not support Gherkin notation, which robot-framework does support.
All of my test cases use this notation meaning each test step start with a preposition (AND, WHEN, THEN).
This is breaking the auto-completion unfortunately, thus I always have to delete my prepositions first when I want to check the keyword definition, which is kind of annoying.
Is there any plan to implement Gherkin support for autocompletion?
Ps: this is still the best autocompletion plug-in for robot that I found :-)
[Enter steps to reproduce:]
Atom: 1.23.0 x64
Electron: 1.6.15
OS: Microsoft Windows 7 Enterprise
Thrown From: autocomplete-robot-framework package 3.3.0
Failed to load the autocomplete-robot-framework package
At Cannot find module 'minimatch'
Error: Cannot find module 'minimatch'
at Module._resolveFilename (module.js:470:15)
at Module._resolveFilename (~/AppData/Local/atom/app-1.23.0/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.23.0/resources/app/src/module-cache.js:354:58)
at Module.require (/app.asar/static/index.js:40:43)
at require (~/AppData/Local/atom/app-1.23.0/resources/app/src/native-compile-cache.js:66:33)
at /packages/autocomplete-robot-framework-3.3.0/lib/autocomplete-plus-provider.js:5:19)
at /packages/autocomplete-robot-framework-3.3.0/lib/autocomplete-plus-provider.js:463:26)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.23.0/resources/app/src/native-compile-cache.js:106:36)
at Object.value [as .js] (~/AppData/Local/atom/app-1.23.0/resources/app/src/compile-cache.js:239:29)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (/app.asar/static/index.js:47:45)
at require (~/AppData/Local/atom/app-1.23.0/resources/app/src/native-compile-cache.js:66:33)
at /packages/autocomplete-robot-framework-3.3.0/lib/main.js:7:33)
at /packages/autocomplete-robot-framework-3.3.0/lib/main.js:87:2)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.23.0/resources/app/src/native-compile-cache.js:106:36)
at Object.value [as .js] (~/AppData/Local/atom/app-1.23.0/resources/app/src/compile-cache.js:239:29)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (/app.asar/static/index.js:47:45)
at require (internal/module.js:20:19)
at customRequire (~/AppData/Local/atom/app-1.23.0/resources/app/static/<embedded>:96:26)
at Package.module.exports.Package.requireMainModule (~/AppData/Local/atom/app-1.23.0/resources/app/src/package.js:937:35)
at ~/AppData/Local/atom/app-1.23.0/resources/app/src/package.js:160:34
at Package.module.exports.Package.measure (~/AppData/Local/atom/app-1.23.0/resources/app/src/package.js:99:21)
at Package.module.exports.Package.load (~/AppData/Local/atom/app-1.23.0/resources/app/src/package.js:145:18)
at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.23.0/resources/app/src/package-manager.js:618:16)
at config.transact (~/AppData/Local/atom/app-1.23.0/resources/app/src/package-manager.js:531:20)
autocomplete-robot-framework 3.3.0
language-robot-framework 2.2.0
Hello!
My autocomplete-robot-framework plugin stopped working a few days ago, I didn't update anything and I didn't even update my ATOM. The plugin is working in parts, it is only suggesting keywords for my resources and no longer suggests the keywords of the libraries declared in the settings of my file. My Robot Framework course students have been reporting the same problem with them for a few weeks. Are you aware of anything that is preventing the plugin from working completely?
My ATOM: 1.48.0
My Operating System: Windows 10 Pro
My plugin: 3.8.0
Argument to path.extname
must be a string
Object.extname (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:20:10)
buildImportedResource (/Users/NattapolWilarat/.atom/packages/autocomplete-robot-framework/lib/keywords.js:127:26)
Array.map (native)
addKeywords (/Users/NattapolWilarat/.atom/packages/autocomplete-robot-framework/lib/keywords.js:136:44)
Object.addResource (/Users/NattapolWilarat/.atom/packages/autocomplete-robot-framework/lib/keywords.js:113:3)
reloadAutocompleteDataForEditor (/Users/NattapolWilarat/.atom/packages/autocomplete-robot-framework/lib/autocomplete-plus-provider.js:222:20)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.