Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Illegal invocation #628

Closed
eoiles opened this issue Feb 6, 2021 · 14 comments
Closed

Uncaught TypeError: Illegal invocation #628

eoiles opened this issue Feb 6, 2021 · 14 comments

Comments

@eoiles
Copy link

eoiles commented Feb 6, 2021

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Pro
Thrown From: linter-ui-default package 3.2.2

Stack Trace

Uncaught TypeError: Illegal invocation

At C:\Users\stary\.atom\packages\linter-ui-default\dist\index.js:1

TypeError: Illegal invocation
    at HTMLDocument.mt (/packages/linter-ui-default/dist/index.js:1:23791)

Commands

     -2:04.9.0 omnisharp-atom:toggle-dock (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -2:02.6.0 omnisharp-atom:settings (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
  3x -1:25.8.0 linter-ui-default:toggle-panel (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -1:22.7.0 go-to-line:toggle (atom-text-editor.editor.is-focused)
     -1:20.4.0 linter-ui-default:toggle-panel (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
  2x -1:17.7.0 editor:newline (input.hidden-input)
     -0:32 pane:split-up-and-copy-active-item (a.)
     -0:20.4.0 omnisharp-atom:settings (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:11.6.0 omnisharp-atom:solution-status (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-beautify 0.33.4 
atom-ide-ui 0.13.0 
atom-json-format 0.2.0 
busy-signal 2.0.1 
ide-csharp 0.6.2 
ide-json 0.2.1 
ide-python 1.7.3 
intentions 1.1.5 
language-scheme 1.4.0 
linter 3.3.0 
linter-ui-default 3.2.2 
omnisharp-atom 0.31.2 
scheme-syntax 0.4.0 
script 3.29.3 
@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

When does this happen?

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

When does this happen?

I just added omnisharp in my atom, then it asked me to install linter, then i click yes , then it asked me to install linter-ui-default, then i clicked yes. after every thing installed , the flame button on the bottom left is still grey, not green as it should be. then i clicked that button, so this error threw out.

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

It never supposed to be green. Gray means there are no errors. If you have errors, it becomes red or yellow.
image

I will try to reproduce this.

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

atom-omnisharpt is faulty. Please use ide-csharp instead.

OmniSharp/omnisharp-atom#1037

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

It never supposed to be green. Gray means there are no errors. If you have errors, it becomes red or yellow.
image

I will try to reproduce this.

Sorry, i mean the omnisharp flame button , in it's documents it says "To use
Open a c# file

or open a scriptcs file

When the flame icon in the bottom left corner turns green, the server has started!"

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

You should use ide-csharp instead:
https://atom.io/packages/ide-csharp

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

atom-omnisharpt is faulty. Please use ide-csharp instead.

OmniSharp/omnisharp-atom#1037

so i install atom-ide , ide-csharp, linter, linter-ui-default these 4 plugins?

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

atom-ide-base and ide-csharp

Do not use the deprecated packages like ide-ui or atom-omnisharp

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

atom-ide-base and ide-csharp

Do not use the deprecated packages like ide-ui or atom-omnisharp

i have uninstalled ide-ui and atom-omnisharp and installed atom-ide-base ide-csharp and all of the dependicies.
but the linter won't prompt any error , and the outline didn't show anything. format code isn't working
looks like nothing is working and there is no error reported by atom. do i need something else?
all of the enabled non-core packages are :
atom-ide-base
atom-ide-datatip
atom-ide-definitions
aton-ide-hyperclick
atom-idemarkdown-service
atom-ide-outline
atom-ide-signiture-help
busy-signal
ide-csharp
linter
linter-ui-default

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

Maybe you should open an issue in https://github.com/atom/ide-csharp?

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

From the issues, it seems that its dependencies are out of date. So could you try to update the package.json in .atom/packages/ide-csharp

  "dependencies": {
    "atom-languageclient": "^1",
    "omnisharp-client": "^7"
  },

and run apm install in the .atom/paclages/ide-csharp root?

Sorry that you should do this manually. We are preparing a public issue to transfer the ide packages to the community so they can keep them up to date.

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

From the issues, it seems that its dependencies are out of date. So could you try to update the package.json in .atom/packages/ide-csharp

  "dependencies": {
    "atom-languageclient": "^1",
    "omnisharp-client": "^7"
  },

and run apm install in the .atom/paclages/ide-csharp root?

Sorry that you should do this manually. We are preparing a public issue to transfer the ide packages to the community so they can keep them up to date.

i did that . the file was originally
"atom-languageclient": "^0.8.3",
"omnisharp-client": "^7.2.2"
and i changed to
"atom-languageclient": "^1",
"omnisharp-client": "^7"
then i run the command :
C:\Users\stary.atom\packages\ide-csharp> apm install
Installing modules done

after that, i start the atom again, but looks like no change, nothing is working.

I have uninstalled all the unrelated non-core packages.
so all the non-packages list is
atom-ide-base
atom-ide-datatip
atom-ide-definitions
aton-ide-hyperclick
atom-idemarkdown-service
atom-ide-outline
atom-ide-signiture-help
busy-signal
ide-csharp
linter
linter-ui-default
intentions

the intentions packages is disabled after launching atom . i enabled it and launched atom again. still disabled
my atom version is 1.54.0

@eoiles
Copy link
Author

eoiles commented Feb 6, 2021

From the issues, it seems that its dependencies are out of date. So could you try to update the package.json in .atom/packages/ide-csharp

  "dependencies": {
    "atom-languageclient": "^1",
    "omnisharp-client": "^7"
  },

and run apm install in the .atom/paclages/ide-csharp root?

Sorry that you should do this manually. We are preparing a public issue to transfer the ide packages to the community so they can keep them up to date.

i have reset my atom to Factory Defaults by doing
rename .atom .atom-backup

then i install 2 packages atom-ide-base and ide-csharp and all their dependencies.
after that the atom prompts

linter-ui-default needs to install dependencies
intentions
Install dependency?
i clicked yes. but it is not actually downloading.
so i searched this intentions package and downloaded it.
then i closed the atom and go to C:\Users\stary.atom\packages\ide-csharp\package.json and changed to
"atom-languageclient": "^1",
"omnisharp-client": "^7"
again.
run C:\Users\stary.atom\packages\ide-csharp> apm install
Installing modules done
again.
then i start the atom opened a file c.cs which content is:

namespace HelloWorld
{
class Hello {
static void Main(string[] args)
{
System.Console.WriteLine("Hello World!");
}}}}
1
2;.'.'2+3fwe
213}}}

still, no error or warning, no outlines, nothing is working.
i checked the package list again:

atom-ide-base
atom-ide-datatip
atom-ide-definitions
aton-ide-hyperclick
atom-idemarkdown-service
atom-ide-outline
atom-ide-signiture-help
busy-signal
ide-csharp
linter
linter-ui-default
intentions

the intentions is still disabled.

@aminya
Copy link
Collaborator

aminya commented Feb 6, 2021

Let me ask in the community group to see if there is any C# developer that can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants