Closed kurotom closed 1 year ago
I can't see any difference in behaviour between Pulsar and Atom 1.60.0. Was this provided by a package you had installed?
Yeah @Daeraxa correct me if I'm wrong, but language-javascript
doesn't provide any completions for DOM elements like window
or document
.
And I can't locate any of our other non-core packages that do provide this
No problem, below is the list of installed packages.
Built-in Atom Packages (92)
βββ atom-dark-syntax@0.29.1
βββ atom-dark-ui@0.53.3
βββ atom-light-syntax@0.29.1
βββ atom-light-ui@0.46.3
βββ base16-tomorrow-dark-theme@1.6.0
βββ base16-tomorrow-light-theme@1.6.0
βββ one-dark-ui@1.12.5
βββ one-light-ui@1.12.5
βββ one-dark-syntax@1.8.4
βββ one-light-syntax@1.8.4
βββ solarized-dark-syntax@1.3.0
βββ solarized-light-syntax@1.3.0
βββ about@1.9.1
βββ archive-view@0.66.0
βββ autocomplete-atom-api@0.10.7
βββ autocomplete-css@0.17.5
βββ autocomplete-html@0.8.9
βββ autocomplete-plus@2.42.4
βββ autocomplete-snippets@1.12.1
βββ autoflow@0.29.4
βββ autosave@0.24.6
βββ background-tips@0.28.1
βββ bookmarks@0.46.0
βββ bracket-matcher@0.92.0
βββ command-palette@0.43.5
βββ dalek@0.2.2
βββ deprecation-cop@0.56.9
βββ dev-live-reload@0.48.1
βββ encoding-selector@0.23.9
βββ exception-reporting@0.43.1
βββ find-and-replace@0.220.1
βββ fuzzy-finder@1.14.3
βββ github@0.36.13
βββ git-diff@1.3.9
βββ go-to-line@0.33.0
βββ grammar-selector@0.50.1
βββ image-view@0.64.0
βββ incompatible-packages@0.27.3
βββ keybinding-resolver@0.39.1
βββ line-ending-selector@0.7.7
βββ link@0.31.6
βββ markdown-preview@0.160.2
βββ notifications@0.72.1
βββ open-on-github@1.3.2
βββ package-generator@1.3.0
βββ settings-view@0.261.11
βββ snippets@1.6.1
βββ spell-check@0.77.1
βββ status-bar@1.8.17
βββ styleguide@0.49.12
βββ symbols-view@0.118.4
βββ tabs@0.110.2
βββ timecop@0.36.2
βββ tree-view@0.229.1
βββ update-package-dependencies@0.13.1
βββ welcome@0.36.9
βββ whitespace@0.37.8
βββ wrap-guide@0.41.0
βββ language-c@0.60.20
βββ language-clojure@0.22.8
βββ language-coffee-script@0.50.0
βββ language-csharp@1.1.0
βββ language-css@0.45.4
βββ language-gfm@0.90.8
βββ language-git@0.19.1
βββ language-go@0.47.3
βββ language-html@0.53.1
βββ language-hyperlink@0.17.1
βββ language-java@0.32.1
βββ language-javascript@0.134.2
βββ language-json@1.0.5
βββ language-less@0.34.3
βββ language-make@0.23.0
βββ language-mustache@0.14.5
βββ language-objective-c@0.16.0
βββ language-perl@0.38.1
βββ language-php@0.48.1
βββ language-property-list@0.9.1
βββ language-python@0.53.6
βββ language-ruby@0.73.0
βββ language-ruby-on-rails@0.25.3
βββ language-rust-bundled@0.1.1
βββ language-sass@0.62.2
βββ language-shellscript@0.28.2
βββ language-source@0.9.0
βββ language-sql@0.25.10
βββ language-text@0.7.4
βββ language-todo@0.29.4
βββ language-toml@0.20.0
βββ language-typescript@0.6.4
βββ language-xml@0.35.3
βββ language-yaml@0.32.0
Community Packages (14) /home/USER/.pulsar/packages
βββ atom-live-server@2.3.0
βββ atom-ternjs@0.20.0
βββ autocomplete-java@1.2.7
βββ autocomplete-python@1.17.1
βββ autocomplete-sql@0.5.0
βββ busy-signal@2.0.1
βββ hyperclick@0.1.5
βββ intentions@2.1.1
βββ linter@3.4.0
βββ linter-javac@1.10.0
βββ linter-python@3.1.2
βββ linter-ui-default@3.4.1
βββ minimap@4.40.1
βββ react@0.18.0
It's non-core, but I believe generic-lsp comes with a default handler for javascript/typescript which should provide auto complete for such elements
No grammar by itself will ever really provide those as they're largely dynamic
On Sun, Feb 12, 2023, 18:20 confused_techie @.***> wrote:
Yeah @Daeraxa https://github.com/Daeraxa correct me if I'm wrong, but language-javascript doesn't provide any completions for DOM elements like window or document.
And I can't locate any of our other non-core packages that do provide this
β Reply to this email directly, view it on GitHub https://github.com/pulsar-edit/pulsar/issues/379#issuecomment-1427161169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3XPS67E6SXXMLAEB6DZDDWXFV2XANCNFSM6AAAAAAUZJTWXU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Never used it myself, but I'm assuming it was atom-ternjs that provided those autocompletions. Did you migrate your config file from Atom? If not, it might just need some settings changed.
I didn't migrate anything, I did a clean install of Pulse ide
Looks like it's unchecked by default. Go to the list of packages in settings, find atom-ternjs
, click on Settings, then check that box.
Yes, I already have this option activated and it still doesn't work.
Just tried it out on my Pulsar installation. All I had to do was check that box and it started offering suggestions for window
, document
, etc.
Are you getting other completion suggestions? Like, for snippets and keywords and whatnot?
It shows me suggestion and autocomplete correctly JavaScript when creating classes, the constructor, manipulating strings, creating array, function, etc. But it doesn't show me elements related to handling the DOM.
Some images, it is seen that it works with JavaScript: https://imgur.com/dqzhc6E https://imgur.com/zw3sXzD https://imgur.com/SDfp9Ll
Then I'm out of ideas. You can check the developer tools (View -> Developer -> Toggle Developer Tools) to see if there are any tern-related errors in the console. You can restart Pulsar to see if that helps. If not, I'd rename your ~/.pulsar
directory temporarily and restart to get a fresh config, then install only atom-ternjs
and see if you can get that working. If so, that'd at least be step in the right direction.
If nothing works, maybe the folks on Discord will have some ideas that I haven't thought of.
I tried that and it didn't fix the problem. I searched a lot and couldn't solve this problem, thanks anyway.
Did you configure TernJS? I just made a clean install of TernJS on Pulsar, then ran the command TernJS: Open Configuration, checked "browser", and I have autocomplete of DOM elements...
Thank you very much @mauricioszabo and everyone, solved, now it works fine in Pulsar.
Thanks in advance for your bug report!
What happened?
I am transitioning from Atom to Pulsar, in JavaScript files the autocompletion does not work, for example, I do not get suggestions when I enter
window
or any other line to handle the DOM. Please help.It does work in the JavaScript language itself, but doesn't show support for the DOM.
I downloaded Pulsar from official page, installed it using
dnf
, OS installation is fresh.Pulsar version
Pulsar : 1.101.0-beta
Which OS does this happen on?
π§ Red Hat based (Fedora, Alma, RockyLinux, CentOS Stream, etc.)
OS details
Fedora 36
Which CPU architecture are you running this on?
64-bit(x86_64)
What steps are needed to reproduce this?
Additional Information:
Pulsar : 1.101.0-beta Electron: 12.2.3 Chrome : 89.0.4389.128 Node : 14.16.0