22,667 questions
3
votes
0
answers
152
views
Why is using --module-path so much slower than using --class-path?
I am building some tools using the latest version of the AWS SDK for Java, and I wanted to try and use modules instead of the normal classpath to do it.
I put the aws-sdk-java as a dependency in my (...
Best practices
0
votes
2
replies
92
views
Why does importing package module #2 from package module #1 import all attributes of module #2 in the namespace?
Consider a folder containing a simple python package:
python
├── main.ipynb
├── package
│ ├── __init__.py
│ ├── function.py
│ └── operations.py
├── pyproject.toml
├── README.md
└── uv.lock
...
2
votes
0
answers
158
views
Making Composer consider other directories for packages, to avoid duplication
I'm trying to fold league/omnipay into a plugin suite in such a way that it's modular. So the core project module has this composer.json:
{
"require": {
"league/omnipay"...
1
vote
1
answer
61
views
Odoo is not defined when loading third-party library(KaTeX) in Odoo 18 QWeb Report
I am trying to use the KaTeX JavaScript library to render the math into HTML inside the QWeb template.
I downloaded the KaTeX library locally and added it in __manifest__.py
'assets': {
'web....
Best practices
0
votes
0
replies
37
views
Imprt trouble with Cargo workspace(s): use top-modules within a sub-module
I have a small Rust project that I'm using as a learning exercise/sandpit to understand how the workspace and project schema works.
I have had trouble resloving what to me seems like a ver "...
0
votes
1
answer
98
views
Trying to divide my app in pages using modules, I cannot access inputs from submodules anymore
To reproduce the error I have in my current app, I made a simple toy example to explain what I am trying to solve.
What I would like is to have the pages in my app1.R to become modules (for better ...
-1
votes
1
answer
155
views
How to transfer all the Power Shell Modules from one machine to another machine? [closed]
I want to setup a machine where internet is not accessible however it is connected within the VNET. So, I can't install various power shell modules into the machine from the internet by entering the ...
Best practices
1
vote
2
replies
61
views
How do I properly import a self-written module which depends on a third-party module within a program?
I am writing (in Python) a function for import and use in another program. This function takes standard Python data structures as input, e.g., list of strings, and outputs a numpy array based on the ...
2
votes
1
answer
96
views
Rewrite external imports to use esm.sh
I am using Rollup to bundle code that's going into a <script type="module"> tag on a page. In the source, inputs look like import { createRoot } from 'react-dom/client'; In the output, ...
0
votes
0
answers
182
views
C++20 modules with GCC and Clang/Eclipse CDT LSP Editor
My project defines a module ocr, imports std and includes headers from a few libraries, for example:
module;
#include <httplib.h>
#include <tesseract/baseapi.h>
#include <leptonica/...
Best practices
1
vote
6
replies
79
views
Is there any standard way to handle the aliases or abbreviation in python when importing the module to the python file?
Here is how I import the python modules in to the another file. Anyone knows is there any standard way of importing?
import lib.utils.datetime_util as dt
import lib.utils.type_check_util as tc
1
vote
1
answer
388
views
How to make Vite include CSS import statements in the built JavaScript file for a library
I'm building a TypeScript library with Vite that uses SCSS modules. I want the final built .js file to contain actual import "./style.css" statements at the top, so that when users import my ...
1
vote
1
answer
97
views
Javascript Import Variables
so I have an HTML page, a linked Javascript(jQuery actually) file that has functions linked to clicks, etc. Then I want to add Regular Expressions to check user input.
I want to maintain all JS ...
1
vote
1
answer
70
views
install lifecycle doesn't compile all modules maven
As far I'm concerned the install lifecycle will follow sequential lifecycles (according to the default lifecycle of maven) up to the install.
The problem is that in my multi-module project, it doesn't ...
0
votes
1
answer
115
views
"No module named " error on raspi and not Windows
The module I am trying to import is part of a project with the structure
VIS/
├── __init__.py
└── Objects/
├── __init__.py
└── _Root.py
I am trying to import Root from \_Root.py with from VIS....