Coder Social home page Coder Social logo

Comments (9)

thynquest avatar thynquest commented on June 3, 2024

@DonJayamanne sorry for the delay regarding your last message and congrats for your new position 👍

from vscode-python.

thynquest avatar thynquest commented on June 3, 2024

@DonJayamanne you can find above the information you needed and let me know if there is something missing

from vscode-python.

thynquest avatar thynquest commented on June 3, 2024

After some tests, I found that it happens when I try to use my python interpreter defined in my virtual environment, and also when I use a postgres database below is another log when I try to use my python virtual environment in a simple test

/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [/home/johndoe/.vscode/extensions/ms-vscode.cpptools-0.14.2]: La commande 'workbench.action.gotoSymbol' apparaît plusieurs fois dans la section 'commands'.
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [/home/johndoe/.vscode/extensions/ms-vscode.cpptools-0.14.2]: La commande 'workbench.action.showAllSymbols' apparaît plusieurs fois dans la section 'commands'.
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] vscode-icons is active!
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 Linter pylint is not installed
e.doShow @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] rejected promise not handled within 1 second
t.log @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10 spawn ctags ENOENT : Error: spawn ctags ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)
e.onUnexpectedError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] rejected promise not handled within 1 second
t.log @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10 [ms-python.python] Invalid selection : Error: Invalid selection
	at Installer.<anonymous> (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/out/client/common/installer.js:243:27)
	at Generator.next (<anonymous>)
	at fulfilled (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/out/client/common/installer.js:4:58)
	at <anonymous>
e.onUnexpectedError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] activating extension
index.js:5 [uncaught exception]: Error: read ECONNRESET
onError @ index.js:5
index.js:5 Error: read ECONNRESET
    at exports._errnoException (util.js:1050:11)
    at Pipe.onread (net.js:581:26)
onError @ index.js:5
events.js:163 Uncaught Error: read ECONNRESET
    at exports._errnoException (util.js:1050:11)
    at Pipe.onread (net.js:581:26)
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10 TypeError: Cannot read property 'Threads' of null
    at PythonDebugger.threadsRequest (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/out/client/debugger/Main.js:365:27)
    at PythonDebugger.DebugSession.dispatchRequest (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/debugSession.js:439:22)
    at PythonDebugger.ProtocolServer._handleData (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/protocol.js:104:38)
    at Socket.<anonymous> (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/protocol.js:24:60)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20) : Error: TypeError: Cannot read property 'Threads' of null
    at PythonDebugger.threadsRequest (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/out/client/debugger/Main.js:365:27)
    at PythonDebugger.DebugSession.dispatchRequest (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/debugSession.js:439:22)
    at PythonDebugger.ProtocolServer._handleData (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/protocol.js:104:38)
    at Socket.<anonymous> (/home/johndoe/.vscode/extensions/ms-python.python-0.8.0/node_modules/vscode-debugadapter/lib/protocol.js:24:60)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
    at file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:2490403
    at Object.v [as _notify] (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:63266)
    at Object.enter (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:66540)
    at n.Class.derive._oncancel._run (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:67861)
    at n.Class.derive._oncancel._error (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:67378)
    at file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:2127980
    at _.e.dispatch (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:2129331)
    at _.e.handleData (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:2128839)
    at Socket.<anonymous> (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:9:2127840)
    at emitOne (events.js:96:13)
e.onUnexpectedError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:10
console.ts:123 [Extension Host] (node:10586) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ console.ts:123
t._logExtensionHostMessage @ extensionHost.ts:377
(anonymous) @ extensionHost.ts:202
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104

from vscode-python.

brettcannon avatar brettcannon commented on June 3, 2024

@thynquest is this still an issue for you, @thynquest ?

from vscode-python.

thynquest avatar thynquest commented on June 3, 2024

Hello
Yes this is still an issue for me. last time I checked, when I launched the debug mode I get a segmentation fault. meanwhile I have switched to ipdb (which is not that comfortable btw)

Thank you

from vscode-python.

DonJayamanne avatar DonJayamanne commented on June 3, 2024

@thynquest
Please could you try debugging using the experimental debugger.
All you should really have to do is go into launch.json and change the setting "type"="python" to "type"="pythonExperimental"

from vscode-python.

thynquest avatar thynquest commented on June 3, 2024

Hello DonJayamanne and sorry for the delay
I tried the python exprerimental and it does work. what is the difference with this option compared with the previous one ?
Anyway I'll keep doing some tests to make sure it works well and I will let you know if anything comes up
Thank you for your help

from vscode-python.

thynquest avatar thynquest commented on June 3, 2024

@DonJayamanne

from vscode-python.

brettcannon avatar brettcannon commented on June 3, 2024

@thynquest the experimental debugger is PTVSD 4 while the "normal" debugger is PTVSD 3. Since PTVSD 4 is still in alpha we have not made it the default yet, but once it's stable we will be switching versions.

from vscode-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.