Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 26 2020 16:14
    bes1002t commented #1189
  • May 25 2020 14:42
    bes1002t commented #1189
  • May 25 2020 08:01
    bes1002t commented #1189
  • Mar 02 2020 17:02
    rkrzewski commented #1191
  • Mar 02 2020 16:37
    chiragsanghavi commented #1191
  • Mar 02 2020 09:33
    rkrzewski commented #1191
  • Mar 01 2020 21:35
    chiragsanghavi closed #1191
  • Mar 01 2020 21:35
    chiragsanghavi commented #1191
  • Mar 01 2020 21:30
    chiragsanghavi opened #1191
  • Apr 05 2019 14:38
    ams-tschoening commented #1189
  • Apr 05 2019 14:37
    ams-tschoening commented #1189
  • Feb 15 2019 17:47
    rkrzewski commented #1189
  • Feb 15 2019 17:37
    lagerspetz commented #1189
  • Feb 15 2019 09:35
    rkrzewski commented #1189
  • Feb 14 2019 18:17
    lagerspetz commented #1189
  • Feb 14 2019 18:17
    lagerspetz commented #1189
  • Feb 14 2019 18:16
    lagerspetz commented #1189
  • Feb 14 2019 18:15
    lagerspetz commented #1189
  • Sep 28 2018 15:47
    rkrzewski commented #1189
  • Sep 28 2018 15:31
    mkurz commented #1189
kenwenzel
@kenwenzel
As far as I know JDT only runs on Equinox and not on Felix due to its usage of some non-standard conform features of Equinox...
Ólafur Páll Geirsson
@olafurpg
@lefou interesting, thanks for the reference
Tobias Roeser
@lefou
Everything in Bundle-Activator should be supported by Felix Connect, you can start and stop bundles. But it gets interesting, when some non-standards are expected, e.g. casting a BundleContext to some Eclipse specific class. Of course, Eclipse pre-OSGi XML-bases extention mechanism isn'tt supported either.
N.S. Cutler
@godenji
First you'd need to get Scala IDE working with Scala 2.13, which is a non-tirivial task (or at least it was for me when I tried a few months ago)
Given the age of the code base it's probably going to take a massive refactoring to get it working with Scala 3
Ólafur Páll Geirsson
@olafurpg
@godenji FYI scalameta/metals#1523
N.S. Cutler
@godenji
@olafurpg great, but how would the above PR tie in to resurrecting Scala IDE?
kenwenzel
@kenwenzel
@godenji @olafurpg Is it possible to replace parts of Scala IDE with Metals? The problem I see here is that Metals is tied to Bloop while JDT uses its own internal build system...
Ólafur Páll Geirsson
@olafurpg
@godenji you can use metals in Eclipse using the plugin here https://scalameta.org/metals/docs/editors/eclipse.html
it's no tied to resurrecting Scala IDE, however
@kenwenzel Metals uses BSP, it's possible to use another build tool
you might be able to implement a BSP server for the internal JDT build system
is there any equivalent library to the Scala presentation compiler for Java? If we for example only want to get completions and type at point but without the other parts of JDT
N.S. Cutler
@godenji
@olafurpg thanks, iirc building the IDE for Scala 2.13 has at least one serious blocker, and one can assume many more for Scala 3. For better or worse, Scala IDE is dead barring a large, concerted effort.
Moving forward it looks like VS Code + Metals will be the replacement (using Metals + VIM currently and it works well enough, albeit without the complete IDE experience).
Ólafur Páll Geirsson
@olafurpg
@godenji what would you say is missing for the complete IDE experience?
Jean-Luc Deprez
@spangaer

@olafurpg Exactly the thing you seem to want to work on, full support for mixed Scala/Java projects (or even pure Java projects, built with 'sbt')
And of course, the thing that has been working in Scala IDE + sbteclipse all this time, ProjectRef (source based) dependencies.
Having those 2 would probably be part of making it viable to move existing projects to VSCode + Metals, permitting that 2.13 step towards 3.

When on Scala IDE so far and using either, it looks like you stuck ATM.

Jean-Luc Deprez
@spangaer
@olafurpg Question, if dotty has a built-in LS support. Aren't building a competing one by adding Scala 3 support to Metals? Or am I missing something here?
Ólafur Páll Geirsson
@olafurpg
@spangaer the scala 3 support is in collaboration with the dotty team. The goal is to standardize on Metals as the official LSP server for Scala 2 and Scala 3. You will even be able to use Metals on hydrid 2/3 multi-module projects
Java/Scala interrop is indeed a big one :+1:
source dependencies should be totally possible if somebody has the time and motivation to work on it, I think we have most components to implement it
I'm not actively working on adding support for mixed java/scala projects
and I don't think I will work on it in the near future
I have just done basic exploration to see how it could possibly be done
this project might be a good candidate for a Scala Center advisory board proposal
N.S. Cutler
@godenji
@spangaer ProjectRef big :thumbsup: that is indeed a feature I've relied on for years in Scala IDE + SBT
@olafurpg vim can be setup to simulate an IDE-like experience, but you have to cobble everything together yourself, and even then you'll fall short. The nice thing about Eclipse, IntelliJ, VS Code, etc. is that out-of-the-box you can hit the ground running, it's all integrated.
Ólafur Páll Geirsson
@olafurpg
@godenji are you using coc-metals?
I think that's the closest you get to a rich-ish IDE experience with vim
it supports automatic Metals installation, worksheets with decorations instead of comments, debugging (maybe not now, but soon), a "doctor" to debug when the build is not imported correctly, etc
N.S. Cutler
@godenji
@olafurpg yes, that's correct. It's worlds better than Derek Wyatt's scala vim plugin, but still far from VS Code and friends. Happy to use it, with Scala IDE dead in the water I needed an alternative, so went with my editor of choice, vim. Once Scala 3.0 gets closer I'll switch over to VS Code for the IDE experience.
amasson88
@amasson88
I switched from ScalaIDE to IntelliJ about one year ago, I don't have any issue, it works very well.
(Large mixed Java/Scala project)
Tobias Roeser
@lefou
The killer-feature of eclipse based IDE is, that you always see the impact of a change for the whole project (e.g. red markers in other modules) whereas in IJ I find myself often surprised, because it doesn't build and detect errors automatically.
Ólafur Páll Geirsson
@olafurpg
@lefou you can kind of achieve that in IntelliJ with the BSP integration. It's quite nice IMO
Tobias Roeser
@lefou
I tested it twice but it's unfortunately not working properly for my larger polyglot projects. Also tried the mill.contrib.BSP.
But I', regularly retrying
Ólafur Páll Geirsson
@olafurpg
There’s some remaining work to improve the ux and it won’t happen without anyone putting in the work. However, the foundation is there and the Jetbrains folks have been responsive in unblocking reported issues.
Ben
@bes1002t
Hi guys, somehow the scala-ide update sites are completely down and I tried to build it on my own. Unfortunately even if I use "https://github.com/rkrzewski/scala-ide/tree/platform/photon" the scala-ide update site is needed to provide the equinox-weaving-launcher. Is there another update site I could use to get this launcher?
Rafał Krzewski
@rkrzewski
@bes1002t you need to build https://github.com/scala-ide/equinox-weaving-launcher from source. Note the PR for Eclipse Photon scala-ide/equinox-weaving-launcher#9
Or you can switch to Metals ;)
Ben
@bes1002t
@rkrzewski ah thank you, and thanks for your PR! :3
How should I change the repo.equinox.launcher property to work with a local path? Just adding the path instead of an url or using file:// does not work.
Ben
@bes1002t
But I will give metals a try, lets see how good it works :)
Ben
@bes1002t
seems metal plugin for eclipse does not recognize if an error occurs in a depency project. So I have to buld scala-ide.
Ben
@bes1002t
Mh I changed the pom.xml and started the build. Now I get these errors: " overloaded method constructor SearchableEnvironment with alternatives" in scala-ide/org.scala-ide.sdt.core/src/org/scalaide/core/internal/compiler/LocateSymbol.scala:35 and "overloaded method value addParagraph with alternatives" in scala-ide/org.scala-ide.sdt.core/src/org/scalaide/core/internal/compiler/LocateSymbol.scala:53. There are some more errors but I hope the are just results of these two errors :D
Raffi Khatchadourian
@khatchad
I cannot get a simple Scala project to run. I create a new Scala project. Then, I create a new Scala object and have it extend scala.App. Finally, when I try to run it, I get the same error listed here.
4 replies
Rafał Krzewski
@rkrzewski
This project is defunct. You should try Metals or IntelliJ instead.
9 replies
Ben
@bes1002t
mh unfortunately the latest version of Scala IDE (it's online again, thanks for that!) is showing the following error: An error has occurred. See error log for more details. org/scalaide/ui/internal/editor/ScalaToggleBreakpointAdapter
Is someone else facing this issue and have an idea how to solve it?
N.S. Cutler
@godenji
@bes1002t why not just use vs code + metals? Unless you're on Scala 2.12 the IDE is dead in the water.