How to solve ‘libcurl’ not found with Rails on Windows

Answer that worked for me (W10/Ruby2.6.0) was: Download cURL from the following URL: https://curl.haxx.se/windows/ (I chose 64bit because that’s the system I’m using) Go into the archive and browse to /bin Locate libcurl_x64.dll (it may be just libcurl.dll) Extract to your local drive Rename it to libcurl.dll if it has the _x64 suffix Cut + … Read more

RubyMine doesn’t see gems from bundle in Docker on Mac OS

I also struggled with the same problem. Managed to fix it by setting this parameters in ~/.zshc user profile. You might have different RUBY_PATH, feel free to change it. export RUBY_PATH=/usr/local/opt/ruby/bin export PATH=”$RUBY_PATH:$PATH” export RUBY_VERSION=$($RUBY_PATH/ruby -e “puts RUBY_VERSION”) export PATH=”/usr/local/lib/ruby/gems/$RUBY_VERSION/bin:$PATH” export GEM_HOME=”$HOME/.gem” export GEM_PATH=”$GEM_HOME/ruby/$RUBY_VERSION” You can also take it from this gist

How to Send RubyMine Notifications to Growl?

May be This code will help you # -*- ruby -*- module Autotest::RedGreen Autotest.send(:alias_method, :real_ruby, :ruby) Autotest.send(:define_method, :ruby) do |*args| real_ruby + %[ -rrubygems -e “require ‘redgreen'” ] end # Clean the output so other modules can work correctly Autotest.add_hook :ran_command do |at| at.results.each do |r| r.gsub!(“\033[31m”, “”) r.gsub!(“\033[32m”, “”) r.gsub!(“\033[33m”, “”) r.gsub!(“\033[0m”, “”) end … Read more

Running a spec in RubyMine results in “cannot load such file — teamcity/spec/runner/formatter/teamcity/formatter (LoadError)”

Run spring stop on the command line before running rake from RubyMine, or running specs directly, or doing anything else that uses spring. You don’t need to do this every time you run rake or specs or whatever in RubyMine, only if you previously started spring by running rake or doing something else that starts … Read more

IDE comment keywords

I can speak of Eclipse, you can customize it. Click on Window -> Preferences, and search for General -> Editors -> Structured Text Editors -> Task tags, or for Java -> Compiler -> Task tags (there might be some additional ones like for JavaScript, PHP, StatET, etc.) TODO, FIXME, XXX I use some additional ones … Read more

Webstorm not recognising JavaScript file

So I see three possible reasons for the problem: The file was marked as ‘Plain text’ There is a pattern for ‘Text files’ file type that matches this file (or back: file type ‘JavaScript’ exclude this file name). See image below There is a custom plugin that overrides default behavior for files with this name … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)