Shouldn't allow empty usernames (was Can't create part in new library)

Issue #121 resolved
Anonymous created an issue

The preferences dialog on first start allows an empty username to be set. This causes exceptions later on when a project/library is first created.

Require a username to be set and make it more clear that it doesn't need to be a bitbucket username.

Traceback (most recent call last):
  File "dist/", line 39, in _accept
  File "dist/", line 129, in create_lib
Exception: no user configured - Config paths: /Users/jorishoogeboom/.razen, /Applications/razen/ - Parsed /Users/jorishoogeboom/.razen/general.json - 
-------------------------------------------------------------------------------- - Razen 0.8.7-r1745 starting - PATH: /usr/bin:/bin:/usr/sbin:/sbin - PYTHONPATH: /Applications/razen/ - CWD: /Applications/razen/ - Arguments: /Applications/razen/ - OS Darwin 13.0.0 (i386): mac64 - Qt v4.8.5 - Mac OS X 10.9 - tweaking fonts - Found HG at /usr/local/bin/hg - HG v2.8.1 - Basepath: /Applications/razen/ - Rootpath: /Applications/razen/ - Config paths: /Users/jorishoogeboom/.razen, /Applications/razen/ - Parsed /Applications/razen/ - Parsed /Users/jorishoogeboom/.razen/general.json - Library path: /Applications/razen/libraries/ - Project path: /Applications/razen/projects - Parsed /Applications/razen/ - Parsed /Applications/razen/ - Loaded plugin.export.bomcsv - Loaded plugin.export.gerber - Loaded plugin.export.svg - Loaded plugin.import.svg - Loaded plugin.script.boardoutline - Loaded plugin.script.dip - Loaded plugin.script.header - Loaded plugin.script.qfp - Loaded plugin.script.smdrcl - Loaded plugin.script.soic - Loaded plugin.script.sot - GL_VENDOR: NVIDIA Corporation - GL_VERSION: 2.1 NVIDIA-8.18.22 310.40.05f01 - GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine - OpenGL Version: 2.1 NVIDIA-8.18.22 310.40.05f01 - Parsed /Applications/razen/ - Checking for updates - Latest version: 0.8.7-r1745 - Traceback (most recent call last):
  File "dist/", line 39, in _accept
  File "dist/", line 129, in create_lib
Exception: no user configured

Comments (10)

  1. Razen repo owner

    Try setting a username in the general preferences. Though you should be prompted to set a username on startup, so there's something strange going on.

  2. Razen repo owner

    Yea, I need to make that more clear. It's actually a mercurial requirement. All you need is a username - it doesn't have to be a valid bitbucket account - so that the project/library files saved to mercurial (on your local machine) have a user attached.

  3. jorishoogeboom

    Gotcha, I guess this can be considered resolved. Also thanks for looking into this so quickly, this Razen project is really an interesting new direction in the pcb designing field.

  4. Razen repo owner

    No problem, glad I could help. I'm going to keep this bug open and edit the description a bit to track the issue of allowing an empty username.

  5. Razen repo owner

    Fixed in v0.8.9. Now requires a username before the preferences dialog can be closed. Also improved help text describing requirements.

  6. Log in to comment