problem compiling subpackages with JS in Windows
See original GitHub issuesource/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:
- Created 6 years ago
- Comments:26 (24 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://www.youtube.com/watch?v=zANvYB93u2g 😃
I agree we should de-dup the source folders, especially dupes break everything: #7109