-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Broken ide- packages due to "call.getFileName is not a function" #197
Comments
Really quickly I just want to confirm that this is version But otherwise, since you're reporting this also happens on Atom's latest release it sounds like this isn't the case. I appreciate the bug report and we will see what we can do, thanks! |
I'm running Pulsar-1.63.2022120405, that I updated.... maybe 36 hours ago? I will update again. But yeah, these problems seem to have appeared back at the first Atom 1.61 beta versions and have been carried over to Pulsar from that. |
Yeah that's the most likely cause is we inherited it our made the same Electron Bump as they did. But yeah feel free and let me know if the behavior is any different. Not to confident but won't hurt to find out |
It was indeed a known issue in the Electron 11 upgrade, assuming this isn't a misleadingly similar issue. See the comments below from the Electron 11 upgrade PR discussion, for context and discussion at the time.
This might have also been what broke Hydrogen, I forgot about that. It's been a bit since Electron 11 happened on Atom |
not sure how relevant this might be, but I had to lock Hydrogen @ v2.16.2 back in the Atom days, and that version of Hydrogen worked perfectly through the last release, at least on Windows. having a weird issue with Pulsar + Hydrogen on OSX at the moment... if i try to run and go to next via Shift+Enter, or run via CMD+Enter, Pulsar throws a Uncaught TypeError: editor.languageMode.rowRangeForCodeFoldAtBufferRow is not a function but...if i highlight the same row, and then go to Packages > Hydrogen > Run...it works just fine. keymapping issue? sort of makes Hydrogen mildly unusable if you gotta use the dropdowns every time to run code. I'd think this was a Hydrogen issue if it wasn't for the dropdown method working just fine. oh. also. you guys are fucking rockstars for picking up the baton. thank you so much. <3 |
I opened an issue #319 since I am facing the same issue :) |
I'd love to help get this fixed, I'm not really knowledgeable about Javascript/node.js development, but I still know my way around some code. The issue seems to be in the following packages:
and in each case is caused by a line in (for the record, the offending line in Dropdown.js is |
@mjrodgers You are correct, nearly all of the But from there what's happening is the code of TypeScript seemingly can be used within a JavaScript file, then compiled at a later time to make it totally valid JavaScript. And my assumption is that during the Publish process (which puts these files onto NPM) they are being processed by TypeScript to be turned into valid JS, and that could be the source of the problem or it could be something else. Potentially the version of TypeScript is older, and generating invalid JavaScript, but we would have a hard time confirming this. The other possible issue I'll touch on more below. Now unfortunately I can't confirm this theory, since the maintainers that wrote the But from my best guess the offending line is actually Which if this is actually the offending line it could have something to do with So to anyone wanting to fix this, it'd be looking at Now if you're at all curious, the likely reasons into why this hasn't been totally fixed just yet, and why it potentially broke. As for why it broke, that's pretty easy, when we bumped NodeJS/Electron versions, the rules of JavaScript changed a bit, onto what was allowed JavaScript, such as things like As for why it likely hasn't been fixed. Thing is, now matter how much we got confused in the beginning, Pulsar is not Atom-Community. Nobody that works on the Pulsar project ever created any of the Atom-Community packages. So none of us know this build process, or the codebase itself, nor have access to actually fix it as it stands. Additionally, many team members disagree with much of the philosophy of how those packages were built (such as auto installing additional packages a user never asked for, or this circular self reliance they use), and at least for myself, it's never why I've dived to deep into the codebase. But onto an important bit into what I've described, nobody here has access to these packages as they stand, and the few that do, we have previously submitted bug reports to get things to work, only to have the fixed versions never actually published to Pulsar, so that still the issue isn't fixed for Pulsar users, which makes the idea of these being totally fixed seem impossible. As even if we fork them, and do all the maintenance to fix them the broken versions will still be listed and installed. Personally, what I'd really want to see as a solution here, is essentially a fork of these packages that can do significant work into repairing the issues these packages display, that if ever made, I would then be more than happy to finally list these packages as broken, and recommend installation of the fork instead. So sorry that was a lot, but I've looked at this code base so many times, and debating what might be the easiest way to fix it, and since you've asked for what's going on here, thought I'd give you a full explaination. |
@confused-Techie I think I have tracked down the real issue (although I see now the issues with this actually getting pushed through...). The call to
that I guess actually calls
this gets transpiled "correctly" to javascript I think this simple change could get everything working again in Pulsar. However, since the current version of Atom is running Electron 9, this would be a breaking change for anyone who installed |
I do think dynamic |
Any progress? |
My guess is that this hasn't been a big priority since it's a bug in someone else's code, and the bug is also present in the latest version of Atom. I think @mjrodgers is right with this comment, so a user can hotfix this by either (a) finding this file in their package's To be able to “fix” this from where we're standing, we'd have to fork all the IDE-related packages that hit this code path and release updated versions. That's not the sort of thing I'm eager to do, but I recognize we might have to do it eventually. My goal is to eventually divest us of all the Nuclide dependencies, or at least be able to offer less Nuclide-y versions of the same things (see pulsar-outline-view). I am very grateful for the |
Just a note, I have forked and published an updated |
Luckily, even though PPM is currently having problems, it should still be possible to install packages from within Pulsar settings by going to the Install tab and searching for |
Thanks in advance for your bug report!
What happened?
Several important packages are currently broken in Pulsar (as well as the most recent Atom releases), this seems to be an issue related to the bump from Electron 9 to newer versions.
I'm personally experiencing the issue with ide-python, but there are reports of similar issues with atom-ide-javascript and atom-ide-debugger. These packages all give the message
"Failed to activate the X package
call.getFIleName is not a function."
I have this issue in the latest issue of Pulsar, I do not have the issue with Atom 1.60.0 although it does occur in all versions after this. I'm using macOS 12.6.1 but there are also reports of this issue happening in Windows and Linux versions.
Related issues
[(https://github.com/atom/atom/issues/25398)]
[https://github.com/atom-community/ide-python/issues/483]
Which OS does this happen on?
🍎 macOS
OS details
12.6.1
Which CPU architecture are you running this on?
64-bit(x86_64)
What steps are needed to reproduce this?
Have one of the following packages installed:
the error appears on opening Pulsar and again on opening a new window.
Additional Information:
No response
The text was updated successfully, but these errors were encountered: