Eclipse doesn't like ASP
-
I don't know if it's Eclipse or the custom version I'm using but I just tried to load an ASP file--twice--via the file open dialog, and when it didn't open, I noticed Visual Studio had started up. Then I tried drag-and-drop onto the Eclipse tab bar...and got a 3rd instance of VS. What fresh hell is this? I know some Open Sauce people don't like Microsoft stuff but to refuse to even open a file?!
Yes, it's Eclipse. The custom Yoxos Luna distro I built a while back does the same thing.
-
Visual Studio doesn't even install an open verb for ASP anymore, except perhaps if you have an ancient one. WTF.
-
Visual Studio doesn't even install an open verb for ASP anymore,
Considering I used the File Open dialog in Eclipse, and then tried drag-and drop from Explorer to Eclipse, I'm not sure where the verb would have come in, tbh.
except perhaps if you have an ancient one.
It's Community 2013! Oh, non-Express 2012 is also installed, but that's not exactly ancient.
-
Eclipse could be saying, "I don't do this file, give it to the OS to handle." Which might make some sense.
Instead, its "fuck the OS verbs, I have my own file type database apparently!"
-
Eclipse has a concept of "what do I open this file with" baked in, which allows things like double-clicking a CSV file in the codebase to open it in Excel (or inline, as your preference may be).
So I suspect that's where the issue is. Is the file in your package explorer? If you can get the file in your package explorer, right-click and do "open with" and choose something sane/inline, and it'll default to that editor for that file from then on.
ETA: Since I had Eclipse open, I went and found the option in Window -> Preferences you'll want to set to override the default:
-
Eclipse could be saying, "I don't do this file, give it to the OS to handle." Which might make some sense.
I was a bit surprised you didn't take my Open Sauce bait. But, no, it doesn't make a lot of sense. "I'll open any file except certain types?" WHY WOULD YOU DO THAT?
I wonder what it does if you don't have VS installed. Or if you try to open a C# file. I assume a C++ file will work, since there's a C++ profile or whatever you want to call it for Eclipse. Although if ASP won't load, I bet there's something silly like it'll take .cc but not .cpp.
-
Is the file in your package explorer?
No idea, but probably not, or it probably wouldn't behave that way. Not even sure what a package explorer is in this context.
Again, I wonder what it'd do if I didn't have VS installed.
-
...you're talking about Eclipse, right?
-
Again, I wonder what it'd do if I didn't have VS installed.
I'm on Linux, so obviously no VS. I looked in Eclipse's setup and didn't see anything about the editor to use for *.asp. It opened the file in emacs.
Opened up my system settings and I see this:
No clue why it would pick emacs out of that.
-
Well, that settles it. Eclipse is dumb.
-
The problem with this is that when Eclipse doesn't know what to do with a given file, it opens it with the so called "System Editor"...
-
Hmm...indeed, when I add an asp file into my project, it shows up with the emacs icon and opening it from there, too, opens emacs. Searching, I saw multiple references to asp / .NET plugins for Eclipse. So you can do what @Yamikuronue suggested with "open with..." or get something that knows how to handle them.
-
DatabaseGeneratorGenerator
Really?
-
AbstractDatabaseGeneratorFactory, surely?
-
IAbstractDatabaseGeneratorGenerator?
-
ou're talking about Eclipse, right?
Yes, I am clear on which program I'm running.
I am not using it right now for a project per se, just as an overpowered editor, so I don't pay attention to the project-related functionality.
-
get something that knows how to handle them.
Like Visual Studio?
I--at the moment--don't WANT to open it in VS. I actually wanted to work in Eclipse. Visual Studio won't refuse to open Java files, so this is more of the kind of OS bullshit that blakey hates.
-
-
I was a bit surprised you didn't take my Open Sauce bait. But, no, it doesn't make a lot of sense. "I'll open any file except certain types?" WHY WOULD YOU DO THAT?
"The user wants to open X. I can't X, so let's ask the OS to see if it knows someone who can."
I'm not saying it makes a lot of sense, but if you look at the user intent, it (might) make some sense.
The real WTF is that Eclipse apparently has its own internal database of what program goes with what file type, separate from the OS one.
-
Like Visual Studio?
Smartass. Like the eclipse plugins I referenced previously.
Visual Studio won't refuse to open Java files, so this is more of the kind of OS bullshit that blakey hates.
Eclipse won't "refuse" to open them, but it tries to be helpful (and probably fails). I'll note that you're probably Doing It Wrong from the perspective of not working within your Eclipse workspace / projects. Also, wanting to edit random things in Eclipse sounds very much like Doing It Wrong.
I don't have the Eclipse hate like a lot of people here, but I don't see the advantage of editing special files without having installed support for it.
-
I'm not saying it makes a lot of sense, but if you look at the user intent, it (might) make some sense.
I'm not really interested in arguing with you here. It's not unreasonable, though, for an overgrown text editor to treat an unknown file type as if it were text and just open it.
-
The real WTF is that Eclipse apparently has its own internal database of what program goes with what file type, separate from the OS one.
It has multiple types of editors, internally. Especially once you start adding plugins. So it makes sense that it would try to use the appropriate editor for different types of content.
TRWTF is not Eclipse in this case.
-
Eclipse won't "refuse" to open them, but it tries to be helpful (and probably fails).
I looked in the Associations thing that @Yamikuronue screenshotted above. No entry for ASP. None in the "content types" thing at the top of that dialog, either.
Look, it's not rocket science. If I use Eclipse's file open dialog, it's unreasonable for Eclipse to go "nah, I'll pass [it on to some other editor]". It's not like I double-clicked it in Explorer.
I assert that if I use drag and drop or File Open, to open some arbitrary other program is, in fact, refusing to open it, and is Doing It Wrong.
-
TRWTF is not Eclipse in this case.
If you don't know what to do with a file that you were asked to open, "open in the generic text editor" is a much more sane thing to do than punting and asking the OS to deal with it.
Making me make an association inside Eclipse just so I can use Eclipse is TRWTF. Again, VS doesn't arbitrarily go "fuck it, I'm handing this off to Eclipse" if you try to open Java source.
-
Look, it's not rocket science. If I use Eclipse's file open dialog, it's unreasonable for Eclipse to go "nah, I'll pass [it on to some other editor]". It's not like I double-clicked it in Explorer.
I agree. It's unexpected. I'd never encountered that behavior before. But your words were wrong, technically.
If you don't know what...
You need to go back and read. I was responding to blakey saying that it was crazy for Eclipse to have its own database of associations.
-
It gets better! Googling "edit ASP in Eclipse" or whatever search string I used led me to a page of obvious instructions on how to use the JSP editor for ASP.
Eclipse will throw a tantrum and do this:
-
You need to go back and read. I was responding to blakey
Huh, so you were.
Nonetheless, my ire is not appeased, because of that stupid dialog.
-
Yes.
It takes in a repository full of CREATE scripts and a list of logical objects, separates the database create, table create, and the constraints, and puts them back into one big script in the right order to give you just the part of the database you need.
I was desparate. That was a dark time.
-
Another thing I just thought of--when I was discovering Eclipse's wrong behavior, I realized, but didn't say anything, because I didn't think of the significance, if any, of it, but it responded to each attempt to open that ASP with a NEW instance of VS, instead of trying to delegate to an already-existing one.
If you double-click two different ASPs in Explorer, it'll open the second in the same instance as the first.
I was desparate. That was a dark time.
Have a like and a pity QFT.
Also, for factor, I replied to your entirely-unrelated tangent in the same post, because it's what @codinghorror would want, even though in this case it's a ridiculous thing to do.
-
Also, for factor, I replied to your entirely-unrelated tangent in the same post, because it's what @codinghorror would want, even though in this case it's a ridiculous thing to do.
factor? Or undiagnosed Discourse Syndrome?
-
Definitely factor. It seems pointless to reply to two unrelated subtopics by two different people in one reply, but that's The Jeff Way, so I thought I'd try it out and see if I like it.
[spoiler]I don't[/spoiler]
-
-
-