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
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.
Andrew Norman
@normana400
> 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

That error is the result of a non-backwards compatible change to a class that eclipse uses for the auto completion logic. At one point I had eclipse fix that issue to make a backwards compatible version that worked for the scala ide's usage, however, that change was lost in one of the subsequent continuous build releases. Then with an even later continous build release, eclipse migrated the IDE to run a version of java that was newer than java 11 and that broke the scala ide altogether (since scala only supports java 11 and java 8). While there are earlier versions of continuous build that run the scala ide (with the broken breakpoint integration), I decided to go back to using ScalaIDE with eclipse oxygen and now life is good again. (I'm developing on scala 2.11)
Eric K Richardson
@ekrich
@normana400 Is there some reason you haven't switched to Metals?
Andrew Norman
@normana400
If you really need to make this work with Photon or later versions of Eclipse, there is an inoffical build which fixes the autocomplete and debugger issues: github.com/rkrzewski/scala-ide/tree/photon-integration
any other link which can work on Eclipse for Scala
?
Andrew Norman
@normana400
@ekrich Metals is non-functional for the eclipse integration currently
there is active development on many metal platform integrations, but its my understanding that the eclipse integration is "paused"
Andrew Norman
@normana400
@s9nayyar:matrix.org looks like the scala212 site is down too: http://download.scala-ide.org/sdk/lithium/e47/scala212/stable/site

@ekrich from the scalameta/metals conversation: >@ckipp:matrix.org

the eclipse plugin is pretty out of date and not being actively maintained, I can't really recommend using it atm to be honest
there are tons of recent changes and the experience you'll get will be much much better with one of the other supported editors

Andrew Norman
@normana400
@normana400
so is scala metals for eclipse actively being worked on? The comments above seem to imply that the effort is on hold or getting deprioritized?
I'm not a big fan of Intelij FWIW
IBM is the big founder of Eclipse, wonder if they might be interested in providing resources for a Scala integration
@ckipp:matrix.org
Correct it’s not actively being worked on.
Eric K Richardson
@ekrich
I saw some traffic on Discord or on the Contributors Forum recently on maybe reviving the Eclipse support. People interested should probably chime in.
Andrew Norman
@normana400
I use eclipse scala-ide so I'm definately interested in an eclipse-metals integration. It looks like that conversation @ekrich linked is archived and I can't respond to that particular thread
Andrew Norman
@normana400
I didn't participate in developing the scala-ide project myself, but in a former life (in a galaxy long long ago), I did some eclipse plugin development for a company that offered integrated eclipse-based tooling to support their products. Either I could possibly aid in the porting of scala-ide to modern eclipse or help with the metals project
Eric K Richardson
@ekrich
@normana400 Just noticed your post - all the work on tools integration happens here for Scala - https://discord.gg/7AbXj3r6 - if this one times out the link to scalameta Discord is on the Scala lang main page.