drewda / cucumber-sublime-bundle Goto Github PK
View Code? Open in Web Editor NEWSublime bundle for Cucumber
Sublime bundle for Cucumber
When I bring up auto-complete manually in any other line than the one defining a step, for example if I try to auto-complete a word in the feature name or feature description, Sublime Text hangs. I've tried to wait for few minutes to look if it ever finishes whatever it's doing, but it never does.
I'm not sure why is this happening, I've added print('foo')
at the beginning of on_query_completions, opened the console but it was never reached.
I'm using Sublime Text 3, build 3083, Windows x64.
hi there, do you have plan to port this package to sublime text 3 anytime soon?
thanks,
Minh
ST3 on Linux.
reloading plugin Cucumber.table_cleaner
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "table_cleaner in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in <module>
ImportError: No module named 'table_commons'
reloading plugin Cucumber.table_commons
reloading plugin Cucumber.table_import
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "table_import in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in <module>
ImportError: No module named 'table_commons'
I understand this is a ST2 bundle, but is getting this working on ST3 on the radar? Just wondering, thanks!
ST3 highlighting and formatting works, but the table cleaner and the table import does not work.
Downloaded with Package Control.
Restarted
Selected this text:
Examples:
| STRING | COLUMN NAME |
| TR.FloatPercent | Float Percent |
| TR.Price52WeekHighDate | Date of Price - 52 Week High |
| TR.TotalAssetsActual | Total Assets |
| CF_CURR | Currency |
| BID | Bid |
| VOLUME | Volume |
Held ALT
key and pressed ;
key.
Nothing happened.
According to the typographic rules, in French a space precedes the two-point character.
See Behat/Gherkin#158.
Example:
English: text:[space]text
French: text[space]:[space]text
Source: http://www.la-ponctuation.com/deux-points.html
For example (being lax):
https://github.com/drewda/cucumber-sublime-bundle/blob/master/Cucumber%20Plain%20Text%20Feature.tmLanguage#L142
Replace |Exemples|
by |Exemples\s?|
.
Hi guys,
I developed a table cleaner package for Sublime Text 2, which works great for cucumber. This is the link: https://github.com/mishu91/Sublime-Text-2-Table-Cleaner
What do you think of including the table cleaner into the Cucumber bundle?
Regards,
Andrei
Today I must have gotten an auto update on this package and my autocomplete stopped working. After awhile I realized that it did work, but only on new, unsaved files. As soon as I saved the file, watching the console, I would see this:
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 358, in on_query_completions
res = callback.on_query_completions(v, prefix, locations)
File "GherkinAutoComplete in /home/dalvarez/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 103, in on_query_completions
File "GherkinAutoComplete in /home/dalvarez/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 69, in is_feature_file
TypeError: argument of type 'NoneType' is not iterable
When I uninstalled this package, everything went back to normal.
It would be nice to be able to disable the crawling of projects for step definitions.
Sublime crawls to a halt when loading large projects especially when said project includes a large bundle of gems.
Thank you for creating this bundle I use it every day to get gherkin syntax highlighting and table formatting.
In ST3 I'm finding the gherkin indexing to be very slow. I do have a large number of features (over 1000), I don't really use the auto complete I was wondering if there was a way to disable that? For now I've just deleted GherkinAutoComplete.py to get going. Thanks in advance!
Hi!
I cannot find the table settings, e.g. table_cleaner_delimiters
Also, I may have the same problem as described this issue
#33
Is anybody using this on windows with Sublime 3?
Windows line endings are shown as CR
character in auto-complete.
I don't see the syntax high-lighting working (using default theme).
ST3 is not 'new' anymore, so should we support st2 still (it's a bit annoying to do so)
According to the Gherkin's language, the italian's keywords for Given
can be Dato
,Data
,Dati
,Date
. In this package, the only translation found for Given
is Dato
whereas the others are missing. So they should be added in step_keyword
(here). Furthermore, the alias Esempio
for Scenario
is available in Gherkin yet it is still missing here. I'll open a pull request, hope you gonna merge soon.
Cheers.
Maybe because it's installed in a folder inside this bundle, but the Table Cleaner don't work.
I just installed it standalone and everything is working fine (command via command pallet and shortcut).
Following russian keywords does not highlighted, but need to:
(according to https://github.com/cucumber/gherkin/blob/master/gherkin-languages.json)
I think it would be safe to assume that now more people are using Sublime 3 than Sublime 2.
Some tools (Boxen at least) will pull Sublime plugins from Github repos (see the Boxen module for Sublime) but only from master (no way to specify a branch).
The Sublime 2 version could be kept on a branch for those who still use it.
Hello,
(I'm conscient that the project isn't followed upclose)
Just reporting that what is following the # is reported as a comment whereas it shouldn't.
Here is the following code:
And enter the login and password
| login | password |
| Mylogin | #4884 |
I have also tried to clone the repo for OSX but it does not install the package.
Is there a need to update the installation instructions?
It would be really helpful to highlight variables substituted in scenario outlines with the angle brackets < >
This seems pretty easy so I can take a crack at it.
After installing this in ST4 and restarting the application, ST4 freezes instantly on startup making this package unusable.
Unfortunately it freezes instantly so I can't access the console to see what the cause is.
hi, I'm trying to use the Given snippet in .feature file and it seems not working. Is there any chance that the missing file "Snippets/Given Step Plaintext.tmSnippet" is causing the problem? tnx
After years of using Sublime Text and writing Gerkin, I now find myself doing neither. (I'm almost nearly switched over to Visual Studio Code, and I parted ways with Cucumber on mixed terms ;)
@bubenkoff, would you like me to transfer ownership of this repo over to you and your account?
If not, I will open this invitation to another contributor to take on the project. Please note that I will be looking for a certain level of involvement before passing the project over.
When opening a step definition file the default syntax highlighting is Ruby. I manually have to chose Cucumber. Is that normal behavior or am I missing something?
This seems more like an issue with table cleaner plug-in by @amisarca
I was attempting to remove &
table delimiter in Base File.sublime-settings (line 3) because I have tables that include ampersand like example below and would only need to use |
as a delimiter:
| param1 | param2 |
| foo | foo&bar |
I ended up putting changing SEPARATOR = "&"
to SEPARATOR = "|"
in table_cleaner.py (line 17) to get around this limitation, but I was wondering if there is a more graceful solution to this.
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.