Here the ticket : https://youtrack.jetbrains.com/issue/PY-10810
It seems to be in Reopened state... Add your comment, it will make it resolve faster I guess... If I remember I use the first setup describe above to get rid of the unresolved reference... The only drawback I can see, is that PyCharm will get slower and slower as long as you had more apps since it analyse all the code base under web2py/ folder to my comprehension... It means also that you have to recreate a new project each time you change web2py version... For me it was acceptable workaround the time this ticket get resolved... But I would really appreciate that we can define or project file in the app folder and having the unresolved referece resolved... Richard On Tue, Jul 14, 2015 at 2:34 PM, Richard Vézina <[email protected] > wrote: > Alex, the behavior you describe was the reason why I opened a ticket... It > sounds like the issue is still there... Which version of PyCharm do you use? > > Let search a bit I found the ticket and see if it had been closed... If > so, you should reopen it... > > Richard > > On Tue, Jul 14, 2015 at 2:24 PM, Alex <[email protected]> wrote: > >> Richard, the first setup where PyCharm creates the web2py environment is >> not an option because I have many projects and I don't want that many >> servers. I already have my web2py server and symbolic links for all my >> projects in the application folder. >> >> I now tried to directly open the project dir in the application folder as >> you mentioned (web2py/applications/project1/.idea) and at first it seemed >> to work fine. The web2py configuration was created, I could start the >> server and even debug. Only until I reactivated the python inspection >> "unresolved references". All web2py objects such as request, URL, etc. are >> marked as unresolved reference. Therefor all files are full of "unresolved >> reference" errors. If this issue could be solved then I would probably be >> happy with this setup. I also tried "Invalidate Caches / Restart ..." but >> still the same result. >> Alex >> >> Am Montag, 13. Juli 2015 16:25:06 UTC+2 schrieb Richard: >>> >>> Alex, I am not sure I follow you... >>> >>> When you let PyCharm set web2py environnement for project for you and it >>> create an .idea folder for your project in the root folder containing the >>> web2py folder... Something like that : >>> >>> project_root/.idea >>> /web2py >>> /web2py/application/your_project_app >>> >>> What your problem with that... >>> >>> Notice you should do this too : >>> >>> Install web2py by yourself >>> >>> web2py/applications/your_project_1 >>> /your_project_1/.idea >>> /your_project_2 >>> /your_project_2/.idea >>> /etc. >>> >>> For this configuration, you need to create your project withou using the >>> PyCharm helper for project configuration... >>> >>> I know in the pass there where some issue with this way of using >>> PyCharm, but I opened a ticket and this should be solve now... >>> >>> If you have any issue with these setup... >>> >>> Open a ticket on the PyCharm ticket manager and I am sure they will >>> taking care of it... >>> >>> But be clear on your exact problem >>> >>> Richard >>> >>> >>> >>> On Mon, Jul 13, 2015 at 9:37 AM, Alex <[email protected]> wrote: >>> >>>> I'm still confused why nobody else is bothered by this limitation. >>>> Every other IDE and project I worked on so far, the IDE project contains >>>> all the files and source code of one application. Then you can set >>>> completely independently where the application server is located (e.g. >>>> glassfish for a java application). It seems like most of you only have one >>>> or very few web2py projects so it doesn't bother you that the IDE project >>>> has to be the web2py server directory. For me it's a big issue because I >>>> either have many applications mixed into one IDE project or I have to >>>> create multiple web2py instances so I can have separate projects. And the >>>> update problem of changed files in the symbolic link dir also don't help - >>>> that's also the case on Linux and not just Windows, but I'll test that >>>> again. >>>> >>>> anyway, thanks for your thoughts and feedback. I wish the PyCharm team >>>> would take web2py more seriously. >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

