For months I've been using Sublime 3 to edit Python, Typescript, and CSS files. It works fine.
Now I'm trying to use it to edit Jasmine test files. In anticipation of this I installed this package: https://github.com/NicoSantangelo/sublime-jasmine
However, all of the Jasmine keywords like "describe", "beforeEach", "expect", etc. are all highlighted as errors. I've tried following the plugin instructions but nothing seems to work to fix this.
Might anyone know how to get things working properly?
Robert
Related
I want that when i create my .feature file, i want some extension in vscode which generates a step definition file in java. I have seen many such extensions for js but not for java.
I tried downloading many extensions but no one worked for java.
Please. Here you are. This plugin supports it.
Features
Autocomplete of Gherkin steps
Go to step definition
Generate step definition
Syntax highlighting
Formatting (pretty printing)
Language support
C#/SpecFlow
Go/Godog - help needed
Java
JavaScript
PHP
Python/Behave
Ruby
Rust
TypeScript
https://marketplace.visualstudio.com/items?itemName=CucumberOpen.cucumber-official#generate-step-definition
It works. I have checked
I have setup a new rails 7 project with Bootstrap 5.2 and Sass, however when it comes to adding in custom styling (with Sass) Rails appears to not be compiling the Sass styling into app/assets/stylesheets/application.css. I have no errors to go off here and after spending far too long on the problem, decided to start fresh with the following setup instructions - https://railsbytes.com/public/templates/V2Gsg9
I had to remove the #import "bootstrap" code below as this throws a compilation error.
append_file 'app/assets/stylesheets/application.scss', <<-CODE
#import "bootstrap";
CODE
I'm unsure if this is relevant to the issue, however I was having issues with the bootstrap setup, where the JavaScript was not working, and followed the following setup from another stackoverflow https://stackoverflow.com/questions/70907799/bootstrap-5-javascript-functions-not-working-in-rails-7-app which has fixed this issue.
In summary, the only problem I'm now facing is that the css is not compiling. I found a number of other resources related to the same issue, however the setup is slightly different and when I try to run the solutions provided it does not work. I have seen multiple posts suggesting to attempt to run rails assets:precompile, which I did, however it broke all the styling setup and couldn't revert it back for some reason (part of the reason whey I started on a new project).
In addition to the new setup, I also tried this suggestion by "stevec" in the following https://stackoverflow.com/questions/71300845/custom-css-not-working-with-css-bundling-for-rails-7. This works, however it doesn't seem to be the Rails way of doing things. This suggests each stylesheet needs to be added to the app/assets/config/manifest.js and also to the application.html.erb file. To my understanding, each view should have its own style sheet which is then imported into application.css.
I feel I'm close to the solution but am finding it challenging at the moment to understand the documentation on the asset pipeline... Some recommendations suggest to install yarn/npm however I thought that's the benefit/job of importmap so have not gone down that path
I'm sure there's a sensible explanation for this, but I get weird auto complete suggestions in sublime text 3 when coding in ruby or a ruby section in a markdown. Examples - I was hoping it would suggestion the .capitalize method, but instead:
In .md file:
In .rb file:
What I've tried
I looked in my autocomplete preferences, but I don't see anything out of place:
// Enable auto complete to be triggered automatically when typing.
"auto_complete": true,
Question
Why the autocomplete is making bizarre suggestions?
The auto_complete feature of sublime text 3 just scans the files inside of the folder structures and provides those "words" as autocomplete. What you are looking for is called CodeIntel or intelli-sense. Unfortunately those features are usually only available on full blown IDEs.
Sublime has some plugins which are a bit old but should still work:
https://packagecontrol.io/packages/Ruby%20Completions (last update 6 years ago)
https://packagecontrol.io/packages/SublimeCodeIntel (last update 4 years ago)
As an alternative you could use LSP but this requires that you have specific language servers installed:
https://packagecontrol.io/packages/LSP (recent updates)
I am new to SASS. I am using this as a guide to learn Bourbon -
http://www.git-tower.com/learn/bourbon-neat-bitters/getting-ready/introduction
I followed all the instructions and it displays fine on my local machine. But when I edit _layout.scss, it doesn't compile to styles.css. I installed Compass and had it watch the project folder, but same results. My changes won't take.
Am I missing a step?
This is likely more of a sass importing/file-name issue than anything specifically with bourbon. I'd check out http://sass-lang.com/guide . Sass-lang put together a really nice guide to sass that includes things like imports, etc.
Also, Compass app can bring some things to the party that can conflict with Bourbon. I'd recommend using the sass app or a desktop app like https://prepros.io which can be easier starting out.
Hope this helps 🍻
I have WebStorm and really like it. I don't use PHP very often, but I'm working on a project that uses it...
So, I'm trying to get basic syntax highlighting in WebStorm.
I've tried using this plugin already (incompatible):
http://plugins.jetbrains.com/plugin/6610
And I've followed the steps in these threads:
Webstorm: how to extend to handle PHP files or even just higlight code correctly?
Is it possible to get Ruby syntax highlighting in PHPStorm?
I am using this textmate bundle:
https://github.com/textmate/php.tmbundle
It's being recognized by WebStorm, and the proper files are being associated with TextMate bundles, yet I still have no syntax highlighting.
At this point, I've just written all the stuff without the highlighting, but it seems a bit ridicules that I cannot get it to work.
I sent an email to technical support, and they just pointed me back to those resources and then suggested that I buy PHPStorm. And the IDE keeps suggesting that I buy IntelliJ IDEA Ultimate.
Has anybody else run into this problem?
https://github.com/textmate/php.tmbundle bundle uses non-documented 'injection' - feature that's not currently supported - thus no highlighting is actually recognized. See RUBY-14273