Open linuxnyasha opened 4 months ago
@linuxnyasha can you try again with newest commit?
@linuxnyasha can you try again with newest commit?
The error is gone, but the ODR check remains
I[15:06:14.902] Building AST...
E[15:06:14.929] [module_odr_violation_record] Line 4: in included file: 'testing::internal::ParameterizedTestSuiteInfoBase' has different definitions in different modules; first difference is definition in module 'other.<global>' found constructor with body
I[15:06:14.929] Indexing AST...
V[15:06:14.930] indexed file AST for /home/sha512sum/reproduce/some.cppm version null:
symbol slab: 0 symbols, 120 bytes
ref slab: 0 symbols, 0 refs, 128 bytes
relations slab: 0 relations, 24 bytes
V[15:06:14.930] Build dynamic index for main-file symbols with estimated memory usage of 248 bytes
I[15:06:14.930] Building inlay hints
I[15:06:14.930] Building semantic highlighting
I[15:06:14.930] Testing features at each token (may be slow in large files)
V[15:06:14.930] 0:0 module
V[15:06:14.930] tweak: ExpandMacro
V[15:06:14.930] Word module under cursor /home/sha512sum/reproduce/some.cppm:1:1 isn't a token (after PP), trying nearby /home/sha512sum/reproduce/some.cppm:3:8
V[15:06:14.930] No definition found using nearby identifier module at /home/sha512sum/reproduce/some.cppm:1:1
V[15:06:14.930] Dex query tree: (LIMIT 1000 (& T=dul T=mod T=odu T=ule (| S= (* 2.000000e-01 true)) (| (* 1.403793e+00 U=file:///) true)))
V[15:06:14.930] No heuristic index definition for module
V[15:06:14.930] definition: 0
V[15:06:14.930] hover: false
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 0:6 ;
V[15:06:14.930] tweak: ExpandMacro
V[15:06:14.930] Word module under cursor /home/sha512sum/reproduce/some.cppm:1:1 isn't a token (after PP), trying nearby /home/sha512sum/reproduce/some.cppm:3:8
V[15:06:14.930] No definition found using nearby identifier module at /home/sha512sum/reproduce/some.cppm:1:1
V[15:06:14.930] Dex query tree: (LIMIT 1000 (& T=dul T=mod T=odu T=ule (| S= (* 2.000000e-01 true)) (| (* 1.403793e+00 U=file:///) true)))
V[15:06:14.930] No heuristic index definition for module
V[15:06:14.930] definition: 0
V[15:06:14.930] hover: false
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 1:0 #
V[15:06:14.930] definition: 1
V[15:06:14.930] hover: true
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 1:1 include
V[15:06:14.930] definition: 1
V[15:06:14.930] hover: true
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 1:9 <
V[15:06:14.930] definition: 1
V[15:06:14.930] hover: true
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 1:10 gtest
V[15:06:14.930] definition: 1
V[15:06:14.930] hover: true
V[15:06:14.930] documentHighlight: 0
V[15:06:14.930] 1:15 /
V[15:06:14.930] definition: 1
V[15:06:14.930] hover: true
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 1:16 gtest
V[15:06:14.931] definition: 1
V[15:06:14.931] hover: true
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 1:21 .
V[15:06:14.931] definition: 1
V[15:06:14.931] hover: true
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 1:22 h
V[15:06:14.931] definition: 1
V[15:06:14.931] hover: true
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 1:23 >
V[15:06:14.931] definition: 1
V[15:06:14.931] hover: true
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 2:0 export
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 2:7 module
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 2:14 some
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 2:18 ;
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 3:0 import
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 3:7 other
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
V[15:06:14.931] 3:12 ;
V[15:06:14.931] definition: 0
V[15:06:14.931] hover: false
V[15:06:14.931] documentHighlight: 0
I[15:06:14.931] All checks completed, 1 errors
Could you please pull and try again?
Fixed
[module_odr_violation_missing_decl] Line 2: in included file: 'std::basic_ostream
I still get errors like these. (Other code)
[module_odr_violation_missing_decl] Line 2: in included file: 'std::basic_ostream::~basic_ostream' from module '' is not present in definition of 'std::basic_ostream' in module 'some.'
I still get errors like these. (Other code)
What's the reproducer?
[module_odr_violation_missing_decl] Line 2: in included file: 'std::basic_ostream::~basic_ostream' from module '' is not present in definition of 'std::basic_ostream' in module 'some.' I still get errors like these. (Other code)
What's the reproducer?
https://github.com/linuxnyasha/utempl/blob/main/tests/menu.cpp
other.cppm:
some.cppm:
other_preprocessed.txt some_preprocessed.txt