[pydev - Users] Eclipse cannot resolve modules in the editor

View: New views
7 Messages — Rating Filter:   Alert me  

[pydev - Users] Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7531587
By: mikelupo

While using modules that are nested in my src tree, referencing them (i.e. import
myModule2, myModule2, ....
Eclipse shows it with a red underline. This happens throughout my project for
all sorts of modules in my project. However this is only cosmetic. It does not
affect the project at runtime or debug time.
What am I doing wrong?
Note: Using pydev/pydev extensions 1.4.7.2843 , Eclipse SDK 3.4.2, Python 2.6.

Thanks,
Mike

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7531927
By: fabioz

Do you have some error in your error log?

Just confirming: The 'src' folder is added to your project pythonpath right?

Is this in the same project or among projects?

Can you try pressing 'Force restore internal info' (in the project properties
at Pydev - Pythonpath), then editing some files and see if the errors still
appear?

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7532006
By: mikelupo

Fabio,
I don't know where the log is for me to look in. If you know, please tell...
FYI:
eclipse is stored in c:\eclipse
workspace is c:\eclipse_workspace

I did make sure that 'src' folder is in the pythonpath and it is.
I tried to Force restore internal info and that didn't make any difference.
Still unresolved imports.

This is only 1 project. I have only ever had 1 python project and this is it.
Reiterating that...there is only 1 project in my eclipse workspace.

Thanks for the quick reply!


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7532014
By: fabioz

Take a look at: http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug
to see where the error log is.

Do you know if the error is given by pylint or pydev extensions (note  that
if you give the the exact error message I can discover it).

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7532073
By: mikelupo

Here is an exerpt of the .log file: If you want me to upload the file to you,
I can. Just say how....
I don't want to create a bug report just to upload the file if I am the problem.
:-)
+++++++++++++++++++++++++++++++++++++++++++++++
!ENTRY org.eclipse.jface.text 4 0 2009-07-24 10:39:11.647
!MESSAGE Unexpected runtime error while computing a text hover
!STACK 0
java.lang.RuntimeException: java.lang.RuntimeException: Error when getting assign
completions for:t_example.example_browser_test
        at org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDe
finition(PyRefactoringFindDefinition.java:76)
        at org.python.pydev.editor.hover.PyTextHover.getDocstringHover(PyTextHover.java
:161)
        at org.python.pydev.editor.hover.PyTextHover.getHoverInfo(PyTextHover.java:97)
        at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.j
ava:168)
Caused by: java.lang.RuntimeException: Error when getting assign completions
for:t_example.example_browser_test
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.getAssignCom
pletions(AssignAnalysis.java:90)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internal
GenerateGetCompletionsForModule(AbstractASTManager.java:700)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:482)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:453)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:445)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:437)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.getCla
ssToks(SourceModule.java:561)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.getGlo
balTokens(SourceModule.java:488)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDe
finition(SourceModule.java:696)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDe
finition(SourceModule.java:1)
        at org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDe
finition(PyRefactoringFindDefinition.java:164)
        at org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDe
finition(PyRefactoringFindDefinition.java:72)
        ... 3 more
Caused by: java.lang.RuntimeException: Error when getting assign completions
for:t_example.example_browser_test
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.getAssignCom
pletions(AssignAnalysis.java:90)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internal
GenerateGetCompletionsForModule(AbstractASTManager.java:700)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:482)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:453)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:445)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findGl
obalTokDef(SourceModule.java:834)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDe
finitionsFromModAndTok(SourceModule.java:783)
        at org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDe
finition(SourceModule.java:766)
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.getAssignCom
pletions(AssignAnalysis.java:56)
        ... 14 more
Caused by: java.lang.RuntimeException: A throwable exception has been detected
class java.lang.NoSuchMethodError
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.getAssignCom
pletions(AssignAnalysis.java:92)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internal
GenerateGetCompletionsForModule(AbstractASTManager.java:700)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:482)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:453)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:445)
        at org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompl
etionsForModule(AbstractASTManager.java:437)
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.addNonFuncti
onDefCompletionsFromAssign(AssignAnalysis.java:229)
        at org.python.pydev.editor.codecompletion.revisited.AssignAnalysis.getAssignCom
pletions(AssignAnalysis.java:81)
        ... 22 more

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7532326
By: fabioz

Ok, that log indicates that some wrong call is being made (that's what
the java.lang.NoSuchMethodError  indicates).

There are 2 possible reasons: either the pydev and pydev extensions version
installed are not compatible (which is more common and it usually happens if
you updated only pydev and not pydev extensions) or there's a bug in the code
that makes pydev fail against eclipse 3.4... The error log doesn't seem complete,
so, it's hard to diagnose properly (you can try checking if your versions are
correct and if you believe they are, create a bug report with the full error
log).

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Eclipse cannot resolve modules in the editor

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7533378
By: mikelupo

Entered a defect. Let me know if you need more information.

Regards,
Mike

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users