« first day (1780 days earlier)      last day (1459 days later) » 

12:06 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060607 | Approved by OP
 
 
2 hours later…
1:48 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060626
[ EditMonitor ] Approved with 2 rejection votes: 2060645 | Edited by reviewer
 
2:13 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060652
 
2:56 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060681
 
3:19 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060695
 
4:08 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060712
 
4:23 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060732
 
5:06 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060749
[ EditMonitor ] Approved with 2 rejection votes: 2060758
 
5:29 AM
[ EditMonitor ] Edit by anonymous user approved with 1 (or more) rejection vote(s): 2060765
 
6:00 AM
[ EditMonitor ] Approved with 2 rejection votes: 2060807
[ EditMonitor ] Approved with 2 rejection votes: 2060833 | Approved by OP
 
 
1 hour later…
7:14 AM
[ EditMonitor ] Edit by anonymous user approved with 1 (or more) rejection vote(s): 2060902
 
 
3 hours later…
10:23 AM
[ EditMonitor ] Approved with 2 rejection votes: 2061232 | Approved by OP | Edited by reviewer
[ EditMonitor ] Approved with 2 rejection votes: 2061233 | Approved by OP | Edited by reviewer
 
10:51 AM
[ EditMonitor ] Edit by anonymous user approved with 1 (or more) rejection vote(s): 2061260
[ EditMonitor ] Edit by anonymous user approved with 1 (or more) rejection vote(s): 2061261 | Edited by reviewer
 
 
1 hour later…
11:52 AM
Heh, I reduced the Code Analysis warnings in my project from 82 to ~10 but now it's back to 52. >_>
Eh, the ~40 new ones are just "Do not call overridable methods in constructors".
> To fix a violation of this rule, do not call a type's virtual methods from within the type's constructors.
Well, looking at the examples at the MSDN page, it looks like it's a lot better to fix that... but that won't happen that easily. >_>
 
12:24 PM
Well, that's fixed :P
@Sam I've pushed the chess library that I was talking about a few days ago, to GitHub: github.com/ProgramFOX/Chess.NET
It's not entirely complete yet, but it's already usable :P
 
Sam
12:43 PM
@ProgramFOX Nice!
 
And it supports Mono! :D
 
Sam
:D
 
huh, Chess.NET just got some random starrer
It's one of my followers but I have no idea who he is. xD
 
1:03 PM
@ProgramFOX NOOOOOO!!!! The packages are in the repo!
 
@gunr2171 I know :(
But installing NuGet using a command line on Linux isn't trivial.
In fact, I didn't find a way to do so. >_>
As I use an online CI system (CircleCI), it looked the easiest to feed it with the packages in the repo.
But if you know a workaround, I'd be happy to hear it!
 
@ProgramFOX wget http://nuget.com/nuget.exe
mono nuget restore <sln file>
done
 
Is that the actual NuGet executable location?
All I found was a CodePlex download, and I couldn't find a way to automate that.
 
yes
let me get the doc link
> Direct download of the executable from nuget.org/nuget.exe. The executable may be placed anywhere on the file system, and in most cases should be placed in a directory that is listed in the PATH environment variable.
 
oh, good to know, thanks!
I'll update that immediately
 
1:10 PM
oh, it's .org not .com
yeah, just use the url in the doc
not what I said above
durp you also need to use the .exe when running the second command: mono nuget.exe restore <sln file>
 
Nope, you don't need the .exe
 
oh, really
ok
 
I updated the repo -- thanks!
 
:D
 
wait, I forgot to push >_>
Yeah, I really hated to include them in the repo but I thought there was no alternative.
 
1:15 PM
just don't use submodules, that makes nuget restore impossible
 
ok
I wouldn't need submodules for this repo anyway
 
cue early development of the cv bot
that's why we switched to nuget-only
 
Whoops, well I actually need the .exe, @gunr2171, I thought I didn't because I renamed it to something without .exe on my cloud.
 
ok, that's what I thought. mono needs a file to run, not a "command"
 
> WARNING: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
Unable to find version '2.6.4' of package 'NUnit'.
drats
@gunr2171 ^ Ever got that?
 
1:18 PM
uh, no. let me do a test on my system
 
A Stack Overflow post says that I have to import certificates.
 
oh, becuase it's https
what OS are you running?
ubuntu?
 
Ubuntu
 
ok, i think i know this one...
> The package ca-certificates-mono should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.
sudo apt-get install ca-certificates-mono
that should work...
 
I just pushed something else to try, let's see what that does...
Good, that was a failure. xD
It cannot find ca-certificates-mono, @gunr2171.
 
1:23 PM
on the top of that page, run all the lines in the first code block
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
 
Hmm... what if I just do the HTTP download? :P
 
if that works, would be easier
if it lets you
 
going to try that
 
i think it's going to redirect you to https
kevin@exfa0134880 /tmpî‚° wget nuget.org/nuget.exe
--2015-08-31 09:24:13--  nuget.org/nuget.exe
Resolving www.nuget.org (www.nuget.org)... 191.236.146.247
Connecting to www.nuget.org (www.nuget.org)|191.236.146.247|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: nuget.org/nuget.exe [following]
--2015-08-31 09:24:26--  nuget.org/nuget.exe
Connecting to www.nuget.org (www.nuget.org)|191.236.146.247|:443... connected.
HTTP request sent, awaiting response... 302 Found
 
wait, that won't even work because the problems are with Mono, not with wget
 
1:25 PM
hum....
so it's the build computer you care about, right? how is mono installed on that?
 
@gunr2171 I installed mono-mcs. mono-complete didn't work, so I installed only the part I needed.
Trying the apt-key thing now.
> Unhandled Exception:
System.ArgumentNullException: Argument cannot be null.
Say what, NuGet?
 
?
weird...
I know if you do the apt-key, then you will be able to apt-get install mono-complete ca-certificates-mono
 
Yeah, the certificates work fine now, but it's that exception that gets thrown.
 
hum... run as sudo?
i'm not finding much on google about this
 
neither do I
I'll try the sudo.
No change with sudo.
I'm afk for 1-2 hours, will look into it more when I'm back.
 
1:35 PM
drats. Yeah, i'm not sure why that isn't working
have fun!
 
 
2:04 PM
@ProgramFOX there is no packages.config for your main project
oh wait, you don't need it. nevermind
 
2:48 PM
ok, I made a docker image based on ubuntu, can't reproduce the issue
when you get back i'll share it
 
I'm back.
 
welcome back
 
@gunr2171 Well, I cannot reproduce on my cloud either.
 
here's the dockerfile I'm using
FROM ubuntu:latest

# setup mono
RUN \
 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
 echo "deb download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list && \
 apt-get update

# install mono
RUN apt-get install -y \
 mono-complete \
 ca-certificates-mono

# set working dir for compile operations
RUN mkdir -p /home/compile/workspace
WORKDIR /home/compile/workspace

# install other utilities
I had to pull from my fork, which is downgraded to .net 4.0
but that has nothing to do with nuget restore
 
@gunr2171 You can also just do sudo apt-get install nunit-console instead of the unzip, can't you?
 
2:59 PM
hold on a sec
 
I might have to keep trying to install mono-complete, which failed before...
 
and back. I don't know if that's a package, let me check
 
mono-complete is a apt-get package
I'm now trying mono-runtime + mono-mcs
nope, still fails...
 
@ProgramFOX I thought only if you do the apt-key things. or maybe newer versions of ubuntu have that by default
 
Well, it worked on my cloud without apt-keys.
But perhaps I should try to add some keys, indeed.
but wait, I already have the key that might be required; the one for the certs
 
3:07 PM
that's why I'm doing all of this in docker, instant-fresh environment
ok, yes, nunit-console is a package, make that easier
yeah, still can't reproduce it, works just fine for me
restore + build + unit tests
 
Yeah, it works on my cloud, but I can't tell why it doesn't on CircleCI...
I'll keep trying things on another branch until I've found a solution.
 
ok, you can also try out my fork in case it's a .net framework thing
 
Hmm... perhaps.
 
you are making a class library with .net 4.5.2, which is really high
 
I have /p:TargetFrameworkVersion=v4.5 flag.
 
3:13 PM
oh, the project itself had 4.5.2
 
And it worked if I still had the packages/ folder.
 
ok.. that's just strange
 
... okay, I'll just try another CI site :P
I don't think Circle likes C#.
 
shrug maybe?
 
Seriously? Same error on Travis >_>
 
3:27 PM
uhhhh...
 
> Our new container infrastructure uses Docker under the hood.
Aha!
If it worked in Docker for you, I'll upgrade to that infrastructure.
However, you cannot use sudo if you use that... oh well, I'll just test to see if it works.
Nope, it doesn't...
 
brb
 
@gunr2171 I found this blog stating that it's no problem at all to include your packages in a VCS. So I'm just going to do that -- it fixes all my problems anyway.
 
3:47 PM
@ProgramFOX for the record, that argument can be used for any package manager, not just nuget. But hey, if it fixes your error, then fine.
 
I haven't seen another way to fix the error, so.
 
Sam
I've missed most of this convo, but what's the error you're getting?
 
2 hours ago, by ProgramFOX
> Unhandled Exception:
System.ArgumentNullException: Argument cannot be null.
 
@Sam I cannot use NuGet on Continuous Integration.
^ I get that thing, indeed
 
Sam
Hmm.
 
3:52 PM
which is weird, because we can't reproduce it on a non-CI computer
scroll up is my dockerfile which works
 
Sam
So it fails to fetch the packages or something?
 
it fails to run the nuget program
 
Sam
:o
Which CI is this?
 
both circle ci and travis ci
 
Both CircleCI and Travis CI.
 
Sam
3:53 PM
Have you tried appveyor?
 
no
but I want to ensure that it runs on Mono too
 
Sam
Runs? Or compiles?
 
Compiles + all tests passing
 
but you need to nuget restore before you can compile
 
Sam
Right.
Brb.
 
3:57 PM
for the record, what is the exact line you are running to do the nuget restore?
 
Sam
(In the middle of some diy; send a search party if I don't return within 24 hours. :p)
 
mono ./nuget.exe restore ChessDotNet.sln
 
maybe take out the ./?
(i doubt it will help though)
 
Ugh, I've already reverted everything.
 
oh, never mind then
tested on my system, no different.
 
3:59 PM
Well, I cannot get it to work on Travis even with the packages/, so I'll just only run it on Circle.
 
this is seriously weird
 
notices inbox filled with failure emails
 
nope, it's not a .net 4.5.2 thing. nuget still restores with that version
yeah, I have no idea
(granted, my mono version doesn't want to compile it)
so that's different
@ProgramFOX do you know what version of mono you are running (mono --version)?
 
4:20 PM
On CircleCI? I'll see if I can run random commands somehow.
 
and/or just slip that command in when you do a test
 
Going to retrigger a build with SSH enabled, then ssh into the container.
 
Mono JIT compiler version 4.0.3 (Stable 4.0.3.20/d6946b4 Tue Aug  4 09:43:57 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen
 
> You can SSH into this build. Use the same SSH public key that you use for GitHub.
But what if I told you, that I don't have a key for GitHub? sigh
oh well, I'll try to slip in the mono --version thing next time I make a change, I don't feel like messing with ssh now :p
 
ok, just curious if you have a different version, which may explain it
 
4:25 PM
I doubt it, because I run sudo apt-get update before installing mono.
 
true, but you're doing mono-xbuild mono-mcs, which may be something different. should not be, but just something to check
 
I do that because mono-complete doesn't work, and those are the only two components that I actually need.
 
I think this is all one big conspiracy
 
Yeah. The Mono developers probably hate chess, and like checkers instead, so they don't want my thing to build.
:P
 
user image
2
and now that I've wasted a good 10 minutes goofing off, time for some lunch
 
4:35 PM
LOL
 
 
1 hour later…
5:45 PM
[ EditMonitor ] Approved with 2 rejection votes: 2061987
 
6:04 PM
http://www.commitstrip.com/en/2015/08/31/fixing-a-bug-when-the-whole-world-seems-to-be-against-you/
CommitStrip - Blog relating the daily life of web agencies developers
Fixing a bug when the whole world seems to be against you
CommitStrip
1441044006
 
 
4 hours later…
10:03 PM
[ EditMonitor ] Approved with 2 rejection votes: 2062333 | Approved by OP
 
 
2 hours later…
11:57 PM
[ EditMonitor ] Approved with 2 rejection votes: 2062420 | Approved by OP
 

« first day (1780 days earlier)      last day (1459 days later) »