atom / ide-php

PHP language support for Atom-IDE
MIT License
264 stars 41 forks source link

ide-php atom package makes some autocorrect packages to not function correctly [Urgent] #156

Open jonathan-x01 opened 4 years ago

jonathan-x01 commented 4 years ago

Description

The Ide-PHP package makes autocorrect (mainly html and css) not work. This is quite annoying and wish for some help or fix on this. I filled out each part with as much information as possible to help with this issue. I have figured out that it was this package that has been causing the issue, unless I am missing something.

So, this is either a bug I have somehow found or just something I must of missed, but I have actually restarted Atom a few times and enabled the package and it seems to be the ide-php package at fault here.

Update: The package itself also doesn't work as well.

Steps to Reproduce

  1. Enable the ide-php Package
  2. Try to type html and/or css and autocorrect doesn't work
  3. Disable the ide-php Package
  4. It works again.

-Stops working completely if constantly enable and disable ide-php package-

Expected behavior: Expected behavior is that the other packages should continue to work correctly.

Actual behavior: The actual behavior of this is that ide-php package makes some other packages (mainly autocorrect) not work. It is quite annoying when it happens.

Reproduces how often: It reproduces 100% of the time. If I disable it, it works, but if I continuously enable and disable, the autocorrect packages just stops working all together and Atom needs a restarts to make them work again.

Versions

-Including every program that may or may not related to the issue. Which includes versions from the "atom --version" command and version from OS, PHP, and packages that ide-php mentions-

  1. ide-php: 0.7.18
  2. atom-ide-ui: 0.13.0
  3. Atom: 1.51.0
  4. Electron: 5.0.13
  5. Chrome: 73.0.3683.121
  6. Node: 12.0.0
  7. PHP: 7.7.2
  8. Windows 10: 20H2 (October 2020) -Device part of Windows Insider Program-

Additional Information

Story of what happened

It actually took me a while to realize that packages can actually conflict and make other packages not work correctly as before it continued doing it until I looked somewhere that it does so I disabled every package that I don't need and I must of disabled the right package as it works (Mind you that I didn't know which one yet), I started to work on PHP and realize I needed the ide-php as I needed some guidance and such for errors and when I turned it on I decided to test the autocorrect to make sure it wasn't the one doing it and sure enough it was. It was a win-lose scenery type thing.

Some other odd problems

(The story here is not important, I don't think but it is always good to have it.) I have included this in the "Reproduces how often:" section but when you disable the ide-php package, it works but if you constantly enable and disable it, then after hitting disable after hitting enable and disable a couple times, the other packages just stops completely and needs the user to restart atom to fix it.

Console:

-I have decided to look into the console in the Atom's inspect element to see if when enabling ide-php, it will say some things that may or may not help. All lists will be included in pastebin as to minimize scrolling on this comment.-

https://pastebin.com/xb7aQPG4

Update: I realized at the time of this that it worked for a moment but after restarting Atom, it just stopped working. But there is one line of code that was different when enabling this package. <embedded>:14 TrustedTypes policy dompurify could not be created. This was the only difference to it and it might just be the main culprit of this bug. I don't know much about package making for Atom but I am a bit good at debugging things, and know some techniques for debugging.

Update: I have went into this more and learned that the package does not work as well, when trying to hold the Ctrl key and hovering over a variable to see the origin of it and such, it doesn't do anything, it just changes my cursor to the loading cursor. I have tried uninstalling it but it won't let me uninstall it either as well. So decided to uninstall it manually. I can conclude though that reinstalling it does not work as well as it is still causing the same problem.


Extra Note: This has actually took time to write as I wanted to make sure this was as getting to the point and is very easy to read as to help with debugging of this package and fixing what might just be causing the issue.