Skip to content

Instantly share code, notes, and snippets.

@hossameldeen
Last active March 23, 2017 09:02
Show Gist options
  • Save hossameldeen/389101d5d9ce95cba269e176f8aa994c to your computer and use it in GitHub Desktop.
Save hossameldeen/389101d5d9ce95cba269e176f8aa994c to your computer and use it in GitHub Desktop.

This is a (partial, because I'm lazy) list of my environment and, more importantly, list of bugs/problems & their solutions.

My constraints/environment

I'm behind a work proxy. I'm on Windows-10 64-bits, enterprise edition.

Outbash

I'm using outbash instead of bash to be able to call Windows programs from within bash. This feature should be in Microsoft's bash but seems like it's not implemented yet. Also, my current setup is basically this: For programs like git, maven: install them on Windows and call them from outbash using wcmd. Still haven't met the need to install programs on Windows-Linux subsystem.

Broken Wrapping

If you have this problem, I do this to solve it but have no idea what it means:

  • When outbash starts, I call wcmd echo. once.
  • Then, I use the bash normally. E.g, wcmd git status now wraps correctly.

Intellij

Plugins 'Browse Repositories' is empty

You may have used Auto-configuration of proxy in Intellij. Instead, manually configure it. Perhaps your company's auto-config tells it that it doesn't need proxy on some IPs and one of these IPs is Intellij's plugins repo.

SBT connection timeout

It's not enough to set proxy in intellij, you need to set it for sbt as well. In VM-parameters, add this after replace the parameters between <>: -Dhttp.proxyHost=<proxyHost> -Dhttp.proxyPort=<proxyPort> -Dhttps.proxyHost=<proxyHost> -Dhttps.proxyPort=<proxyPort> Probably, intellij already suggests you to use this parameter -XX:MaxPermSize=384M. Also, probably, your work DNS has the domain name proxy set to the correct proxy host, and probably the proxy port is 8080. So, probably, you want VM parameters of SBT to be this: -XX:MaxPermSize=384M -Dhttp.proxyHost=<proxyHost> -Dhttp.proxyPort=<proxyPort> -Dhttps.proxyHost=<proxyHost> -Dhttps.proxyPort=<proxyPort>

Spring-Boot auto-reloading

Stop judging me! I didn't say I like Spring! This link worked with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment