Enter forum description here ...
0

Exception in Pycharm when working on django templates

Cody Harrington 9 років тому оновлений 9 років тому 0
I'm working in Pycharm Community Edition on a Python Django HTML template file, and when I type 

   {% 

Codeivate breaks, with the exception provided below.

{% is the start of a special template keyword, i.e. {% for x in y %} or {% if x %}.

This only happens the first time I type it after opening PyCharm. It doesn't happen again until I've restarted PyCharm, I think. Log output at the link below:

http://sprunge.us/DYcJ

Here are some of my current system specs (I'm currently using a colleague's OSX computer):

Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
PyCharm Community Edition 3.4.1 Build #PC-135.1057

Two other notable plugins I have installed are IdeaVim and CodeGlance.

Let me know if you need any other info.

0
Planned

Exception in thread (console)

Ghostface 11 років тому оновлено Paul Sinclair 11 років тому 1

Hi while coding on my own plugin I noticed messages like these popping up in the sublime console:


posting data for Python

message :+1 Python

icon base :--icon=/home/christoph/.config/sublime-text-3/Packages/codeivate-st/codeivated/icons/32x32/

Exception in thread Thread-30:

Traceback (most recent call last):

  File "X/threading.py", line 639, in _bootstrap_inner

  File "C:\Users\Paul\AppData\Roaming\Sublime Text 3\Packages\codeivate-st\codeivated\FeedBack.py", line 110, in run

NameError: global name 'Pref' is not defined


Maybe something to look into, let me know if you need more infos

Відповідь
Paul Sinclair 11 років тому

Hi Ghostface, 


Thanks for reporting the bug. It looks like it is an issue with notify-send support that is only present on Linux when using Sublime Text 3.


I will fix this next time I do a Sublime 3 build.


As a temporary workaround in the Codeivate -> Settings - user  file, you can set 


"notify_send_active": false,


that should stop it from happening. This shouldn't cause any other issues with the plugin (apart from notify-send not working!).


Also in the same settings file you might want to set


"show_debug":false,


To hide alot of the other Codeivate output. This was accidentally left on in some initial versions of the plugin.



Cheers,

- Paul




0
Fixed

NullPointerException in PyCharm

Cody Harrington 10 років тому оновлено Paul Sinclair 10 років тому 5
Hi, I didn't know where else to submit this. I got a NPE for the Codeivate plugin in PyCharm. Here's a stacktrace:

null
java.lang.NullPointerException
at com.codeivate.plugin.logic.CodeivateGame.authenticate(CodeivateGame.java:139)
at com.codeivate.plugin.CodeivateApplicationPlugin$1.run(CodeivateApplicationPlugin.java:98)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:347)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

It happened as I was opening PyCharm, but I didn't have working internet at the time.
EDIT: Ok, so, I had a working internet connection, but I hadn't authenticated through our firewall, so traffic was being dropped or redirected.

Some details:
PyCharm 3.0.1 Build #PY-131.339
Running Fedora 20
Linux 3.13.8-200.fc20.x86_64
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Let me know if you need anything else

0
Виконано

Signature Annoyance

Alex Lamson 11 років тому оновлено Paul Sinclair 11 років тому 0

I wouldn't say that my name is extremely long, but the programming and flow_state items clip through the text on the far right.


(Hooray for lousy ms-paint editing!)

Image 5


My request is that the two items be moved underneath the Level # and level bar.


Image 4


That would use unoccupied space and free up space for people with long names.

(If there is already something reserved for that space, sorry, I didn't know)


 Also, the link at the bottom left should be: 

http://codeivate.com/users/alex-lamson

(its the space again, huh?)

Відповідь
Paul Sinclair 11 років тому

Thanks for the feedback! I can see how that would be annoying. 

I had some stupid code that truncated the programming to p and flow state to f when usernames got over 13 characters, don't know what I was thinking!


Your idea is wayyy better.




Should be sweet now.


Also www.codeivate.com/users/Alex Lamson should redirect to www.codeivate.com/users/alex-lamson but I have updated that link down the bottom so it is clearer.


Cheers,

- Paul


0
Fixed

Is Current level bar correct?

Michael Calkins 11 років тому оновлено Paul Sinclair 11 років тому 0

This is confusing shouldn't it be 66.96% full?

Image 7

Відповідь
Paul Sinclair 11 років тому

Hi Michael,


I agree looking at that bar with a fresh set of eyes it is confusing! 


What it's actually saying is you are on level 4 which is something like 220 points, but you need 109 points (330 - 221) to get to the next level.


So it should say something like 1/109.


I will fix this up.


Cheers,

- Paul


0
Not a bug

length emailaddress

Peter Nijssen 10 років тому оновлено Paul Sinclair 10 років тому 3

When I was editting my password, I noticed that my emailaddress was missing one character. After changing it, it's still missing one character. My emailadress has a total length of 21 characters, so maybe the database field is only 20 characters long?

Відповідь
Paul Sinclair 10 років тому

Hi Peter,

Thanks for reporting the issue, I have done some tests and seem to be able to add email addresses longer than that. Can you please email me your address to paul@codeivate.com and I will check it out further. 


Cheers,

Paul

0
Under review

Bigger level ladder

Michael Calkins 11 років тому оновлено Paul Sinclair 11 років тому 4

Instead of the 22 level thing use a popular level tier that's proven to successfully motivate people to play it like WoW's 1 to 80.  If it takes forever to get to level 3 it kinda makes you feel like "meh".

Відповідь
Paul Sinclair 11 років тому

Hi Michael,


Funny you should mention WOW the levelling on the site is currently based on that but maybe not in the way you are expecting. 


The levelling at the moment is a combination of the 10,000 hour philosophy and the WOW levelling system (from 1-80)

 

From what I have read it takes about 10,000 hours to become a master in any skill so based on some initial research I did, level 70 should equate to roughly 10,000 hours of coding. Also levelling is non linear so each level requires more time/effort to get to than the previous one.


At the moment you the yellow bars / points on the user summary i.e. http://www.codeivate.com/users/jbrooksuk show you how many points you have earned today towards the next level(s) and when logged in you should see a rough E.T.A on the top right towards your next overall level up. The points gained today/overtime is definitely an area I would like to improve upon to give users a better sense of achievement. 


I may need to tweak the levelling system once I get more data though...



Cheers,

- Paul





0
Not a bug

power languages incorrect

Peter Nijssen 11 років тому оновлено Paul Sinclair 10 років тому 0

I believe power languages are incorrect:

http://www.codeivate.com/users/ptish


Currently, it says that my power languages are PHP, Javascript and Shell-Unix. Well, if you look at the meters, that's correct. However, my "plain" is level 1 and is basically higher then javascript.


Or is stuff like plain automatically downgraded?

Відповідь
Paul Sinclair 10 років тому

Hi Peter,

Sorry about the delay in replying. 

At the moment "power languages" are made up of your top 5 languages excluding Plain, this is because the earlier versions of the plugin picked up alot of stuff as Plain.

 

This should be a bit better now. Although if you create a new tab and start typing without either choosing a language on the bottom right or saving it Sublime will think it is Plain.


Cheers,

- Paul



0
Under review

Plain Text Issue

Victor Malca 10 років тому оновлено Paul Sinclair 10 років тому 1
Hi, some weeks ago i posted a issue about this problem, i attach a image with the problem, i wanna know what is the problem with this category because as you can see i'm writin a CSS file.

Image 20
0
Under review

Widgit version of Summary page.

Joshua Kolden 11 років тому оновлено Paul Sinclair 11 років тому 0

Something I can tuck into the corner of my screen and see my points building to encourage me to do just a little more every time I look at it. 

Відповідь
Paul Sinclair 11 років тому

Hi Joshua,


Thanks for the idea. I will investigate some ways of doing this.


Cheers,

- Paul