Giter Club home page Giter Club logo

Comments (11)

niosus avatar niosus commented on September 27, 2024 1

Judging from the log it should be not too hard to fix.

from easyclangcomplete.

niosus avatar niosus commented on September 27, 2024 1

@Feacur I added a PR, but I could not reproduce this. Granted I did try this on by Linux machine, but still. Just in case I was doing smth wrong, am I "selecting too hard" right?

dragging_error.mp4

from easyclangcomplete.

niosus avatar niosus commented on September 27, 2024 1

I see. This is really strange. I will probably also try to run this on Windows just to see if I am able to reproduce it there. The popups are most probably generated in different ways on linux and windows. Until then, it is weird. On my machine, sublime text never crashes unless there is a legitimate bug in the plugin code, so it might be related to your configuration.

from easyclangcomplete.

niosus avatar niosus commented on September 27, 2024

Ok, thanks for reporting. I will try to have a look as soon as I find the time.

from easyclangcomplete.

Feacur avatar Feacur commented on September 27, 2024

Yes, exactly like that =)

The crash persist even with the PR, although now without the said trace. I'll test a bit more searching for the source[s] of it; without any additional leads, there is no much use to this issue anyway.

For me it looks like this:
image
...
image

P.S.: don't worry much about that, 'cause for me Sublime Text 3 hard-crashes several times a week (due to itself, LSP, or some other plugins, I don't even know). VSCode, while eating more RAM and being an electron app, is so much more stable in my experience.

from easyclangcomplete.

Feacur avatar Feacur commented on September 27, 2024

Ok, superficially traced the offender:

# /EasyClangComplete/EasyClangComplete.py
    def on_selection_modified_async(self, view):
        # ...

# /EasyClangComplete/plugin/error_vis/popup_error_vis.py
    def show_popup_if_needed(self, view, row):
        # ...

# /EasyClangComplete/plugin/error_vis/popups.py
    def show(self, view, location=-1, on_navigate=None):
        # ...

... without these popups [spamming, while user drag-selects stuff,] everything's going just fine. Also, I've noticed info popups take completely different paths to occur, unlike warning and error ones.

I suppose, mdpopups or [Sublime itself down the line] objects the avalanche of calls.

Ah, one more trace, albeit I wonder how come I've got it (there IS a null check before that line):

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 610, in on_selection_modified_async
    callback.on_selection_modified_async(v)
  File "C:\Users\Feacu\AppData\Roaming\Sublime Text 3\Packages\EasyClangComplete\EasyClangComplete.py", line 363, in on_selection_modified_async
    if not SublBridge.is_valid_view(view):
  File "C:\Users\Feacu\AppData\Roaming\Sublime Text 3\Packages\EasyClangComplete\plugin\utils\subl\subl_bridge.py", line 228, in is_valid_view
    if not path.exists(view.file_name()):
  File "./python3.3/genericpath.py", line 18, in exists
TypeError: can't specify None for path argument

from easyclangcomplete.

niosus avatar niosus commented on September 27, 2024

This is all really weird. With all the things you commented out you would not get the popups at all, right?

from easyclangcomplete.

Feacur avatar Feacur commented on September 27, 2024

Yeah: should I only disable popup.show(view) call in the popup_error_vis.py, everything comes stable. Obviously, without the said popups, which is a mild inconvenience; but ECC: Show all errors and gutter icons still function all right, so not everything's lost. Besides, keyboard controls aren't affected by the issue, so normally I wouldn't get the crash.

from easyclangcomplete.

Feacur avatar Feacur commented on September 27, 2024

Sure, it might be. I did disable all the other plugins before taking the screenshots; but it still leaves the rest of my machine to interfere with the editor.

(also, ugh, sorry, I've accidentally misclicked the [close issue] button and got no prompt)

from easyclangcomplete.

niosus avatar niosus commented on September 27, 2024

@Feacur I've tried reproducing this on my Windows machine and it just won't crash. Is your machine special in any way?

from easyclangcomplete.

Feacur avatar Feacur commented on September 27, 2024

Most likely it is, as any other PC

  • there is a fair lot of dev tools, for sure
  • some system settings and permissions may differ
  • drivers/hardware/running services/whatnot

I can't pinpoint any other particular cause, unless I dig deeper the callstack into mdpopups, for instance. This issue might well be unrelated to ECC: I'm getting crashes with LSP + clangd, too; some of them are popup-related and quite similar, but generaly of unknown nature.

Anyway, thank you for trying to reproduce it at your side and for your time.

from easyclangcomplete.

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.