Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lsp4e-dev] Project types with LSP4E
  • From: David Goodenough <david.goodenough@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 25 Sep 2019 14:49:15 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=broadwellmanor.co.uk; dmarc=pass action=none header.from=broadwellmanor.co.uk; dkim=pass header.d=broadwellmanor.co.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ADXBbwYvAxD6XQHv7SqdIAE+l/FS/uFRT2LQxLxaEUw=; b=LiFu1U31G0WqzA7qtIQ6bVcpDEhZRtkaLfPWoiAxhfR8On4VGRFNBXcSObrjzW0kQ9nJUbT4+5pFTq5187+H/0AXHmty1HX9Jc/jQkEt/EhthoM+ETn/rh/I+3WHuzKVuwTbOb6QNIxaBjZqpW+smnY9mCm3F1LpJJztvgorrwz5vzr599csCj//h1qIFFvOOFT/DirXssfInDA+1sw03LhrDa/XY7GnK2CsKLl8TeTYCbZ3MTm+RJlvcWMEtAf2OfI7/4oSele3YtZ4AorApwLEo80jRnKbnSL8H0SlQ2YeCtpM6shCF5F9BuYMaBOAoh6ZZydc7oUwH/fp2GZKdw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AC+w2WMt6O/hv1rBEeR9ctOndMNgZvQDWskKM4mB64CKdBi+Q+59Gx5oSxGYGG2QxW7/gHePhqody8Xio6NPUMUqBaQU6JGc0amu0r6Q7+rhKmMXlw71+AoyIg0wUUwfeR+p+50cwW2ydm6TRtPYUjvScBo9MTJzB8zjKP1Ag0Kr0QIJ6cAPrmMMrW9OV5ymCxuSADdi8Oym5BU2Hq0jjg4K3zZqzsBJ36kjAG14wIa4jDm5km1WAfXeLVazKgFtW8NIFGGSu10IGpfJoBKYF56GCeALLyuEHmknNDUUG+np3L9A8pqXb4JG1uO8HaiTynuYgFH6u3Zyvhz3U0rkWg==
  • Delivered-to: lsp4e-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/lsp4e-dev>
  • List-help: <mailto:lsp4e-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/lsp4e-dev>, <mailto:lsp4e-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/lsp4e-dev>, <mailto:lsp4e-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVcjYhhZLPdcyKCki6FIe1ZFEiI6c8fF8A
  • Thread-topic: [lsp4e-dev] Project types with LSP4E

On Monday, 23 September 2019 18:41:29 BST David Goodenough wrote:

I am trying to move from the old ScalaIDE (which was Eclipse with a plugin that provided Scala Projects and did things the pre-LSP way) to Eclipse with the newly released Scala Metals LSP plugin.

 

My projects used to be Scala Projects, but that relied on the code that did all the Scala stuff the old way, and now they are either Java Projects or just Projects.

 

I guess this is going to be a problem with all languages that move to using LSPs.

 

Is there a way for the Metals LSP plugin to set the project type? If not do we need something like an LSP project which the LSP code can decorate to, in my case, Scala?

 

The alternative would be to enable something like the Sbt Eclipse plugin to mark the project as a particular type of project (in this case an SBT project) without having to provide code which does things the old way.

 

David



One thing that gets lost is the ability to include a Package, so inside src/main/scala you get a whole directory tree rather than a single package object. Although File->New offers Java Package, when you come to create it because the host package is not a Java Package it will not create it (I think because it does not know where the Source directory is).

 

Oddly although this is a general project, the offer in File -> New still includes all the Java options (I suppose I did install the Java installer package). Given that they are uninstallable in that context, it is odd that Eclipse offers them.

 

For any JVM based language that uses Java style packages this could be a problem with using a general project rather than a java project.

 

David


Back to the top