News for hackers. Stuff that matters.
Re:Conception - a live programming environment experiment af... by shurcooL on Saturday April 20, 2013 @04:06AM (#5580737)
You should absolutely be able to compile it under OS X 10.8 without any issues. All you need is Xcode and golang installed, the project repo has everything else. You would also need git for the git-related stuff.

What was the error you got?

I've made it compile under Ubuntu earlier [1], but there may be some issues with dependences there. This one is trickier as it's not my main dev environment (and I'm taking some shortcuts for now).

[1] https://dl.dropboxusercontent.com/u/8554242/dmitri/projects/...

Re:Conception - a live programming environment experiment af... by regis on Saturday April 20, 2013 @11:31AM (#5581688)
Actually I mis-spoke. It compiles but I'm getting an error when it tries to load the background texture. I definitely have OpenGL but I am getting some saort of OpenGL error. I will test that Ubuntu installation in a bit. Thanks.
Re:Conception - a live programming environment experiment af... by shurcooL on Saturday April 20, 2013 @03:03PM (#5582439)
Can you tell me what the error was (see the stdout + stderr output of Xcode)? I'd really like to help you get it to run, and figure out why it didn't out of the box (it should).

Which video card do you have? It should work even on an Intel 3000.

Re:Conception - a live programming environment experiment af... by regis on Saturday April 20, 2013 @05:19PM (#5582845)
Sure, here it is:

  Using GLFW 2.7.5.
  CPU Count: 1
  GL Renderer: NVIDIA Corporation NVIDIA GeForce GT 330M OpenGL Engine 2.1 NVIDIA-8.10.44 304.10.65f03
  GLFW_ACCELERATED: 1
  GLFW_RED_BITS: 8
  GLFW_GREEN_BITS: 8
  GLFW_BLUE_BITS: 8
  GLFW_ALPHA_BITS: 8
  GLFW_DEPTH_BITS: 0
  GLFW_STENCIL_BITS: 0
  GLFW_REFRESH_RATE: 0
  GLFW_FSAA_SAMPLES: 8
  Window Dimensions: 1536x960
  Background thread (tid = 1) created.
  Background thread is starting.
  Error: Failed to load texture.

  rm: ./GenProgram: No such file or directory
  rm: ./GenDiff1.txt: No such file or directory
  rm: ./GenDiff2.txt: No such file or directory
  sh: ./bin/gocode/gocode: No such file or directory
  sh: ./bin/gocode/gocode: No such file or directory
  Sending kill to last child pid 92715.
  Background thread has ended.
  Background thread has been shut down.
  ~App()
  ~InputManager()`
Re:Conception - a live programming environment experiment af... by shurcooL on Saturday April 20, 2013 @06:48PM (#5583132)
Thanks.

I can see the issue is that the current working directory for the binary is not set correctly. It should be set to the repo root (the folder that contains README.md). The ./bin/gocode/gocode file should be present.

How are you running it? You should open the Xcode project and Run it (Cmd+R). The Xcode project is configured to set the current working directory as the project root folder.

Re:Conception - a live programming environment experiment af... by regis on Saturday April 20, 2013 @07:11PM (#5583186)
That's what I had been doing. What I ended up doing to get it to work was unzipping the file, running xcodebuild and then moving the binary to the root of the project. Thanks for the help.

EDIT: Still getting this error though from within the running application: libc++abi.dylib: terminate called without an active exception ls: ./GenProgram: No such file or directory

Re:Conception - a live programming environment experiment af... by shurcooL on Saturday April 20, 2013 @08:28PM (#5583348)
Thanks for trying. It's really strange that it doesn't work on your OS X while it does on mine (and on someone else's system who tried it somewhat recently). I'd like to figure out why.

I've pushed a small update [1] that prints the current working dir of the app. Perhaps you can try it and verify that it's being set correctly. See this screenshot [2] for Xcode setting that sets the running app cwd.

[1] https://github.com/shurcooL/Conception/commit/37bbbb57e56caa...

[2] http://img526.imageshack.us/img526/7548/imagexcsb.png

Re:Conception - a live programming environment experiment af... by regis on Saturday April 20, 2013 @09:15PM (#5583475)
Awesome that fixed it.