question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problem compiling subpackages with JS in Windows

See original GitHub issue

source/test/module.ceylon:

module test "0"
{
}

source/test/package.ceylon:

shared package test;

source/test/foo/package.ceylon:

shared package test.foo;

source/test/foo/foo.ceylon:

shared void foo()
{
	print("hello");
}

source/test2/module.ceylon:

module test2 "0"
{
	import test "0";
}

source/test2/package.ceylon:

shared package test2;

source/test2/run.ceylon:

import test.foo {foo}

shared void run()
{
	foo();
}

On the command line:


C:\Users\Zambonifofex\IdeaProjects\test>C:\Users\Zambonifofex\Desktop\ceylon\bin\ceylon run-js --compile --include-dependencies test2
Source found for module test2, compiling...
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Error: Errors found. Compilation stopped.
Note: Created module test/0
Note: Created module test2/0
source/test2/run.ceylon:1: error: imported package is not shared: 'test.foo' is not annotated 'shared' in 'test'
import test.foo {foo}
       ^
source/test2/run.ceylon:1: error: imported declaration not found: 'foo' might be misspelled or does not belong to this package
import test.foo {foo}
                 ^
source/test2/run.ceylon:5: error: function or value is not defined: 'foo' might be misspelled or is not imported (did you mean to import it from 'test.foo'?)
        foo();
 ^
source/test2/run.ceylon:1: error: imported package is not shared: 'test.foo' is not annotated 'shared' in 'test'
import test.foo {foo}
       ^
source/test2/run.ceylon:1: error: imported declaration not found: 'foo' might be misspelled or does not belong to this package
import test.foo {foo}
                 ^
source/test2/run.ceylon:5: error: function or value is not defined: 'foo' might be misspelled or is not imported (did you mean to import it from 'test.foo'?)
        foo();
 ^
source/test2/run.ceylon:1: error: imported package is not shared: 'test.foo' is not annotated 'shared' in 'test'
import test.foo {foo}
       ^
source/test2/run.ceylon:1: error: imported declaration not found: 'foo' might be misspelled or does not belong to this package
import test.foo {foo}
                 ^
source/test2/run.ceylon:5: error: function or value is not defined: 'foo' might be misspelled or is not imported (did you mean to import it from 'test.foo'?)
        foo();
 ^
9 errors
ceylon run-js: Failed to compile sources

C:\Users\Zambonifofex\IdeaProjects\test>

I was on my IntelliJ IDEA directory because I wrote the files using it. I made sure to delete the modules directory before compiling from the command line.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
jvasileffcommented, Jun 4, 2017
0reactions
FroMagecommented, Jun 8, 2017

I agree we should de-dup the source folders, especially dupes break everything: #7109

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving multiple package.json "main" fields #21423 - GitHub
The solution that worked for me is keeping both uncompiled and compiled files in the same folder ( lib ) instead of having...
Read more >
Pyinstaller on windows 10 cant find sub packages/modules
My project is structured as follows and I am having issues in using pyinstaller on windows 10 to build. I am using python...
Read more >
Modules: Packages | Node.js v19.2.0 Documentation
Introduction#. A package is a folder tree described by a package.json file. The package consists of the folder containing the package.json file and...
Read more >
Packages in Java: How to Create/Import Package - Guru99
PACKAGE in Java is a collection of classes, sub-packages, ... We define a class and object and later compile this it in our...
Read more >
Error - [package-solution] No manifests were found
Ensure a build has completed successfully ... create extension-for-fullstack\src\index.ts; create extension-for-fullstack\gulpfile.js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found