Issue #121 resolved

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

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/Razen.app/Contents/Resources/lib/python2.7/rzn/ui/dialog/newlibrarydialog.py", line 39, in _accept
  File "dist/Razen.app/Contents/Resources/lib/python2.7/rzn/vc/vclib.py", line 129, in create_lib
Exception: no user configured
config.py(112):config_init - Config paths: /Users/jorishoogeboom/.razen, /Applications/razen/Razen.app/Contents/Resources/conf
config.py(26):_parse_specific_json - Parsed /Users/jorishoogeboom/.razen/general.json
mainapp.py(69):run - 
--------------------------------------------------------------------------------
mainapp.py(70):run - Razen 0.8.7-r1745 starting
mainapp.py(71):run - PATH: /usr/bin:/bin:/usr/sbin:/sbin
mainapp.py(72):run - PYTHONPATH: /Applications/razen/Razen.app/Contents/Resources
mainapp.py(73):run - CWD: /Applications/razen/Razen.app/Contents/Resources
mainapp.py(74):run - Arguments: /Applications/razen/Razen.app/Contents/Resources/razen.py
mainapp.py(76):run - OS Darwin 13.0.0 (i386): mac64
mainapp.py(77):run - Qt v4.8.5
fonts.py(16):init - Mac OS X 10.9 - tweaking fonts
hg.py(43):_gethg - Found HG at /usr/local/bin/hg
vcfile.py(119):hgversion - HG v2.8.1
support.py(31):set_basepath - Basepath: /Applications/razen/Razen.app/Contents/Resources
support.py(32):set_basepath - Rootpath: /Applications/razen/
config.py(112):config_init - Config paths: /Users/jorishoogeboom/.razen, /Applications/razen/Razen.app/Contents/Resources/conf
config.py(26):_parse_specific_json - Parsed /Applications/razen/Razen.app/Contents/Resources/conf/general.json
config.py(26):_parse_specific_json - Parsed /Users/jorishoogeboom/.razen/general.json
mainapp.py(56):path_config - Library path: /Applications/razen/libraries/
mainapp.py(60):path_config - Project path: /Applications/razen/projects
config.py(26):_parse_specific_json - Parsed /Applications/razen/Razen.app/Contents/Resources/conf/layers.json
config.py(26):_parse_specific_json - Parsed /Applications/razen/Razen.app/Contents/Resources/conf/keys.json
plugin.py(33):load_plugin - Loaded plugin.export.bomcsv
plugin.py(33):load_plugin - Loaded plugin.export.gerber
plugin.py(33):load_plugin - Loaded plugin.export.svg
plugin.py(33):load_plugin - Loaded plugin.import.svg
plugin.py(33):load_plugin - Loaded plugin.script.boardoutline
plugin.py(33):load_plugin - Loaded plugin.script.dip
plugin.py(33):load_plugin - Loaded plugin.script.header
plugin.py(33):load_plugin - Loaded plugin.script.qfp
plugin.py(33):load_plugin - Loaded plugin.script.smdrcl
plugin.py(33):load_plugin - Loaded plugin.script.soic
plugin.py(33):load_plugin - Loaded plugin.script.sot
glwidget.py(43):initializeGL - GL_VENDOR: NVIDIA Corporation
glwidget.py(43):initializeGL - GL_VERSION: 2.1 NVIDIA-8.18.22 310.40.05f01
glwidget.py(43):initializeGL - GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
extensions.py(92):getGLVersion - OpenGL Version: 2.1 NVIDIA-8.18.22 310.40.05f01
config.py(26):_parse_specific_json - Parsed /Applications/razen/Razen.app/Contents/Resources/conf/tool.json
updater.py(37):run - Checking for updates
updater.py(45):run - Latest version: 0.8.7-r1745
mainapp.py(36):unhandledExceptionDialog - Traceback (most recent call last):
  File "dist/Razen.app/Contents/Resources/lib/python2.7/rzn/ui/dialog/newlibrarydialog.py", line 39, in _accept
  File "dist/Razen.app/Contents/Resources/lib/python2.7/rzn/vc/vclib.py", 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