Messages

If your code is in a subfolder of your main project, perhaps PyCharm didn't find it immediately. You can use:
Settings:Project Structure:(select your project):Add Content Root
..add your app folder (or the folder that contains 'utility').

Perhaps this is stupendously obvious, but how do I change the default margin width from 120 to a pep-8 compliant 79? I'm using PyCharm 2.7.2. I've seen plenty of settings options to disable or change the behavior of the margins, but none to change the width.

I expected it would be under one of the following, but no dice:
Settings:Code Style
Settings:Code Style:Python:...
Settings:Editor
Settings:Editor:...

..where does this (surely obvious) configuration option live?

how to solve this?

"java.lang.RuntimeException: Your database was touched by YouTrack build 6024. Downgrade is denied, please restore your database from backup."

Hi,

have you managed to use TextMate bundle support to add syntax highlighting for Vagrantfiles? If you have, how? Which particular bundle have you used and how have you configured?

I have working highlighting for Ruby-files (I used , but I've been unable to activate it for Vagrantfiles (I've tried to add "Vagrantfile" into "Files supported by TextMate bundle" and into Ruby.tmbundle's Syntaxes/Ruby.plist's FileTypes, but without any succeess.)

  • Asko

I just deployed YouTrack 4.2.2.war to Heroku and I am experiencing the same issue. Presumably the Tomcat runner is restarting after the Heroku Dyno idles, and I lost all my work and I am back at the setup screen. Is there anyway to persist the YouTrack data to an external source, like Postgres or S3 or anything that will stick around? Thanks.

Hi,

we've been bitten by the same problem, see JT-18758.

Adding the following Request header in your Apache httpd configuration should fix it:
RequestHeader set X-Forwarded-Proto "https"


Cheers,
Jochen

Hi all -

My project keeps reaching out to the external libraries for apps, which is not what i want, because I'm working in a venv. I have excluded the paths in the python interpreter path setup and it says 'Removed by User' next to the path, but, when I run syncdb, I still get a message like 'app has already been imported from location (my external library)'. Can anyone help me get this working ?? Thx!

Hi all,

Speaking of configuration issues, we have separated blocks in documentation for different types of installation, where you can find what is the default installation folder, database location and etc. As we are talking about Win service installation, let's take a look at Win documentation http://confluence.jetbrains.com/display/YTD4/Windows.+Installing+and+Running+YouTrack+as+a+Service.
If you are still disappointing, please, let me know, we will change/add needed details there.

Speaking of risks probability, this specific bug was fixed. As far as I know that was the only issue which cause such difficulties. In general, your data always can be restored from backups.

Also, I should correct you as you've pointed wrong path to web.xml.
That's the correct one
c:\<YouTrack installation directory>\webapps\root\web-inf\web.xml

To remember this path, you can alwasys look at the documentation http://confluence.jetbrains.com/display/YTD4/Windows.+Installing+and+Running+YouTrack+as+a+Service
Could you please argument, why changing value in web.xml is so scary for you?
Even if it's so, you are able to go a way around and modify
database.location
value via Java command.

Thank you.



Regards,

Andrey Tigay
YouTrack engineer

Thank you for your response.

In theory, it would be suitable. The only issue is that, if you add subtasks, it is also blocking adding estimations for the subtasks. Probably because another default workflow tries to carry the adjustment up to the parent - which is what we want - we like it automatically calculating the parent tickets total estimation as a sum of all childrens.

however, in this scenario we cannot add/modify estimates for any ticket that is a subtask, which is not the desired outcome, only to block modifying the estimation on the parent itself?

I just not sure where else in youtrack this runs, and also if its possible to handle the rule in such a way to say "only do this when modifying the parent directly".

Any further support would be hugely appreciated!

Try to join these cases into the one:
rule estimations 
 
when Estimation.changed { 
  assert parent for.isEmpty && !hasTag("ProjectParent"): "Cannot change the 'Estimation' for a parent issue."; 
}


Is it suitable for you?

I would have to back Luis Cortes on this.

I understand these are common problems when deploying Java apps on Windows (or anywhere else), but the fact that all issues and project simply disappeared is SCARY!!!

And your proposal to modify an XML file stored in this location after installation: C:\Program Files\YouTrack\work\Catalina\localhost\_\WEB-INF\classes\jetbrains\charisma\main\web.xml, that is even more scary.

These are my 2 cents, but you do understand that my career is on the line if all issues disappear!

Is there a way to specify what code blocks should have folding available by default for custom file types?

I have created a Google Protocol Buffer file type for syntax highlighting of .proto files. They are very JSON-like with lots of { } braces. However, I have to manually select each of these blocks and do the Fold Selection command. That's not so bad if I have to only do it once, but when I close and re-open the file all the Fold Selections are gone (which was asked about here http://forum.jetbrains.com/thread/PyCharm-285 but never answered). I would love to be able to specify that {} should have folding by default for this file type.

Hi,

I have created a few workflows, their a bit of a higgledy piggledy to write - mostly because the ide is a PITA that is trying to hard to control (cannot even copy all and paste! oh la la)

However, i have one specific problem with trying to add a workflow that would block modifications to the Estimation for a Parent task.

We have a Parent task for most projects, and it has dependent subtasks or relations. We like the fact the parent task Estimation is automatically calculated from the Children - However, if someone accidentally touches the estimation field on the parent it disables the functionality and we have found no way to restore it.

Thus, i wanted to create a workflow that would block changes to Estimation field when the issue has children, or if it had a tag we created called "ProjectParent".

The workflow kind of works, but when you want to edit the estimation for any subtask it is also being caught, i can only imagine because the youtrack is raising up the event to the parent which is the one that triggers the condition to be met and blocks the change. The lack of documentation and not being able to find any other workflows with similar behavior leads me to this forum.

Example of my problem workflow is here -> http://screencast.com/t/01sFTnsb & here http://screencast.com/t/EYNTQX0rZnF

Many thanks in advance for your support!!!

Is there an example how to add an attachment to an YouTrack issue in https://github.com/JetBrains/youtrack-rest-python-library/tree/master/python I browsed some files, but didn't find one.

Is it possible to run with coverage anythin other than tests? I would like to run my app and later have some coverage data of what the users did.

Hi,

I have created a few workflows, their a bit of a higgledy piggledy to write - mostly because the ide is a PITA that is trying to hard to control (cannot even copy all and paste! oh la la)

However, i have one specific problem with trying to add a workflow that would block modifications to the Estimation for a Parent task.

We have a Parent task for most projects, and it has dependent subtasks or relations. We like the fact the parent task Estimation is automatically calculated from the Children - However, if someone accidentally touches the estimation field on the parent it disables the functionality and we have found no way to restore it.

Thus, i wanted to create a workflow that would block changes to Estimation field when the issue has children, or if it had a tag we created called "ProjectParent".

The workflow kind of works, but when you want to edit the estimation for any subtask it is also being caught, i can only imagine because the youtrack is raising up the event to the parent which is the one that triggers the condition to be met and blocks the change. The lack of documentation and not being able to find any other workflows with similar behavior leads me to this forum.

Example of my problem workflow is here -> http://screencast.com/t/01sFTnsb & here http://screencast.com/t/EYNTQX0rZnF

Many thanks in advance for your support!!! - Sorry for posting as Guest, but cannot login to forum as getting a 500 error :/

Hi Sergui,
You have to install Trac python modules.
Something like this:
pip install Trac

Yes, I've seen this thread, but in my case my concept is extended from Expression, not Statement, so I can't collect uncaught throwables using Statement.collectUncaughtMethodThrowables().

I've had a problem with pydev, which did not see classes from pytables. I've installed pycharm to see if it can deal with the problem, but despite the fact that the ide looks great, it too failed to see some types from pytables.
I've asked about the issue at stackoverflow: http://stackoverflow.com/questions/16668152/pydev-cant-see-class-from-pytables

Adding tables to forcedbuiltins solved the problem for pydev, but I could not manage to do the same in PyCharm. I really liked the ide, and want to keep using it, but nothing helped. I've invalidated the caches, tried to install tables from pycharm (which failed due to other problem)

So how can I do what I've done in PyDev for PyCharm?

Regards
Seref